#1913 closed defect (worksforme)
Large number of error “512 worker_connections are not enough”
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | other | Version: | 1.17.x |
Keywords: | Cc: | ||
uname -a: | 2.6.32-696.el6.x86_64 | ||
nginx -V: | nginx version: nginx/1.17.3 |
Description
nginx version: nginx/1.17.3
Worker connections configured or a large number of errors reported.
nginx.conf
worker_rlimit_nofile 65535;
events
{
use epoll;
worker_connections 65535;
}
Large number of error
2020/01/08 15:33:23 [alert] 32784#0: 512 worker_connections are not enough
2020/01/08 15:33:23 [alert] 32784#0: 512 worker_connections are not enough
2020/01/08 15:33:23 [alert] 32784#0: 512 worker_connections are not enough
linux
# ulimit -a
open files (-n) 635360
......
Change History (5)
comment:2 by , 5 years ago
The "512 worker_connections are not enough" error with worker_connections 65535;
in the configuration suggests one of the following:
- Either the configuration in question is not used. Make sure you've reloaded the configuration after changing it. Make sure you are editing correct configuration file - the one that is used by your nginx instance. To make sure consider adding a deliberate syntax error to the file and check if nginx refuses to start.
- Or you are using a third party module which tries to open connections in a helper process. Consider checking "nginx -V" output and your configuration to make sure you are seeing the problem without any 3rd party modules.
If unsure, please provide full "nginx -V" output, and full configuration (full "nginx -T" output). Please also provide details about the process which reports errors ("ps -ef | grep nginx" output and some recent "worker_connections are not enough" errors).
comment:4 by , 5 years ago
512 may not be dynamic
Want it to prompt
"65535 worker_connections are not enough"
Thank you very much.
comment:5 by , 5 years ago
The worker_connections
can be reconfigured dynamically, though you have to instruct nginx to reload the configuration. Please see comment:2 for suggested steps on how to understand what is wrong in your particular configuration.
Multiple servers, the same specific is 512
Year-on-year test
Same server, same configuration
1.16.x no such problem
Thank you very much.