The error log is filled w/ Too many open files
.
I increased the ulimit and fs.file-max to very high numbers (and validated the change via sysctl -a | grep fs.file-max
and ulimit -n
on the nginx's user).
lsof | wc -l
indicate that very few file-descriptors are open and are no where near the limits.
more info:
nginx version: 1.15.7
linux version: Ubuntu 16.04.4 LTS (GNU/Linux 4.4.0-1072-aws x86_64)
what else could cause this?
Best Answer
did you set "worker_rlimit_nofile" in nginx.conf ?