遇到一个诡异的问题,APACHE子进程总是无故重启,求救~
如题,我的Apache在跑一段时间后,子进程就会重启,无故的重启。
我按照默认配置,测试一段时间子进程就会重启。
然后我配置了如下项,设置子进程重启请求数为无限,但子进程还是重启:
KeepAlive Off
<IfModule mpm_winnt_module>
ThreadsPerChild 150
ThreadLimit 200
MaxRequestsPerChild 0
Win32DisableAcceptEx
EnableMMAP Off
EnableSendfile Off
</IfModule>
然后我调整 MaxRequestsPerChild 10000, 但子进程还是重启,并且请求数并没有达到10000,同时观察子进程内存,峰值也就500M左右,处理结束后会降到100M左右,所以我认为可能不是这的问题。机器是16G内存,win2003系统。
然后我查看Apache的error文件,如下:
[Tue Jul 10 19:47:48 2012] [notice] Parent: child process exited with status 3221225477 -- Restarting.
httpd.exe: Could not reliably determine the server's fully qualified domain name, using ***.***.***.*** for ServerName
[Tue Jul 10 19:47:49 2012] [notice] Apache/2.2.10 (Win32) DAV/2 PHP/5.2.6 configured -- resuming normal operations
[Tue Jul 10 19:47:49 2012] [notice] Server built: Oct 10 2008 12:39:04
[Tue Jul 10 19:47:49 2012] [notice] Parent: Created child process 8376
[Tue Jul 10 19:47:49 2012] [notice] Disabled use of AcceptEx() WinSock2 API
httpd.exe: Could not reliably determine the server's fully qualified domain name, using ***.***.***.*** for ServerName
httpd.exe: Could not reliably determine the server's fully qualified domain name, using ***.***.***.*** for ServerName
[Tue Jul 10 19:47:49 2012] [notice] Child 8376: Child process is running
[Tue Jul 10 19:47:49 2012] [notice] Child 8376: Acquired the start mutex.
[Tue Jul 10 19:47:49 2012] [notice] Child 8376: Starting 150 worker threads.
[Tue Jul 10 19:47:49 2012] [notice] Child 8376: Listening on port 80.
网上查了些资料,说是libmysql.dll等文件不一致,然后我统一了mysql/bin,apache/bin等目录下的该文件,但是问题依旧。
各位大神帮忙看下,遇到过这个问题没? 我现在不希望子进程无故重启~