首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 服务器 > Apache >

!Apache间隔性的线程卡死,需重新启动,困惑很久不能解决

2012-06-14 
求助!Apache间隔性的线程卡死,需重新启动,困惑很久不能解决!我的windows服务器运行java程序 安装的是apach

求助!Apache间隔性的线程卡死,需重新启动,困惑很久不能解决!
我的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.[Mon Nov 08 13:33:57 2010] [notice] Parent: Received restart signal -- Restarting the server.[Mon Nov 08 13:33:58 2010] [notice] Child 5756: Released the start mutex[Mon Nov 08 13:34:00 2010] [notice] Apache/2.2.11 (Win32) mod_jk/1.2.28 configured -- resuming normal operations[Mon Nov 08 13:34:00 2010] [notice] Server built: Dec 10 2008 00:10:06[Mon Nov 08 13:34:00 2010] [notice] Parent: Created child process 3872[Mon Nov 08 13:34:01 2010] [notice] Disabled use of AcceptEx() WinSock2 API[Mon Nov 08 13:34:01 2010] [notice] Child 3872: Child process is running[Mon Nov 08 13:34:01 2010] [notice] Child 3872: Acquired the start mutex.[Mon Nov 08 13:34:01 2010] [notice] Child 3872: Starting 600 worker threads.[Mon Nov 08 13:34:01 2010] [notice] Child 3872: Listening on port 80.[Mon Nov 08 13:34:01 2010] [notice] Child 5756: All worker threads have exited.[Mon Nov 08 13:34:01 2010] [notice] Child 5756: Child process is exiting[Mon Nov 08 13:43:41 2010] [notice] Child 3872: Process exiting because it reached MaxRequestsPerChild. Signaling the parent to restart a new child process.[Mon Nov 08 13:43:41 2010] [notice] Parent: Received restart signal -- Restarting the server.[Mon Nov 08 13:43:42 2010] [notice] Child 3872: Released the start mutex[Mon Nov 08 13:43:42 2010] [notice] Apache/2.2.11 (Win32) mod_jk/1.2.28 configured -- resuming normal operations[Mon Nov 08 13:43:42 2010] [notice] Server built: Dec 10 2008 00:10:06[Mon Nov 08 13:43:42 2010] [notice] Parent: Created child process 6052[Mon Nov 08 13:43:43 2010] [notice] Disabled use of AcceptEx() WinSock2 API[Mon Nov 08 13:43:43 2010] [notice] Child 6052: Child process is running[Mon Nov 08 13:43:43 2010] [notice] Child 6052: Acquired the start mutex.[Mon Nov 08 13:43:43 2010] [notice] Child 6052: Starting 600 worker threads.[Mon Nov 08 13:43:43 2010] [notice] Child 6052: Listening on port 80.[Mon Nov 08 13:44:12 2010] [notice] Child 3872: Waiting 270 more seconds for 1 worker threads to finish.[Mon Nov 08 13:44:42 2010] [notice] Child 3872: Waiting 240 more seconds for 1 worker threads to finish.[Mon Nov 08 13:45:12 2010] [notice] Child 3872: Waiting 210 more seconds for 1 worker threads to finish.[Mon Nov 08 13:45:42 2010] [notice] Child 3872: Waiting 180 more seconds for 1 worker threads to finish.[Mon Nov 08 13:46:13 2010] [notice] Child 3872: Waiting 150 more seconds for 1 worker threads to finish.[Mon Nov 08 13:46:43 2010] [notice] Child 3872: Waiting 120 more seconds for 1 worker threads to finish.[Mon Nov 08 13:47:13 2010] [notice] Child 3872: Waiting 90 more seconds for 1 worker threads to finish.[Mon Nov 08 13:47:43 2010] [notice] Child 3872: Waiting 60 more seconds for 1 worker threads to finish.[Mon Nov 08 13:48:13 2010] [notice] Child 3872: Waiting 30 more seconds for 1 worker threads to finish.[Mon Nov 08 13:48:44 2010] [notice] Child 3872: Waiting 0 more seconds for 1 worker threads to finish.[Mon Nov 08 13:48:44 2010] [notice] Child 3872: Terminating 1 threads that failed to exit.[Mon Nov 08 13:48:44 2010] [notice] Child 3872: All worker threads have exited.[Mon Nov 08 13:48:44 2010] [notice] Child 3872: Child process is exiting 



[解决办法]
应该不是你配置文件的问题,看看你机器的CPU和内存状况,有可能是CPU或者内存满了,apache自动停止工作!

热点排行