Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 96341 invoked from network); 1 Oct 2007 23:06:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Oct 2007 23:06:47 -0000 Received: (qmail 28124 invoked by uid 500); 1 Oct 2007 23:06:35 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 28059 invoked by uid 500); 1 Oct 2007 23:06:35 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 28048 invoked by uid 99); 1 Oct 2007 23:06:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Oct 2007 16:06:35 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [69.147.95.76] (HELO smtp113.plus.mail.sp1.yahoo.com) (69.147.95.76) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 01 Oct 2007 23:06:35 +0000 Received: (qmail 65585 invoked from network); 1 Oct 2007 23:05:14 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-YMail-OSG:From:To:References:In-Reply-To:Subject:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:X-Mailer:Thread-Index:Content-Language; b=Unn3xvd73CD9/rYyC3qY0BzxxCJOCWgSNitUMd7UWcHgdnIvnwYCRKTz8G/3Tsq4Dhqnceck4Ta3jIp2zcvo8m9ht3OPKLJV+9BfI4i3ZR+oKJMxX4aB3jqZOUPk7JH+/6dMySAN/3fAlfyQMu39xTeR9FLV7PzzE4XkFgBGwPU= ; Received: from unknown (HELO T60) (matusis@75.62.105.81 with login) by smtp113.plus.mail.sp1.yahoo.com with SMTP; 1 Oct 2007 23:05:13 -0000 X-YMail-OSG: zGZDLjoVM1mtoDw4eeDvcTRIZVhG3c5ztdoQV3T0avWcbiMNwg9EK12x7bo0R2vixpcfqpN5uA-- From: "Alec Matusis" To: References: <543025.74626.qm@web81108.mail.mud.yahoo.com> <4700AE6C.3070802@apache.org> In-Reply-To: <4700AE6C.3070802@apache.org> Subject: RE: 2.0.54 unstable, requests time-out, NO warnings in logs Date: Mon, 1 Oct 2007 16:04:42 -0700 Message-ID: <00f901c8047f$73e42b70$5bac8250$@com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AcgEBF0yq5koML6nTiSxKpKA8L8rmAAefFDw Content-Language: en-us X-Virus-Checked: Checked by ClamAV on apache.org > Have you checked without the MaxMemFree setting? > Why do you use MaxMemFree with such a small value at all? I finally removed MaxMemFree altogether, and it crashed again. Nothing = in the apache error logs, but this is how /server-status looks like during = the crash: 300 requests currently being processed, 0 idle workers=20 WCRRRRRRCRRRRRRRRCCRRRRRRRRRRRRRRRCCRWWRRRCRWRRCRRCRWRRWRRRRRRRC RRCRRRRCRCRRWRRRRWWCRRRWRRRWRCRRRCRRRRRRRRRCRRCRRRCCCRRCRRRRCCWR RCRRRRRRRRRRRRRRRRWWRRRWRWRWCCCWWWRCRRRRRCRCCWRRWRCRCRWRRRRCRRRR RRRRWRRRWRRRCRRCRRCRRRCRRRRRRRRRRRRRRRRCCCRWRRRRRRRRRRRRCRRRCRRR RRCRRRRRRRRCRWCRCRRRRRRRWWCWRRCWRRRCRRCRRRCR Immediately after I restarted the apache after the crash, I did get [Mon Oct 01 15:20:49 2007] [notice] mod_python: Creating 32 session = mutexes based on 300 max processes and 0 max threads. [Mon Oct 01 15:20:49 2007] [notice] Apache/2.0.54 (Unix) = mod_python/3.1.4 Python/2.4.1 configured -- resuming normal operations ****[Mon Oct 01 15:21:25 2007] [error] server reached MaxClients = setting, consider raising the MaxClients setting*** but it's strange that this message was not written before or during the crash, even though /server-status shows no available free child = processes. > -----Original Message----- > From: Ruediger Pluem [mailto:rpluem@apache.org] > Sent: Monday, October 01, 2007 1:23 AM > To: dev@httpd.apache.org > Subject: Re: 2.0.54 unstable, requests time-out, NO warnings in logs >=20 >=20 >=20 > On 10/01/2007 08:32 AM, Alec Matusis wrote: > > We are running a busy Apache/2.0.54 server on 2.6.9 kernel, that > suddenly becomes very slow- requests either time out, or it takes 10- > 20sec to serve a 1K thumbnail. > > It is somewhat correlated with load spikes, but not perfectly (by > looking at the bandwidth graph, it never happens during the low > bandwidth periods at night, but it does not coincide with peaks of = b/w) > > > > When we initially encountered an apache overload, it was always > accompanied with > > > > [error] server reached MaxClients setting, consider raising the > MaxClients setting > > > > in the apache error log. We also got > > > > kernel: possible SYN flooding on port 80. Sending cookies. > > > > in /var/log/messages system log. > > > > After that I raised MaxClients from 200 to 300. The problem = initially > disappeared, but after our bandwidth grew a bit more, we got this > behavior again. > > Now apache crashes (becomes very slow) silently, with no warning in > apache error logs at all (although we still get SYN flood message in > the system log) > > When apache is this 'slow' regime, /server-status still shows > available slots, i.e. MaxClients is not reached. > > > > This is the relevant part of httpd.conf: > > > > ServerLimit 300 > > # we are using prefork MPM > > StartServers 10 > > MinSpareServers 5 > > MaxSpareServers 20 > > MaxClients 300 > > MaxRequestsPerChild 10000 > > MaxMemFree 2500 > > > > The server has 4GB of physical RAM and 4GB of swap. During these > apache =93slowdowns", the swap size is still 0 and vmstat shows no > swapping at all. > > I suspect the problem may be in > > > > MaxMemFree 2500 >=20 > Have you checked without the MaxMemFree setting? > Why do you use MaxMemFree with such a small value at all? >=20 > Regards >=20 > R=FCdiger