From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 22 02:10:06 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 79C0F16A474 for ; Thu, 22 Jun 2006 02:10:06 +0000 (UTC) (envelope-from killing@multiplay.co.uk) Received: from multiplay.co.uk (core6.multiplay.co.uk [85.236.96.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id CBDB543D46 for ; Thu, 22 Jun 2006 02:10:05 +0000 (GMT) (envelope-from killing@multiplay.co.uk) Received: from vader ([212.135.219.179]) by multiplay.co.uk (multiplay.co.uk [85.236.96.23]) (MDaemon PRO v9.0.1) with ESMTP id md50002676356.msg for ; Thu, 22 Jun 2006 03:09:38 +0100 Message-ID: <006901c695a0$e1978f30$b3db87d4@multiplay.co.uk> From: "Steven Hartland" To: Date: Thu, 22 Jun 2006 03:09:15 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 X-Spam-Processed: multiplay.co.uk, Thu, 22 Jun 2006 03:09:38 +0100 (not processed: message from valid local sender) X-MDRemoteIP: 212.135.219.179 X-Return-Path: killing@multiplay.co.uk X-MDaemon-Deliver-To: freebsd-hackers@freebsd.org X-MDAV-Processed: multiplay.co.uk, Thu, 22 Jun 2006 03:09:38 +0100 Subject: Massive apache slowdown after high load period X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 02:10:06 -0000 We've just had a box which was subjected to a large amount of small apache requests once this subsided the response of apache was still very slow. Many seconds between requests showing in tcpdump and response being returned. Upon investigation it seemed the number of sockets in teardown / mbufs allocated might be the cause has anyone else experienced that? netstat -m 4294880568 mbufs in use 29885/76800 mbuf clusters in use (current/max) 0/5/6656 sfbufs in use (current/peak/max) 38088 KBytes allocated to network 0 requests for sfbufs denied 0 requests for sfbufs delayed 0 requests for I/O initiated by sendfile 687 calls to protocol drain routines netstat showed 1 CLOSE_WAIT 6 LAST_ACK 41 FIN_WAIT_1 129 FIN_WAIT_2 295 ESTABLISHED 1083 TIME_WAIT A restart of apache made no difference a reboot of the machine was required to return normal performance. N.B. 5.4-RELEASE-p8 is in use on the machine in question. Steve ================================================ This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. In the event of misdirection, illegible or incomplete transmission please telephone +44 845 868 1337 or return the E.mail to postmaster@multiplay.co.uk.