Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Mar 1999 15:06:27 +0000
From:      Stuart Henderson <stuart@eclipse.net.uk>
To:        Steve Price <sprice@hiwaay.net>
Cc:        freebsd-isp@freebsd.org, hamellr@dsinw.com
Subject:   Re: Need help fine-tuning a web server (fwd)
Message-ID:  <36FBA273.F6108F6B@eclipse.net.uk>
References:  <Pine.OSF.4.02.9903260846190.22203-100000@fly.HiWAAY.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?36FBA273.F6108F6B>