From owner-freebsd-isp Fri Mar 26 7: 5:12 1999 Delivered-To: freebsd-isp@freebsd.org Received: from carme.eclipse.net.uk (carme.eclipse.net.uk [195.188.32.33]) by hub.freebsd.org (Postfix) with ESMTP id B9B2D1559A for ; Fri, 26 Mar 1999 07:05:05 -0800 (PST) (envelope-from stuart@eclipse.net.uk) Received: from eclipse.net.uk (elara.eclipse.net.uk [195.188.32.31]) by carme.eclipse.net.uk (8.9.3/8.9.3) with ESMTP id PAA21924; Fri, 26 Mar 1999 15:04:40 GMT Message-ID: <36FBA273.F6108F6B@eclipse.net.uk> Date: Fri, 26 Mar 1999 15:06:27 +0000 From: Stuart Henderson Organization: Eclipse Networking Ltd. X-Mailer: Mozilla 4.51 [en] (WinNT; U) X-Accept-Language: en-GB MIME-Version: 1.0 To: Steve Price Cc: freebsd-isp@freebsd.org, hamellr@dsinw.com Subject: Re: Need help fine-tuning a web server (fwd) References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Steve Price wrote: > > Anyone have any experience setting up a heavily-loaded web > server box that can spare a few answers to this gentleman's > questions? Or have any pointers to docs that might help? > Thanks. tweaks to investigate: kernel MAXUSERS NMBCLUSTERS CHILD_MAX OPEN_MAX (look through LINT for info, also check for anything else that might apply) runtime sysctl -w kern.somaxconn apache HARD_SERVER_LIMIT also it can help to compile with -m486 -fexpensive-optimizations -fomit-frame-pointer -O2 This was from http://www.apache.org.uk/docs/misc/perf-bsd44.html There may be some other tips at http://squid.nlanr.net/ as high performance squids need similar tweaking for connection handling. See how much memory is used by the httpd processes and try hard to avoid swapping. Maybe if most of the heavy load is for static pages not dynamic then frontend it with a squid accelerator. Also maybe a good idea to put the database on a separate server (particularly if it's for authentication, so it can be kept more secure), preferably with a private ethernet between the two (easiest way is to add an extra fxp0 to each and wire direct between them, these network cards should autodetect so you shouldn't need a x-over lead). HTH Stuart To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message