The default file descriptor limit (ulimit -n 1024) is too low

Steve Langasek steve.langasek at ubuntu.com
Mon Sep 27 22:45:48 BST 2010


On Mon, Sep 27, 2010 at 10:45:23PM +0200, Stephan Hermann wrote:

> > > In case this needs to be raised, this should be done on a per server decision by the sysadmin.
> > > I don't see why it should be raised in general...

> > That's the thing: AFAICT, there is no single place where you can raise
> > that value system-wide.  Doing so for daemon involve invoking ulimit
> > from within their init script (a hack at best).  Or perhaps there *is* a
> > way to raise it globally that I do not know about, I which case I would
> > love to know about it. :)

> There are places where you can do it.../etc/security/limits.conf is one of
> them

That's used for configuring per-session ulimits; it doesn't apply to
services.  Raising this for services should be done in the upstart job using
the 'limit' command.  I don't know of any way to tweak this globally for all
processes at runtime, but by all rights if it were to be tunable, it ought
to be under /proc/sys AFAICS.

-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                    http://www.debian.org/
slangasek at ubuntu.com                                     vorlon at debian.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 828 bytes
Desc: Digital signature
Url : https://lists.ubuntu.com/archives/ubuntu-devel/attachments/20100927/86324181/attachment.pgp 


More information about the ubuntu-devel mailing list