How to get nginx to see higher limit for file descriptors?

Rt Ibmer rtibmx at
Sat Apr 26 07:56:57 MSD 2008

>You have 2 solutions:
>1) execute unlimit -n 65536 in the init.d script, before starting nginx
>2) if you have PAM installed, check /etc/security/limits.conf
>    (this is the location on Linux Debian):
>    www-data  hard  nofile  65536

Thanks. It turns out that #1 did the trick. Odd this is that as I initially posted I had tried that and it wasn't working before. At any rate, it is now. Thanks!

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

More information about the nginx mailing list