2017-08-14 26 views
0

你好計算器社區,阿帕奇 - 後隨機時間(富勒啓動Apache)

我有我的Apache服務器的一個大問題網站超時。

(現在我用谷歌翻譯的消息)

對於我還不知道,隨機有原因的,我的Apache2啓動服務器停止響應(錯誤500)。

我發現了一些問題發生時,在文件「error.log中」,我總能找到這一行:

[Mon Aug 14 18:42:39.917495 2017] [mpm_prefork:error] [pid 23163] AH00161: server reached MaxRequestWorkers setting, consider raising the MaxRequestWorkers setting 

在那之後,我曾要求更改值「MaxRequestWorkers」,但它沒有改變什麼,問題仍然存在。

我也注意到,一般而言,出現問題時,它是繼強烈要求吸Apache服務器(尤其是 最後,原力攻擊),這些日誌(access.log裏):

http://p.hexicans.eu/MMgRunkXQX

在文件「error.log中」,我也記錄了許多這樣的錯誤:

[Mon Aug 14 18:28:58.366861 2017] [core:warn] [pid 20916] AH00045: child process 22399 still did not exit, sending a SIGTERM 
[Mon Aug 14 18:28:58.366873 2017] [core:warn] [pid 20916] AH00045: child process 22401 still did not exit, sending a SIGTERM 
[Mon Aug 14 18:28:58.366883 2017] [core:warn] [pid 20916] AH00045: child process 22402 still did not exit, sending a SIGTERM 
[Mon Aug 14 18:28:58.366890 2017] [core:warn] [pid 20916] AH00045: child process 22425 still did not exit, sending a SIGTERM 
[Mon Aug 14 18:28:58.366898 2017] [core:warn] [pid 20916] AH00045: child process 22428 still did not exit, sending a SIGTERM 
[Mon Aug 14 18:28:58.366910 2017] [core:warn] [pid 20916] AH00045: child process 22451 still did not exit, sending a SIGTERM 
[Mon Aug 14 18:28:58.366923 2017] [core:warn] [pid 20916] AH00045: child process 22456 still did not exit, sending a SIGTERM 
[Mon Aug 14 18:28:58.366965 2017] [core:warn] [pid 20916] AH00045: child process 22460 still did not exit, sending a SIGTERM 
[Mon Aug 14 18:28:58.366981 2017] [core:warn] [pid 20916] AH00045: child process 22466 still did not exit, sending a SIGTERM 
[Mon Aug 14 18:28:58.366990 2017] [core:warn] [pid 20916] AH00045: child process 22468 still did not exit, sending a SIGTERM 
[Mon Aug 14 18:28:58.366997 2017] [core:warn] [pid 20916] AH00045: child process 22469 still did not exit, sending a SIGTERM 

我已經花了很多時間尋找一個解決方案,到目前爲止,我還沒有找到它,這就是爲什麼我是hea丁俊暉本次論壇^^

我actualy 「/etc/apache2/mods-enabled/mpm_prefork.conf」 文件:

<IfModule mpm_prefork_module> 
     ServerLimit    500 
     StartServers    10 
     MinSpareServers   10 
     MaxSpareServers   400 
     MaxRequestWorkers  256 
     MaxConnectionsPerChild 0 
     KeepAlive    Off 
</IfModule> 

其他信息:

  • 操作系統:Ubuntu的16.04.3 LTS
  • 阿帕奇:阿帕奇/ 2.4.18(Ubuntu的)
  • PHP:Zend引擎V3.0.0,版權所有(C)1998年至2017年

預先感謝您的幫助!

+0

哼,沒有想法? ^^ – Luluwebmaster

回答

0

MaxRequestWorkers指令設置將要提供的同時請求數的限制。通過MaxRequestWorkers限制的任何連接嘗試通常都會排隊,最大數量基於ListenBacklog指令。一旦在不同的請求結束時釋放子進程,連接將被處理。

MaxRequestWorkers將轉換爲將啓動以處理請求的子進程的最大數目。默認值是256;要增加它,你還必須提高ServerLimit。

+0

嗯,我已經將「ServerLimit」參數設置爲500 ...但是如何計算「MaxRequestWorkers」與「ServerLimit」的對比? – Luluwebmaster

+0

嗯,不知道..? – Luluwebmaster

0

早些時候,我只是隻對不在HTTPS(並在幾個小時後離開)的網站發現了一些,

出現問題。