ulimit in the ubuntu package
pablo.platt at gmail.com
Tue Jun 4 13:04:02 UTC 2013
It's not clear to me how worker_rlimit_nofile, /etc/security/limits.conf
and setting ulimit in the init.d script are related.
Is worker_rlimit_nofile the same as using ulimit in the init.d script?
Or does ulimit sets the maximum limit and worker_rlimit_nofile the limit
Why does the init.d script from the ubuntu repo let me set using ulimit
while the package from nginx.org doesn't?
Does /etc/security/limits.conf has any effect on the nofile limit in nginx
when it is started using init.d script?
For upstart, I know that you have to set the limit in the upstart script
and can't use /etc/security/limits.conf
On Tue, Jun 4, 2013 at 3:39 PM, Maxim Dounin <mdounin at mdounin.ru> wrote:
> On Tue, Jun 04, 2013 at 04:30:40PM +0400, Sergey Budnevitch wrote:
> > On 4 Jun2013, at 15:39 , pablo platt <pablo.platt at gmail.com> wrote:
> > > Hi,
> > >
> > > I'm using the ubuntu package from nginx.org.
> > >
> > > In the package from the official ubuntu repo, you can set file
> descriptor limit by changing /etc/default/nginx
> > > # Check if the ULIMIT is set in /etc/default/nginx
> > > if [ -n "$ULIMIT" ]; then
> > > # Set the ulimits
> > > ulimit $ULIMIT
> > > fi
> > ulimit without flags sets max file size in blocks, not file descriptor
> limit, so
> > you may fill a bug in their bug tracker.
> I think the expected use is to supply arguments within the ULIMIT
> Maxim Dounin
> nginx mailing list
> nginx at nginx.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the nginx