Welcome! Log In Create A New Profile

Advanced

Re: maximum number of file descriptors

October 03, 2010 10:24AM
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.

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

maximum number of file descriptors

pablo platt September 28, 2010 06:10PM

Re: maximum number of file descriptors

vesperto September 28, 2010 06:30PM

Re: maximum number of file descriptors

Piotr Sikora September 28, 2010 07:42PM

Re: maximum number of file descriptors

pablo platt September 28, 2010 07:42PM

Re: maximum number of file descriptors

Piotr Sikora September 28, 2010 07:44PM

Re: maximum number of file descriptors

anomalizer October 03, 2010 10:24AM

Re: maximum number of file descriptors

vesperto September 28, 2010 08:26PM

Re: maximum number of file descriptors

pablo platt September 28, 2010 07:42PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 101
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready