VPS侦探论坛

 找回密码
 注册
搜索
热搜: pathinfo
查看: 397|回复: 2

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

[复制链接]
发表于 2018-11-17 11:41:35 | 显示全部楼层 |阅读模式



[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的最大连接数是否可以解决?如何修改比较好?谢谢

美国VPS、VPN、域名代购:http://shop63846532.taobao.com/

 楼主| 发表于 2018-11-17 17:03:10 | 显示全部楼层



我在国外一些老外的网站上,有人回答说,那是因为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
美国VPS推荐: 遨游主机LinodeLOCVPSKVMLAVPS2EZ搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2018-11-17 19:08:13 | 显示全部楼层


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

美国VPS、VPN、域名代购:http://shop63846532.taobao.com/

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2019-5-22 03:59 , Processed in 0.042998 second(s), 26 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表