Opened 5 years ago

Closed 4 years ago

Last modified 4 years ago

#1913 closed defect (worksforme)

Large number of error “512 worker_connections are not enough”

Reported by: yunoasgit@… 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


nginx version: nginx/1.17.3

Worker connections configured or a large number of errors reported.


worker_rlimit_nofile 65535;



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

# ulimit -a
open files (-n) 635360

Change History (5)

comment:1 by yunoasgit@…, 5 years ago

Multiple servers, the same specific is 512

Year-on-year test

Same server, same configuration

1.15.9 no such problem

Thank you very much.

Last edited 5 years ago by yunoasgit@… (previous) (diff)

comment:2 by Maxim Dounin, 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:3 by Maxim Dounin, 4 years ago

Resolution: worksforme
Status: newclosed

Feedback timeout.

comment:4 by yunoasgit@…, 4 years ago

512 may not be dynamic

Want it to prompt

"65535 worker_connections are not enough"

Thank you very much.

comment:5 by Maxim Dounin, 4 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.

Note: See TracTickets for help on using tickets.