httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rodent of Unusual Size <Ken.C...@Golux.Com>
Subject [ [donotreply@Apache.Org: Re: OpenBSD + Apache as heavy loaded webserver and the cgi problem]]
Date Sun, 16 Sep 2001 20:44:00 GMT
(Working through antique misfiled mail)

Not acked.
----- Forwarded message from Henning Brauer <> -----

From: Henning Brauer <>
Subject: [donotreply@Apache.Org: Re: OpenBSD + Apache as heavy loaded webserver and the cgi
Date: Mon, 15 Jan 2001 04:23:46 +0100
User-Agent: Mutt/1.2.5i

may fit on your performance tuning page...

From: Henning Brauer <>
Subject: OpenBSD + Apache as heavy loaded webserver and the cgi problem
Date: Mon, 15 Jan 2001 03:37:17 +0100

Hi all,

a while ago I sent some apache header file modifications to run under heavy
load on OpenBSD. Unfortunately the original problem came up again, the
server was unable to start CGI's. I found a solution now:

in /usr/src/sys/sys/syslimits.h, change:

#define CHILD_MAX 512
#define OPEN_MAX 512

(defining them as option in kernel config does NOT work!)
in your kernel config:

maxusers 512
option NMBCLUSTERS=8192
option MAX_KMAP=120
option MAX_KMAPENT=6000

in apache's httpd.h:

#define HARD_SERVER_LIMIT 2048

and, after recompiling, adjust the parameters in your apache config file,
especially MaxClients, MaxSpareServers, MinSpareServers and the Keepalive
stuff. Note that starting new apache processes is expensive, so don't set
the startservers and spareservers stuff too low.
The optimal values may differ depending on your load.
Whenever you see error messages like "couldn't spawn child process" the
values for CHILD_MAX and OPEN_MAX could be your problem. Also play with
FD_SETSIZE in apache's ap_config.h, I'm still figuring out the optimal
value for my setup.



Henning Brauer     | BS Web Services
Hostmaster BSWS    | Roedingsmarkt 14 | 20459 Hamburg | Germany

----- End forwarded message -----

#ken	P-)}

Ken Coar, Sanagendamgagwedweinini  http://Golux.Com/coar/
Author, developer, opinionist      http://Apache-Server.Com/

"All right everyone!  Step away from the glowing hamburger!"

View raw message