[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to set ulimit (nofile) for a daemon

On Wed, May 19, 2010 at 06:20:35PM -0400, Felipe Sateler wrote:
> >HBase needs a high nofile limit. What would be the preferred way to set the
> >limit for the HBase daemons?

> >Just call ulimit in the initscript?
> >The java process is started by "daemon" (Debian package "daemon").

> >Thank you,

> >Thomas Koch, http://www.koch.ro

> Create an exclusive user for your daemon, and drop a file in
> /etc/security/limits.d with the following contents:

> daemonuser  -  nofile <somenumber>

This is the wrong answer to the question "how do I set ulimits for a daemon
process?"  /etc/security/limits.d is only processed by pam_limits, which has
no reason to be in the path for service startup.

> You should probably ask via debconf before doing it, though.

No, you shouldn't do that either.

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@ubuntu.com                                     vorlon@debian.org

Attachment: signature.asc
Description: Digital signature

Reply to: