遇到一个诡异的问题,APACHE子进程总是无故重启,求救~

tanpenghotmail 2012-07-10 07:54:23
如题,我的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等目录下的该文件,但是问题依旧。
各位大神帮忙看下,遇到过这个问题没? 我现在不希望子进程无故重启~
...全文
367 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
tanpenghotmail 2012-07-25
  • 打赏
  • 举报
回复
帮顶上去啊
tanpenghotmail 2012-07-25
  • 打赏
  • 举报
回复
额,这么久没人理会,沉的很彻底
_Arc 2012-07-19
  • 打赏
  • 举报
回复
很好奇,帮顶!
tanpenghotmail 2012-07-11
  • 打赏
  • 举报
回复
谁有知道~
tanpenghotmail 2012-07-11
  • 打赏
  • 举报
回复
顶起来~

5,655

社区成员

发帖
与我相关
我的任务
社区描述
Web开发应用服务器相关讨论专区
社区管理员
  • 应用服务器社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧