打印

1.5版的LNMPA出现超大的Error.log文件??

1.5版的LNMPA出现超大的Error.log文件??

[Sat Nov 17 09:54:19.175053 2018] [core:warn] [pid 451:tid 3074271632] AH00098: pid file /usr/local/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Sat Nov 17 09:54:19.176979 2018] [mpm_event:notice] [pid 451:tid 3074271632] AH00489: Apache/2.4.33 (Unix) OpenSSL/1.0.1e-fips PHP/5.6.36 configured -- resuming normal operations
[Sat Nov 17 09:54:19.177019 2018] [core:notice] [pid 451:tid 3074271632] AH00094: Command line: '/usr/local/apache/bin/httpd'
[Sat Nov 17 09:54:23.182314 2018] [mpm_event:alert] [pid 979:tid 3031137136] (11)Resource temporarily unavailable: AH03104: apr_thread_create: unable to create worker thread
[Sat Nov 17 09:54:23.185138 2018] [mpm_event:crit] [pid 979:tid 2987379568] (22)Invalid argument: AH03099: ap_queue_pop_socket failed
[Sat Nov 17 09:54:23.185284 2018] [mpm_event:crit] [pid 979:tid 2987379568] (22)Invalid argument: AH03099: ap_queue_pop_socket failed
[Sat Nov 17 09:54:23.185295 2018] [mpm_event:crit] [pid 979:tid 2987379568] (22)Invalid argument: AH03099: ap_queue_pop_socket failed
[Sat Nov 17 09:54:23.185303 2018] [mpm_event:crit] [pid 979:tid 2987379568] (22)Invalid argument: AH03099: ap_queue_pop_socket failed
[Sat Nov 17 09:54:23.185310 2018] [mpm_event:crit] [pid 979:tid 2987379568] (22)Invalid argument: AH03099: ap_queue_pop_socket failed
[Sat Nov 17 09:54:23.185317 2018] [mpm_event:crit] [pid 979:tid 2987379568] (22)Invalid argument: AH03099: ap_queue_pop_socket failed
[Sat Nov 17 09:54:23.185324 2018] [mpm_event:crit] [pid 979:tid 2987379568] (22)Invalid argument: AH03099: ap_queue_pop_socket failed
[Sat Nov 17 09:54:23.185332 2018] [mpm_event:crit] [pid 979:tid 2987379568] (22)Invalid argument: AH03099: ap_queue_pop_socket failed
[Sat Nov 17 09:54:23.185339 2018] [mpm_event:crit] [pid 979:tid 2987379568] (22)Invalid argument: AH03099: ap_queue_pop_socket failed
[Sat Nov 17 09:54:23.185347 2018] [mpm_event:crit] [pid 979:tid 2987379568] (22)Invalid argument: AH03099: ap_queue_pop_socket failed

以上只是开头的一小部分,下面全部是ap_queue_pop_socket failed错误,一天可以使log文件增大到数G以上……非常恐怖,直接耗尽vps的资源,导致网站500错误!初步估计应该是搜索引擎出动蜘蛛时导致Apache的最大连接数耗尽导致的,vps后台检测,连接数的峰值时大约为5000左右!!不知道是被攻击了,还是其他的原因,请问军哥有没有办法直接禁掉这个error。log文件,或者有没有其他的方法处理这个问题?修改apache的最大连接数是否可以解决?如何修改比较好?谢谢

TOP

我在国外一些老外的网站上,有人回答说,那是因为cenos系统的linit限制导致的:

It seems like your system limits are not high enough, causing Apache processes to have issues. You might want to increase the values of max user processes, pending signals and open files

TOP

不大清楚什么原因
禁用日志直接httpd.conf 中将ErrorLog后的目录改成 /dev/null
连接数 /usr/local/apache/conf/extra/httpd-mpm.conf  目前你是event模式就查找event那部分的设置修改

LNMP付费问题排查/LNMP技术支持/Paypal信用卡代付/代购VPS,域名,软件等 QQ 503228080 旺旺 lzhenbao
军哥淘宝店铺
QQ/旺旺仅提供代购及付费代维/问题解决等服务,其他不回复!LNMP相关问题请在本论坛发帖,提问前先搜索,按https://bbs.vpser.net/thread-2555-1-1.html 要求反馈问题!

TOP