Nginx and worker_connections are more than open file resource limit warning

If you encounter this warning message under Linux:

2009/03/09 21:23:19 [warn] 26827#0: 4096 worker_connections are more than open file resource limit: 1024

A solution is to use the command ulimit in nginx start script, just before lunching nginx:

[...]
ulimit  -n 65536
[...]

Comments (2)

  1. Linuxadmin wrote::

    You should checkout limits.conf to make sure the username (under what nginx has been ran) is not limited by system resource limits settings as well.

    Wednesday, July 22, 2009 at 6:23 pm #
  2. Florent wrote::

    To set this setting system wide, edit your limits.conf that way : http://www.ruby-forum.com/topic/150953

    Thursday, September 10, 2009 at 11:20 am #

Trackbacks/Pingbacks (2)

  1. [...] Check out the original for detail [...]

  2. [...] Here is a excellent tutorial show you about Nginx and worker_connections are more than open file resource limit warning:  you encounter this warning message under Linux: [...]