maximum number of file descriptors

Arvind Jayaprakash work at anomalizer.net
Sun Oct 3 18:19:03 MSD 2010


On Sep 29, Piotr Sikora wrote:
>> Igor said that worker_rlimit_nofile is not enough:
>> http://nginx.org/pipermail/nginx/2008-April/004596.html
>
>It works for me just fine.

It works as long as your master process is running as root. Given that
nginx is usually listening on port 80, the master process is usually
running as root.

My pratical observation is that the limits seem to be set before the
workers are forked and hence, the elevated limits seem to be carried
forward.

limits.conf is applicable for user-sessions. A program started directly
by init is unaffected by these settings.

Note that all the statements above are for linux. I am not sure how it
works on FreeBSD.



More information about the nginx mailing list