Welcome! Log In Create A New Profile

Advanced

RE: 24: Too many open files

Richard Kearsley
April 01, 2011 05:00PM
Hi
Thank you, I will try this.


-----Original Message-----
From: Igor Sysoev [mailto:igor@sysoev.ru]
Sent: 01 April 2011 21:49
To: nginx@nginx.org
Subject: Re: 24: Too many open files

On Fri, Apr 01, 2011 at 04:08:30PM +0000, Richard Kearsley wrote:
> Hi
> Thanks for the reply.
>
> The only references to worker in my config are:
>
> worker_processes 4;
> events
> {
> worker_connections 4096;
> }
>
> I read in nginx wiki if worker_rlimit_nofile is not defined, the value from ulimit -n is used?

"ulimit -n" sets/shows the limit of you current login session.
If you run nginx in this session, it will inherit this value.
If it run at bootstrap or something else the limit may be other.
The simplest way is to set it in nginx.conf:

worker_processes 4;
worker_rlimit_nofile 100000;


--
Igor Sysoev
http://sysoev.ru/en/

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

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

24: Too many open files

Richard Kearsley April 01, 2011 12:00PM

Re: 24: Too many open files

Piotr Sikora April 01, 2011 12:08PM

RE: 24: Too many open files

Richard Kearsley April 01, 2011 12:10PM

RE: 24: Too many open files

Richard Kearsley April 01, 2011 04:40PM

Re: 24: Too many open files

Igor Sysoev April 01, 2011 04:50PM

RE: 24: Too many open files

Richard Kearsley April 01, 2011 05:00PM

Re: 24: Too many open files

sridhar basam April 01, 2011 05:12PM

Re: 24: Too many open files

smallfish April 01, 2011 12:08PM

RE: 24: Too many open files

Richard Kearsley April 01, 2011 12:20PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 282
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready