Subject: Re: raising maxproc at boot time?
To: Hubert Feyrer <hubert@feyrer.de>
From: Jeff Rizzo <riz@boogers.sf.ca.us>
List: netbsd-help
Date: 09/16/2001 11:34:53
On Sat, Sep 15, 2001 at 09:48:04PM +0200, Hubert Feyrer wrote:
> In article <20010914213653.A24075@hubba.boogers.sf.ca.us> you wrote:
> > I know about sysctl.conf, but since I don't know what the process ID is 
> > before the process is started, I can't use sysctl.  :)  I imagine
> > it's "ulimit", but I don't quite see the place to use it in the
> > apache script.
> 
> Watch closely:
> 
> miyu% sysctl -a | grep maxproc
> kern.maxproc = 532                             <---
> proc.curproc.rlimit.maxproc.soft = 80
> proc.curproc.rlimit.maxproc.hard = 532

Sorry, I guess I haven't made myself very clear.  I know about kern.maxproc, 
and /etc/sysctl.conf.  In fact, I've already *got* kern.maxproc set to 1024.
(and I used sysctl.conf to do it)

The variable I'm actually interested in is proc.<pid>.rlimit.maxproc.soft,
as that's what controls how many processes a given process is able to spawn.
I need to have that set to something higher than 80 for the apache
processes, which is owned by use 'nobody'.

+j
-- 
Jeff Rizzo                                         http://boogers.sf.ca.us/~riz