dsc71976 2011-11-08 16:12
浏览 66

php / apache / windows的性能问题。 连接重置

I'm having a rather big problem with a site performance. It's a php site on Apache on Windows Server 2003.

Web site is basically crashing with 'connection was reset' or 'cannot load web page' quite often. httpd process in Windows takes about 100mb on normal traffic, having about 1gb of memory still free

This is first time I host a php site on Windows (WIndows was requirement in this case) and I'm not sure what are my options

Thanks

Apache log is displaying the following (sorry for pasting it like that, couldn't do it as 'code block' from some reason. This surely doesn't look right. Any ideas what could be going on?

[Tue Nov 08 16:44:43 2011] [notice] Parent: Received restart signal -- Restarting the server.

[Tue Nov 08 16:44:43 2011] [notice] Child 2072: Exit event signaled. Child process is ending.

httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.67.1 for ServerName

[Tue Nov 08 16:44:44 2011] [notice] Apache/2.2.17 (Win32) mod_ssl/2.2.17 OpenSSL/0.9.8o PHP/5.2.17 configured -- resuming normal operations

[Tue Nov 08 16:44:44 2011] [notice] Server built: Oct 18 2010 01:58:12

[Tue Nov 08 16:44:44 2011] [notice] Parent: Created child process 7692

httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.67.1 for ServerName

httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.67.1 for ServerName

[Tue Nov 08 16:44:44 2011] [notice] Child 2072: Released the start mutex

[Tue Nov 08 16:44:44 2011] [notice] Child 7692: Child process is running

[Tue Nov 08 16:44:44 2011] [notice] Child 7692: Acquired the start mutex.

[Tue Nov 08 16:44:44 2011] [notice] Child 7692: Starting 1000 worker threads.

[Tue Nov 08 16:44:44 2011] [notice] Child 7692: Starting thread to listen on port 2090.

[Tue Nov 08 16:44:44 2011] [notice] Child 7692: Starting thread to listen on port 8011.

[Tue Nov 08 16:44:44 2011] [notice] Child 7692: Starting thread to listen on port 8080.

[Tue Nov 08 16:44:44 2011] [notice] Child 7692: Starting thread to listen on port 443.

[Tue Nov 08 16:44:44 2011] [notice] Child 7692: Starting thread to listen on port 80.

[Tue Nov 08 16:44:45 2011] [notice] Parent: child process exited with status 0 -- Restarting.

httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.67.1 for ServerName

Windows event viewer is throwing the following

Error - VsJITDebugger. An unhandled win32 exception occurred in httpd.exe [4416]. Just-In-Time debugging this exception failed with the following error: Debugger could not be started because no user is logged on.


Can anyone help with this?

That '[notice] Parent: child process exited with status 0 -- Restarting' is describing the issue here. Tho it describes it in vary vague way. Server is basically restarting on it's own every few minutes. I took the site down with a holding page and the error and restart ddidn't occure. I added an html page and bombed it with combinations of requests using AB. It would always crash at requests close to number of ThreadsPerChild specified in mpm config, which I have set to 1000. Each crash followed with an error

apr_socket_recv: An existing connection was forcibly closed by the remote host. (730054)

That error only displays when benchmarking. Nothing like that appears in apache log. As soon I switch the site back live, it starts to crash every few minutes. The site generates about 100 requests per page and is also using 2-3 ajax calls per page (while loading)

I spent hours searching the web for possible solutions. Found nothing that fits. I'm completely out of options. I'm not even experienced running apache on windows as during 5 years I work in the business I never had to run php sites on Windows. I haven't seen such error on linux neither

  • 写回答

1条回答 默认 最新

  • douhui7136 2011-11-08 17:00
    关注

    There are two places where you should have a look:

    • Regular Apache logs, located in the logs folder inside Apache installation.
    • Windows event viewer, located in Windows control panel

    In particular, the second one will log Apache crashes and will possibly reveal additional details.

    评论

报告相同问题?

悬赏问题

  • ¥20 iqoo11 如何下载安装工程模式
  • ¥15 本题的答案是不是有问题
  • ¥15 关于#r语言#的问题:(svydesign)为什么在一个大的数据集中抽取了一个小数据集
  • ¥15 C++使用Gunplot
  • ¥15 这个电路是如何实现路灯控制器的,原理是什么,怎么求解灯亮起后熄灭的时间如图?
  • ¥15 matlab数字图像处理频率域滤波
  • ¥15 在abaqus做了二维正交切削模型,给刀具添加了超声振动条件后输出切削力为什么比普通切削增大这么多
  • ¥15 ELGamal和paillier计算效率谁快?
  • ¥15 蓝桥杯单片机第十三届第一场,整点继电器吸合,5s后断开出现了问题
  • ¥15 file converter 转换格式失败 报错 Error marking filters as finished,如何解决?