我的windows服务器运行java程序 安装的是apache 和jboss ,最近一段时间apache隔一段时间就卡死,需要重新启动,很郁闷
http.conf部分配置:
<IfModule mpm_winnt.c>
ThreadsPerChild 600 //这个参数变过好几次
MaxRequestsPerChild 10000 //这个参数为 0 也不行
Win32DisableAcceptEx
</IfModule>
error.log错误信息:
XML code[Mon Nov 08 12:57:24 2010] [notice] Child 5396: Process exiting because it reached MaxRequestsPerChild. Signaling the parent to restart a new child process.
[Mon Nov 08 12:57:24 2010] [notice] Parent: Received restart signal -- Restarting the server.
[Mon Nov 08 12:57:24 2010] [notice] Apache/2.2.11 (Win32) mod_jk/1.2.28 configured -- resuming normal operations
[Mon Nov 08 12:57:24 2010] [notice] Server built: Dec 10 2008 00:10:06
[Mon Nov 08 12:57:24 2010] [notice] Parent: Created child process 6116
[Mon Nov 08 12:57:24 2010] [notice] Disabled use of AcceptEx() WinSock2 API
[Mon Nov 08 12:57:24 2010] [notice] Child 6116: Child process is running
[Mon Nov 08 12:57:25 2010] [notice] Child 5396: Released the start mutex
[Mon Nov 08 12:57:25 2010] [notice] Child 6116: Acquired the start mutex.
[Mon Nov 08 12:57:25 2010] [notice] Child 6116: Starting 600 worker threads.
[Mon Nov 08 12:57:25 2010] [notice] Child 6116: Listening on port 80.
[Mon Nov 08 12:57:55 2010] [notice] Child 5396: Waiting 270 more seconds for 3 worker threads to finish.
[Mon Nov 08 12:58:25 2010] [notice] Child 5396: Waiting 240 more seconds for 2 worker threads to finish.
[Mon Nov 08 12:58:51 2010] [notice] Child 5396: All worker threads have exited.
[Mon Nov 08 12:58:51 2010] [notice] Child 5396: Child process is exiting
[Mon Nov 08 13:14:06 2010] [notice] Child 6116: Process exiting because it reached MaxRequestsPerChild. Signaling the parent to restart a new child process.
[Mon Nov 08 13:14:06 2010] [notice] Parent: Received restart signal -- Restarting the server.
[Mon Nov 08 13:14:06 2010] [notice] Apache/2.2.11 (Win32) mod_jk/1.2.28 configured -- resuming normal operations
[Mon Nov 08 13:14:06 2010] [notice] Server built: Dec 10 2008 00:10:06
[Mon Nov 08 13:14:06 2010] [notice] Parent: Created child process 2944
[Mon Nov 08 13:14:06 2010] [notice] Disabled use of AcceptEx() WinSock2 API
[Mon Nov 08 13:14:06 2010] [notice] Child 2944: Child process is running
[Mon Nov 08 13:14:07 2010] [notice] Child 6116: Released the start mutex
[Mon Nov 08 13:14:07 2010] [notice] Child 2944: Acquired the start mutex.
[Mon Nov 08 13:14:07 2010] [notice] Child 2944: Starting 600 worker threads.
[Mon Nov 08 13:14:07 2010] [notice] Child 2944: Listening on port 80.
[Mon Nov 08 13:14:07 2010] [notice] Child 6116: All worker threads have exited.
[Mon Nov 08 13:14:07 2010] [notice] Child 6116: Child process is exiting
[Mon Nov 08 13:24:35 2010] [notice] Child 2944: Process exiting because it reached MaxRequestsPerChild. Signaling the parent to restart a new child process.
[Mon Nov 08 13:24:35 2010] [notice] Parent: Received restart signal -- Restarting the server.
[Mon Nov 08 13:24:36 2010] [notice] Child 2944: Released the start mutex
[Mon Nov 08 13:24:37 2010] [notice] Apache/2.2.11 (Win32) mod_jk/1.2.28 configured -- resuming normal operations
[Mon Nov 08 13:24:37 2010] [notice] Server built: Dec 10 2008 00:10:06
[Mon Nov 08 13:24:37 2010] [notice] Parent: Created child process 5756
[Mon Nov 08 13:24:38 2010] [notice] Disabled use of AcceptEx() WinSock2 API
[Mon Nov 08 13:24:38 2010] [notice] Child 5756: Child process is running
[Mon Nov 08 13:24:38 2010] [notice] Child 5756: Acquired the start mutex.
[Mon Nov 08 13:24:38 2010] [notice] Child 5756: Starting 600 worker threads.
[Mon Nov 08 13:24:38 2010] [notice] Child 5756: Listening on port 80.
[Mon Nov 08 13:24:42 2010] [notice] Child 2944: All worker threads have exited.
[Mon Nov 08 13:24:42 2010] [notice] Child 2944: Child process is exiting
[Mon Nov 08 13:33:57 2010] [notice] Child 5756: Process exiting because it reached MaxRequestsPerChild. Signaling the parent to restart a new child process.