[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 11:11:49AM +0200, Alex de Joode wrote:
> I ran apache on an OpenBSD 2.6 with no problems for the
> last couple of years, however last weekend the machine
> frooze so i had to reset it, and now server side includes
> do not work any more.
> The apache log file gives:
> [Wed Jun 20 10:54:52 2001] [error] [client 192.168.0.1] (35)Resource
> temporarily unavailable: couldn't spawn include command
> [Wed Jun 20 10:54:52 2001] [error] [client 192.168.0.1] execution
> failure for parameter "cmd" to tag exec in file
> /var/web/httpd/
> 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

and upper

OPEN_MAX
CHILD_MAX

Recompile then.
-- 
* 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)