首先谢谢你的帮助...
Apache 崩溃并获取日志文件,我该如何解决这个错误?
/var/log/httpd/错误日志
...
...
[mpm_prefork:emerg] [pid 19347] (22)Invalid argument: AH00157: Couldn't add listener to pollset; check system or user limits
...
...
Apache 版本
Apache/2.4.10 (Unix)
ulimit -a
[root@ns20 ~]# ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 515168
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 55000
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 515168
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
/etc/security/limits.conf
* soft nofile 55000
* hard nofile 60000
免费-g
[root@ns ~]# free -g
total used free shared buffers cached
Mem: 62 60 2 0 1 38
-/+ buffers/cache: 20 42
Swap: 1 0 0
答案1
我解决了这个问题。
“在内核 3.2.9 到 3.2.17 中,epoll 路径 (1000) 存在任意限制,当有 1001+ 个进程时,会导致 apache 死锁”
https://bz.apache.org/bugzilla/show_bug.cgi?id=54502
解决方案:更新内核
此致