經常性的卡死。怎麼辦,有人遇到過嗎?
錯誤記錄檔
[Sun Feb 03 18:16:09 2013] [notice] Child 4200: All worker threads have exited.
[Sun Feb 03 18:16:15 2013] [notice] Child 4200: Child process is exiting
[Sun Feb 03 18:18:35 2013] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Sun Feb 03 18:18:35 2013] [notice] Child 4056: Exit event signaled. Child process is ending.
[Sun Feb 03 18:18:36 2013] [notice] Child 4056: Released the start mutex
[Sun Feb 03 18:19:05 2013] [notice] Parent: Forcing termination of child process 1f4
[Sun Feb 03 18:19:18 2013] [notice] Apache/2.2.22 (Win32) PHP/5.2.10 configured -- resuming normal operations
[Sun Feb 03 18:19:18 2013] [notice] Server built: Jan 28 2012 11:16:39
[Sun Feb 03 18:19:18 2013] [notice] Parent: Created child process 5980
[Sun Feb 03 18:19:18 2013] [notice] Disabled use of AcceptEx() WinSock2 API
[Sun Feb 03 18:19:19 2013] [notice] Child 5980: Child process is running
[Sun Feb 03 18:19:19 2013] [notice] Child 5980: Acquired the start mutex.
[Sun Feb 03 18:19:19 2013] [notice] Child 5980: Starting 120 worker threads.
[Sun Feb 03 18:19:19 2013] [notice] Child 5980: Listening on port 80.
[Sun Feb 03 18:23:27 2013] [notice] Child 5980: Process exiting because it reached MaxRequestsPerChild. Signaling the parent to restart a new child process.
[Sun Feb 03 18:23:27 2013] [notice] Parent: Received restart signal -- Restarting the server.
[Sun Feb 03 18:23:28 2013] [notice] Child 5980: Released the start mutex
[Sun Feb 03 18:23:28 2013] [notice] Apache/2.2.22 (Win32) PHP/5.2.10 configured -- resuming normal operations
[Sun Feb 03 18:23:28 2013] [notice] Server built: Jan 28 2012 11:16:39
[Sun Feb 03 18:23:28 2013] [notice] Parent: Created child process 5324
[Sun Feb 03 18:23:28 2013] [notice] Disabled use of AcceptEx() WinSock2 API
[Sun Feb 03 18:23:29 2013] [notice] Child 5324: Child process is running
[Sun Feb 03 18:23:29 2013] [notice] Child 5324: Acquired the start mutex.
[Sun Feb 03 18:23:29 2013] [notice] Child 5324: Starting 120 worker threads.
[Sun Feb 03 18:23:29 2013] [notice] Child 5324: Listening on port 80.
[Sun Feb 03 18:23:34 2013] [notice] Child 5980: All worker threads have exited.
[Sun Feb 03 18:23:39 2013] [notice] Child 5980: Child process is exiting
[Sun Feb 03 18:30:28 2013] [notice] Child 5324: Process exiting because it reached MaxRequestsPerChild. Signaling the parent to restart a new child process.
[Sun Feb 03 18:30:28 2013] [notice] Parent: Received restart signal -- Restarting the server.
[Sun Feb 03 18:30:29 2013] [notice] Child 5324: Released the start mutex
[Sun Feb 03 18:30:30 2013] [notice] Apache/2.2.22 (Win32) PHP/5.2.10 configured -- resuming normal operations
[Sun Feb 03 18:30:30 2013] [notice] Server built: Jan 28 2012 11:16:39
[Sun Feb 03 18:30:30 2013] [notice] Parent: Created child process 5508
[Sun Feb 03 18:30:30 2013] [notice] Disabled use of AcceptEx() WinSock2 API
[Sun Feb 03 18:30:30 2013] [notice] Child 5508: Child process is running
[Sun Feb 03 18:30:30 2013] [notice] Child 5508: Acquired the start mutex.
[Sun Feb 03 18:30:30 2013] [notice] Child 5508: Starting 120 worker threads.
[Sun Feb 03 18:30:30 2013] [notice] Child 5508: Listening on port 80.
[Sun Feb 03 18:30:33 2013] [notice] Child 5324: All worker threads have exited.
[Sun Feb 03 18:30:34 2013] [notice] Child 5324: Child process is exiting
[Sun Feb 03 18:34:41 2013] [notice] Child 5508: Process exiting because it reached MaxRequestsPerChild. Signaling the parent to restart a new child process.
[Sun Feb 03 18:34:41 2013] [notice] Parent: Received restart signal -- Restarting the server.
[Sun Feb 03 18:34:41 2013] [notice] Apache/2.2.22 (Win32) PHP/5.2.10 configured -- resuming normal operations
[Sun Feb 03 18:34:41 2013] [notice] Server built: Jan 28 2012 11:16:39
[Sun Feb 03 18:34:41 2013] [notice] Parent: Created child process 1056
[Sun Feb 03 18:34:41 2013] [notice] Disabled use of AcceptEx() WinSock2 API
[Sun Feb 03 18:34:43 2013] [notice] Child 5508: Released the start mutex
[Sun Feb 03 18:34:45 2013] [notice] Child 1056: Child process is running
[Sun Feb 03 18:34:45 2013] [notice] Child 1056: Acquired the start mutex.
[Sun Feb 03 18:34:45 2013] [notice] Child 1056: Starting 120 worker threads.
[Sun Feb 03 18:34:45 2013] [notice] Child 1056: Listening on port 80.
[Sun Feb 03 18:34:49 2013] [notice] Child 5508: All worker threads have exited.
[Sun Feb 03 18:34:55 2013] [notice] Child 5508: Child process is exiting
[Sun Feb 03 18:40:05 2013] [notice] Child 1056: Process exiting because it reached MaxRequestsPerChild. Signaling the parent to restart a new child process.
[Sun Feb 03 18:40:05 2013] [notice] Parent: Received restart signal -- Restarting the server.
[Sun Feb 03 18:40:06 2013] [notice] Child 1056: Released the start mutex
[Sun Feb 03 18:40:06 2013] [notice] Apache/2.2.22 (Win32) PHP/5.2.10 configured -- resuming normal operations
[Sun Feb 03 18:40:06 2013] [notice] Server built: Jan 28 2012 11:16:39
[Sun Feb 03 18:40:06 2013] [notice] Parent: Created child process 5764
[Sun Feb 03 18:40:07 2013] [notice] Disabled use of AcceptEx() WinSock2 API
[Sun Feb 03 18:40:09 2013] [notice] Child 5764: Child process is running
[Sun Feb 03 18:40:09 2013] [notice] Child 5764: Acquired the start mutex.
[Sun Feb 03 18:40:09 2013] [notice] Child 5764: Starting 120 worker threads.
[Sun Feb 03 18:40:09 2013] [notice] Child 5764: Listening on port 80.
[Sun Feb 03 18:40:17 2013] [notice] Child 1056: All worker threads have exited.
[Sun Feb 03 18:40:25 2013] [notice] Child 1056: Child process is exiting
[Sun Feb 03 18:44:31 2013] [notice] Parent: Received restart signal -- Restarting the server.
[Sun Feb 03 18:44:31 2013] [notice] Child 5764: Exit event signaled. Child process is ending.
[Sun Feb 03 18:44:32 2013] [notice] Child 5764: Released the start mutex
[Sun Feb 03 18:44:34 2013] [notice] Apache/2.2.22 (Win32) PHP/5.2.10 configured -- resuming normal operations
[Sun Feb 03 18:44:34 2013] [notice] Server built: Jan 28 2012 11:16:39
[Sun Feb 03 18:44:34 2013] [notice] Parent: Created child process 4368
[Sun Feb 03 18:45:06 2013] [notice] Disabled use of AcceptEx() WinSock2 API
[Sun Feb 03 18:45:07 2013] [notice] Child 5764: Waiting 270 more seconds for 27 worker threads to finish.
[Sun Feb 03 18:45:08 2013] [notice] Child 4368: Child process is running
[Sun Feb 03 18:45:08 2013] [notice] Child 4368: Acquired the start mutex.
[Sun Feb 03 18:45:08 2013] [notice] Child 4368: Starting 120 worker threads.
[Sun Feb 03 18:45:08 2013] [notice] Child 4368: Listening on port 80.
[Sun Feb 03 18:45:30 2013] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Sun Feb 03 18:45:31 2013] [notice] Child 4368: Exit event signaled. Child process is ending.
[Sun Feb 03 18:45:32 2013] [notice] Child 4368: Released the start mutex
[Sun Feb 03 18:45:32 2013] [notice] Child 4368: Terminating 108 threads that failed to exit.
[Sun Feb 03 18:45:32 2013] [notice] Child 4368: All worker threads have exited.
[Sun Feb 03 18:45:46 2013] [notice] Child 5764: Waiting 240 more seconds for 1 worker threads to finish.
[Sun Feb 03 18:46:00 2013] [notice] Parent: Forcing termination of child process 1e0
[Sun Feb 03 18:46:06 2013] [notice] Apache/2.2.22 (Win32) PHP/5.2.10 configured -- resuming normal operations
[Sun Feb 03 18:46:06 2013] [notice] Server built: Jan 28 2012 11:16:39
[Sun Feb 03 18:46:06 2013] [notice] Parent: Created child process 3468
[Sun Feb 03 18:46:06 2013] [notice] Disabled use of AcceptEx() WinSock2 API
[Sun Feb 03 18:46:07 2013] [notice] Child 3468: Child process is running
[Sun Feb 03 18:46:07 2013] [notice] Child 3468: Acquired the start mutex.
[Sun Feb 03 18:46:07 2013] [notice] Child 3468: Starting 120 worker threads.
[Sun Feb 03 18:46:07 2013] [notice] Child 3468: Listening on port 80.
[Sun Feb 03 18:46:20 2013] [notice] Child 5764: Waiting 210 more seconds for 1 worker threads to finish.
[Sun Feb 03 18:46:53 2013] [notice] Child 5764: All worker threads have exited.
[Sun Feb 03 18:46:54 2013] [notice] Child 5764: Child process is exiting
[Sun Feb 03 18:52:02 2013] [notice] Child 3468: Process exiting because it reached MaxRequestsPerChild. Signaling the parent to restart a new child process.
[Sun Feb 03 18:52:02 2013] [notice] Parent: Received restart signal -- Restarting the server.
[Sun Feb 03 18:52:03 2013] [notice] Child 3468: Released the start mutex
[Sun Feb 03 18:52:04 2013] [notice] Apache/2.2.22 (Win32) PHP/5.2.10 configured -- resuming normal operations
[Sun Feb 03 18:52:04 2013] [notice] Server built: Jan 28 2012 11:16:39
[Sun Feb 03 18:52:04 2013] [notice] Parent: Created child process 2500
[Sun Feb 03 18:52:04 2013] [notice] Disabled use of AcceptEx() WinSock2 API
[Sun Feb 03 18:52:05 2013] [notice] Child 2500: Child process is running
[Sun Feb 03 18:52:05 2013] [notice] Child 2500: Acquired the start mutex.
[Sun Feb 03 18:52:05 2013] [notice] Child 2500: Starting 120 worker threads.
[Sun Feb 03 18:52:05 2013] [notice] Child 2500: Listening on port 80.
回複討論(解決方案)
沒遇到
1、請換成WIN7平台
2、使用Integration Environment包如WAMP
無解 以前在win2003下屢次碰到過
Disabled use of AcceptEx() WinSock2 API
加了那個參數 但是不加的話沒多久記憶體就崩潰了...
linux 是王道 一年不用重啟...哈哈哈
我擦,還真沒在windows上弄過,windows的apache這麼不給力麼。。。
我擦,還真沒在windows上弄過,windows的apache這麼不給力麼。。。
不知道怎麼說...原本就不是在win上的web服務.也沒啥奇怪吧,況且microsoft 可能還要保護自己的iis呢..
引用 4 樓 yufulou 的回複:我擦,還真沒在windows上弄過,windows的apache這麼不給力麼。。。
不知道怎麼說...原本就不是在win上的web服務.也沒啥奇怪吧,況且microsoft 可能還要保護自己的iis呢..
呵呵
linux + nginx 歡迎你 嘿嘿
[Sun Feb 03 18:34:41 2013] [notice] Child 5508: Process exiting because it reached MaxRequestsPerChild. Signaling the parent to restart a new child process.
httpd.conf裡調整一下MaxRequestsPerChild,太大 太小都會造成死機,
windows下不會計算,linux下可以這樣做:
cat /proc/PIDHERE/status | grep VmRSS
返回一個數值,比如VmRSS: 204800 kB
然後如果ram = 4g, 4GB * 1024 * 1024 = 4,194,304 KB.
4194304 KB / 204800 KB = 20 processes
PS: 有些linux版本,直接用 cat /proc/PIDHERE/status, 然後找到VmRSS這一行。
路過看看,路過看看。
知名的lamp(Linux+Apache+MySQL+PHP)才是王道。。。
linux + nginx 歡迎你 嘿嘿
就這麼搞了。換了以後馬上解決
[Sun Feb 03 18:34:41 2013] [notice] Child 5508: Process exiting because it reached MaxRequestsPerChild. Signaling the parent to restart a new child process.
httpd.conf裡調整一下MaxRequest……
感謝,已經換linux了換了以後解決了
真心沒有遇到過...還是php、mysql、apache一個一個分布安裝吧...各個問題能把握到...不過Linux+Nginx 真心好用...
是否是你程式執行的問題。
也遇到過這樣的問題,各種測試,win7、win2003、win2008,自已配置的,整合套件wamp等,
最後還是認為apache在windows下的線程並發處理沒有做好。
後來改用visual-nmp(nginx整合套件)解決了。
apache在windows下根本就不能用,只能用於開發,
在windows下架設php還是用nginx比較好。用visual-nmp架設的,壓力測試一下還行。
檢查設定檔中的路徑