![AH00157:无法将监听器添加到轮询集;请检查系统或用户限制](https://linux22.com/image/648967/AH00157%EF%BC%9A%E6%97%A0%E6%B3%95%E5%B0%86%E7%9B%91%E5%90%AC%E5%99%A8%E6%B7%BB%E5%8A%A0%E5%88%B0%E8%BD%AE%E8%AF%A2%E9%9B%86%EF%BC%9B%E8%AF%B7%E6%A3%80%E6%9F%A5%E7%B3%BB%E7%BB%9F%E6%88%96%E7%94%A8%E6%88%B7%E9%99%90%E5%88%B6.png)
首先谢谢你的帮助...
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
解决方案:更新内核
此致