Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 54602 invoked from network); 4 Dec 2003 19:49:15 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 4 Dec 2003 19:49:15 -0000 Received: (qmail 79263 invoked by uid 500); 4 Dec 2003 19:48:51 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 79224 invoked by uid 500); 4 Dec 2003 19:48:50 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 79199 invoked from network); 4 Dec 2003 19:48:50 -0000 Received: from unknown (HELO garibaldi.swishmail.com) (209.10.110.70) by daedalus.apache.org with SMTP; 4 Dec 2003 19:48:50 -0000 Received: (qmail 74032 invoked by uid 89); 4 Dec 2003 19:48:54 -0000 Received: from unknown (HELO 192.168.1.73) (207.98.207.142) by garibaldi.swishmail.com with RC4-MD5 encrypted SMTP; 4 Dec 2003 19:48:54 -0000 From: "Richard F. Rebel" To: richard.correia@ugamsolutions.com Cc: users@httpd.apache.org, 'Robert Andersson' In-Reply-To: <003d01c3ba9e$a38ad650$be6ea8c0@smbnetwork> References: <003d01c3ba9e$a38ad650$be6ea8c0@smbnetwork> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-kdnQ2ALb4Wd8PhtawVSg" Organization: Whenu.com Message-Id: <1070567214.32453.32.camel@localhost> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.4-8mdk Date: Thu, 04 Dec 2003 14:46:54 -0500 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Subject: Re: [users@httpd] Increasing MaxClients -- httpd.conf X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N --=-kdnQ2ALb4Wd8PhtawVSg Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi, If you are not expecting multiple requests over the same socket, you can disable KeepAlives with: KeepAlive Off If you wish to continue supporting KeepAlive, then you can lower the KeepAliveTimeout with: KeepAliveTimeout 5 You should include the version of apache and the OS when making requests to the list. Apache 2.x supports a threaded MPM called 'worker' that works well for high volumes of simul connections. FYI if you are using Apache 1.x there is a compile time option limiting the max number for MaxClients. I think it's set to 256 or 500 or something small, so if you have the memory, increase this setting and recompile (it's in httpd.h). There is documentation on the apache site for this. Don't forget to increase your available file descriptors as well. Best, Richard F. Rebel On Thu, 2003-12-04 at 14:41, Richard Correia wrote: > Hi, >=20 > I am getting huge number of hits on my server, so I have increased the > MaxClients to 256. Now it seems like all my 256 clients are being used > and many requests are waiting in pool. Or at this point my apache is > denying further connections ? >=20 > How can I compile my apache to raise MaxClients limits ? My all > processes are in K mode [Keep-Alive ]. If I reduce the Keepalive time, > will that help me ?=20 >=20 > Because all this hits are coming to a single url, which just send a > cookie. Not much data. And I don't see multiple requests happening on > single socket. >=20 > Please let me know what I can do to overcome this.=20 >=20 > Thanks > Richard >=20 > Here is what my /server-status shows. >=20 > ------------------------------------------------------------------------ > -------- > Server Version: Apache/1.3.23 (Unix) mod_jk/1.1.0 PHP/4.1.1 > Server Built: Jul 4 2003 00:48:13 > ------------------------------------------------------------------------ > -------- >=20 > Current Time: Thursday, 04-Dec-2003 12:25:59 PST > Restart Time: Wednesday, 03-Dec-2003 13:10:34 PST >=20 > Parent Server Generation: 4=20 > Server uptime: 23 hours 15 minutes 25 seconds >=20 > Total accesses: 2196008 - Total Traffic: 406.0 MB // So many hits in > 24 hours >=20 > CPU Usage: u685.73 s636.61 cu529.11 cs34.61 - 2.25% CPU load >=20 > 26.2 requests/sec - 5085 B/second - 193 B/request > 256 requests currently being processed, 0 idle servers=20 >=20 > KKKKKKKKKKKKKKKKKKKKKKRKKKKKKKKKKRKKKKKKKKKKKKKKKKKKKKKKKKKRRKKK > KKKKKKKKKRKKKKKKKKKKRKKKRKKKKKKKKKWKKKRRWKKKKKKKKKRKKKKKKKKKKKRK > KKKRKKKKKKKKKKKKKWRRKKKRKKKKKKRKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK > KKKKKKKKKKRKKKKKKKKKKKKKKKKKKKKKKKRWKKKKKKKKKKKKKKKKKKKKKKKKKKKK >=20 >=20 >=20 > --------------------------------------------------------------------- > The official User-To-User support forum of the Apache HTTP Server Project= . > See for more info. > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org > " from the digest: users-digest-unsubscribe@httpd.apache.org > For additional commands, e-mail: users-help@httpd.apache.org --=20 Richard F. Rebel rrebel@whenu.com t. 212.239.0000 --=-kdnQ2ALb4Wd8PhtawVSg Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) iD8DBQA/z48ux1ZaISfnBu0RAh2fAJ9m0cnjTMHq+9SoTynyWqVhkt7cHQCePCqJ wI2osLrdbH2BEj9+sP+k2Vo= =8Rkd -----END PGP SIGNATURE----- --=-kdnQ2ALb4Wd8PhtawVSg--