From owner-freebsd-questions@FreeBSD.ORG Sun Dec 4 05:23:47 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 78ED216A41F for ; Sun, 4 Dec 2005 05:23:47 +0000 (GMT) (envelope-from freebsd@meijome.net) Received: from sigma.octantis.com.au (ns2.octantis.com.au [207.44.189.124]) by mx1.FreeBSD.org (Postfix) with ESMTP id 14D7043D55 for ; Sun, 4 Dec 2005 05:23:46 +0000 (GMT) (envelope-from freebsd@meijome.net) Received: (qmail 28427 invoked from network); 4 Dec 2005 16:23:46 +1100 Received: from andromeda.lef.com.au (HELO ?10.168.101.24?) (210.8.93.2) by sigma.octantis.com.au with (DHE-RSA-AES256-SHA encrypted) SMTP; 4 Dec 2005 16:23:45 +1100 Message-ID: <43927D5D.5020909@meijome.net> Date: Sun, 04 Dec 2005 16:23:41 +1100 From: Norberto Meijome User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 To: "N.J. Thomas" References: <20051201193813.GG15171@ayvali.org> <438F9019.7020309@meijome.net> <20051202012316.GD8773@ayvali.org> In-Reply-To: <20051202012316.GD8773@ayvali.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: Sun, 04 Dec 2005 05:23:47 -0000 N.J. Thomas wrote: > * 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. I would have thought you'd want to increase it (after configuring everything else)...else you'll get all those nasty "server too busy" errors. > Running wc -l on the daily Apache access logs, I get: ~1.8million hits > per day cool. you should most definitely be able to serve that much (with an http service that is properly configured). Apache should do fine. >>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? yes. IIRC, I've had apache 1.3 configured to over maxclients 1500 with about hardware. Your hardware + OS will set some limits (which you should modify as needed of course), but you should definitely be able to have more than 256. >> - 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. > np btw, i think i forgot to mention you should look into changing to KeepAlive OFF (you want to serve a file and free up the apache resources for the next request - you trade off a bit of speed on each client's transaction, but overall you should see a great improvement. If you dont want to kill http keepalive altogether, set the timeout to a short timeframe (1 minute? 30 secs). good luck, Beto