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

2010-05-19 Thread Steve Langasek
On Thu, May 20, 2010 at 01:30:37AM +0200, Bernd Eckenfels wrote: > In article <20100519225812.gb28...@dario.dodds.net> you wrote: > > These daemons load pam_limits *when running on behalf of other users*. > > That's an entirely different scenario than running a daemon per se. > In the case of a ja

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

2010-05-19 Thread Don Armstrong
On Wed, 19 May 2010, Russ Allbery wrote: > Thomas Koch writes: > > 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? > > That's what I'd do. I'd suggest having it in /etc/default/hbase (or whate

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

2010-05-19 Thread Russ Allbery
Thomas Koch writes: > 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? That's what I'd do. -- Russ Allbery (r...@debian.org) -- To UNSUBSCRIBE, email

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

2010-05-19 Thread Bernd Eckenfels
In article <20100519225812.gb28...@dario.dodds.net> you wrote: > These daemons load pam_limits *when running on behalf of other users*. > That's an entirely different scenario than running a daemon per se. In the case of a java process started with an init script, it would be su doing the pam chai

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

2010-05-19 Thread Steve Langasek
On Wed, May 19, 2010 at 06:51:25PM -0400, Felipe Sateler wrote: > >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. > cron, atd and schroo

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

2010-05-19 Thread Felipe Sateler
On 19/05/10 18:32, Steve Langasek wrote: 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

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

2010-05-19 Thread Steve Langasek
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,

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

2010-05-19 Thread Felipe Sateler
On 19/05/10 11:46, Thomas Koch wrote: Hi, 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