1.5版的LNMPA出现超大的Error.log文件??
AH00098: pid file /usr/local/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?AH00489: Apache/2.4.33 (Unix) OpenSSL/1.0.1e-fips PHP/5.6.36 configured -- resuming normal operations
AH00094: Command line: '/usr/local/apache/bin/httpd'
(11)Resource temporarily unavailable: AH03104: apr_thread_create: unable to create worker thread
(22)Invalid argument: AH03099: ap_queue_pop_socket failed
(22)Invalid argument: AH03099: ap_queue_pop_socket failed
(22)Invalid argument: AH03099: ap_queue_pop_socket failed
(22)Invalid argument: AH03099: ap_queue_pop_socket failed
(22)Invalid argument: AH03099: ap_queue_pop_socket failed
(22)Invalid argument: AH03099: ap_queue_pop_socket failed
(22)Invalid argument: AH03099: ap_queue_pop_socket failed
(22)Invalid argument: AH03099: ap_queue_pop_socket failed
(22)Invalid argument: AH03099: ap_queue_pop_socket failed
(22)Invalid argument: AH03099: ap_queue_pop_socket failed
以上只是开头的一小部分,下面全部是ap_queue_pop_socket failed错误,一天可以使log文件增大到数G以上……非常恐怖,直接耗尽vps的资源,导致网站500错误!初步估计应该是搜索引擎出动蜘蛛时导致Apache的最大连接数耗尽导致的,vps后台检测,连接数的峰值时大约为5000左右!!不知道是被攻击了,还是其他的原因,请问军哥有没有办法直接禁掉这个error。log文件,或者有没有其他的方法处理这个问题?修改apache的最大连接数是否可以解决?如何修改比较好?谢谢 我在国外一些老外的网站上,有人回答说,那是因为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 不大清楚什么原因
禁用日志直接httpd.conf 中将ErrorLog后的目录改成 /dev/null
连接数 /usr/local/apache/conf/extra/httpd-mpm.conf目前你是event模式就查找event那部分的设置修改
页:
[1]