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

Re: Apache && OpenBSD && "(35)Resource temporarily unavailable"



On Wed, Jun 20, 2001 at 12:34:08PM +0200, Alex de Joode wrote:
> > > I increased sysctl kern.maxproc from the default 1044 to 3000,
> > > but to no avail.
> > > Anyone knows what's wrong ? 
> > Typically, the limit of children per process or limit of files per process
> > is reached. If your server is somehow loaded, the defaults used in OpenBSD
> > are to small. Edit
> > /usr/src/sys/sys/syslimits.h
> #define CHILD_MAX                  80   /* max simultaneous processes */
> #define OPEN_MAX                   64   /* max open files per process */ 
> I guess there is a performance hit if one makes these to high ?

Not that I'm aware of. These are more protection against apps running amok.

> What is the average increase needed (double it ?)

Depends heavily on your needs. double it sounds good. I have webservers
needing both values >>2000.

-- 
* Henning Brauer, hostmaster@bsws.de, http://www.bsws.de *
* Roedingsmarkt 14, 20459 Hamburg, Germany               *
Unix is very simple, but it takes a genius to understand the simplicity.
(Dennis Ritchie)