阿帕奇 - 后随机时间(富勒启动Apache)
你好计算器社区,阿帕奇 - 后随机时间(富勒启动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年
预先感谢您的帮助!
MaxRequestWorkers指令设置将要提供的同时请求数的限制。通过MaxRequestWorkers限制的任何连接尝试通常都会排队,最大数量基于ListenBacklog指令。一旦在不同的请求结束时释放子进程,连接将被处理。
MaxRequestWorkers将转换为将启动以处理请求的子进程的最大数目。默认值是256;要增加它,你还必须提高ServerLimit。
嗯,我已经将“ServerLimit”参数设置为500 ...但是如何计算“MaxRequestWorkers”与“ServerLimit”的对比? – Luluwebmaster
嗯,不知道..? – Luluwebmaster
早些时候,我只是只对不在HTTPS(并在几个小时后离开)的网站发现了一些,
出现问题。
哼,没有想法? ^^ – Luluwebmaster