From owner-freebsd-questions@FreeBSD.ORG Fri Dec 2 01:23:20 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F33DD16A41F for ; Fri, 2 Dec 2005 01:23:19 +0000 (GMT) (envelope-from njt@ayvali.org) Received: from sanddollar.geekisp.com (sanddollar.geekisp.com [204.89.131.97]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1820D43D64 for ; Fri, 2 Dec 2005 01:23:18 +0000 (GMT) (envelope-from njt@ayvali.org) Received: (qmail 14310 invoked by uid 1003); 2 Dec 2005 01:23:18 -0000 Received: from clam.int.geekisp.com (HELO clam.geekisp.com) (192.168.4.38) by mail.geekisp.com with (DHE-RSA-AES256-SHA encrypted) SMTP; 2 Dec 2005 01:23:18 -0000 Received: from clam.geekisp.com (njt@localhost.geekisp.com [127.0.0.1]) by clam.geekisp.com (8.13.3/8.12.11) with ESMTP id jB21NHMI021762; Thu, 1 Dec 2005 20:23:17 -0500 (EST) Received: (from njt@localhost) by clam.geekisp.com (8.13.3/8.13.3/Submit) id jB21NGKT008647; Thu, 1 Dec 2005 20:23:16 -0500 (EST) X-Authentication-Warning: clam.geekisp.com: njt set sender to njt@ayvali.org using -f Date: Thu, 1 Dec 2005 20:23:16 -0500 From: "N.J. Thomas" To: Norberto Meijome Message-ID: <20051202012316.GD8773@ayvali.org> References: <20051201193813.GG15171@ayvali.org> <438F9019.7020309@meijome.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <438F9019.7020309@meijome.net> User-Agent: Mutt/1.5.9i Cc: freebsd-questions@freebsd.org Subject: Re: overloaded webserver: nfs wait issue? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Dec 2005 01:23:20 -0000 * Norberto Meijome [2005-12-02 11:06:49 +1100]: > What's your MaxClients set to? It was set to 256, we actually lowered it to 180. > Please define your values for "lot of traffic". Running wc -l on the daily Apache access logs, I get: ~1.8million hits per day > What CPU? RAM (512MB seems a bit low nowadays)? Disks? One of the web servers is a (P4, 3GHz, 1GB RAM), the other is a (P3, 1.4GHz, 1GB RAM), they are load balanced evenly, both of them display the same error when the number of httpd processes reach MaxClients. > I dont think i can give much advice on the NFS side of things but in the > meantime I would : > - increase # of MaxClients (the default is RIDICULOUSLY small, > specially in 1.3. You will probably have to recompile with a new max. Higher than 256? > - Look at what the PHP scripts do : i.e., is there anything under your > control that can be improved? I'll ask the devs to take a look. > - You RAM seems OK ... you may want to tweak some sysctl or memory > settings in Apache (I seem to remember in 1.3 some to do with MMap, but > i could be wrong) ... or just add more RAM. Check vmstat (or systat -vm > 1) to see how much swapping is going on. Will do...thanks for the suggestions. Thomas -- N.J. Thomas njt@ayvali.org Etiamsi occiderit me, in ipso sperabo