Apache 經常掛起,需要重新啟動才能再次工作

Apache 經常掛起,需要重新啟動才能再次工作

我在調整 apache 時遇到問題。我目前的 mpm 事件配置是

<IfModule mpm_event_module>
  ServerLimit               24
  StartServers               8
  MinSpareThreads          512
  MaxSpareThreads          768
  ThreadsPerChild           64
  MaxRequestWorkers       1536
  MaxConnectionsPerChild  5000
</IfModule>

如果我在我的網站上連續按ctrl+r 大約20 秒,apache 就會掛起,我需要重新啟動伺服器。超過5 次。我正在閱讀調整 apache mpm 事件的論壇,但無法弄清楚。我正在使用帶有 ubuntu 的 Amazon m3 大型實例

伺服器狀態顯示這樣的輸出

Current Time: Monday, 22-Jun-2015 06:42:39 UTC
Restart Time: Monday, 22-Jun-2015 06:20:47 UTC
Parent Server Config. Generation: 1
Parent Server MPM Generation: 0
Server uptime: 21 minutes 52 seconds
Server load: 0.05 0.12 0.14
Total accesses: 5551 - Total Traffic: 51.7 MB
CPU Usage: u41.07 s7.28 cu0 cs0 - 3.69% CPU load
4.23 requests/sec - 40.3 kB/second - 9.5 kB/request
98 requests currently being processed, 862 idle workers
PID Connections Threads Async connections
total   accepting   busy    idle    writing keep-alive  closing
28956   2   yes 2   62  0   0   0
28957   5   yes 4   60  0   0   1
28958   2   yes 2   62  0   0   0
28959   0   yes 0   64  0   0   0
28961   3   yes 2   62  0   0   0
28962   11  yes 11  53  0   0   0
28963   7   yes 7   57  0   0   0
29229   8   yes 8   56  0   0   0
29266   7   yes 7   57  0   0   0
29268   5   yes 5   59  0   0   0
29501   9   yes 10  54  0   0   0
29606   12  yes 10  54  1   0   1
29760   18  yes 18  46  0   0   0
30386   11  yes 11  53  0   0   0
30453   1   yes 1   63  0   0   0
Sum 101     98  862 1   0   2
___WW___________________________________________________________
__________WWW_W_________________________________________________
_______________WW_______________________________________________
________________________________________________________________
____________________________________________________________W_W_
_____W___W__W_______________WWWWWWWW____________________________
_____________________WWWW____________________________________WWW
____________________________________________WWW_WWWWW___________
____________________________________________WW________WWW_____WW
________WWWW__________________W_________________________________
__________W________WWWWWWW_____W____________________________W___
__________________________________WW__WW____WW_WW__W__________W_
_____W________W______WW_W__WWWWW__W__WWWWW_W_________________W__
WWWWWWWWWWW_____________________________________________________
______W_________________________________________________________
................................................................
................................................................
................................................................

相關內容