From owner-freebsd-questions Thu Jun 27 0:18:29 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mail.halplant.com (ip68-100-145-31.nv.nv.cox.net [68.100.145.31]) by hub.freebsd.org (Postfix) with ESMTP id 234C737B400 for ; Thu, 27 Jun 2002 00:18:21 -0700 (PDT) Received: by mail.halplant.com (Postfix, from userid 1001) id 4FDBF1F7; Thu, 27 Jun 2002 03:18:20 -0400 (EDT) Date: Thu, 27 Jun 2002 03:18:20 -0400 From: Andrew J Caines To: BSD baby Cc: FreeBSD Questions Subject: Re: best advice/tips for a new high-traffic webserver install? Message-ID: <20020627071820.GG15958@hal9000.halplant.com> Reply-To: Andrew J Caines Mail-Followup-To: BSD baby , FreeBSD Questions References: <20020626221019.C3116@mail.hitmedia.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020626221019.C3116@mail.hitmedia.com> Organization: H.A.L. Plant X-PGP-Fingerprint: C59A 2F74 1139 9432 B457 0B61 DDF2 AA61 67C3 18A1 X-Powered-by: FreeBSD 4.6-STABLE X-URL: http://halplant.com:88/ Importance: Normal User-Agent: Mutt/1.5.1i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG BSD baby, > Anyone have some bookmarks of good advice for FreeBSD or Apache > tweaking for best performance on a high-traffic webserver? I am sure than many folks will. Have grains of salt standing by. For FreeBSD, start with the basics including layout out filesystems to use your storage optimally, running a minimal custom kernel and keeping running processes (regular and scheduled) to a minimum. Read tuning(7) and chapter six of the FreeBSD Handbook - "Configuration and Tuning"[1]. > It's just virtual-domain webhosting for people. Web, FTP, Qmail. As for Apache, take a look at Dean Gaudet's "Apache Performance Notes"[2] and the config files which come with the distribution, but bear in mind that Apache's focus is on being a reliable, stable and extensible web server, not performance or optimisation. You may also want to investigate advantages of running Apache 2.x, however you should understand the issues which go along with this. In fact, for most web serving needs I strongly suggest looking into using another web server, possibly in addition to Apache, such as thttpd[3]. For simple stuff like HTTP other server will run faster and scale much further than Apache. This is likely to be your best area for performance and scaling tuning. One thing most folks don't consider is tuning their web content. Good web design will make your pages render much faster and will give an enormous apparent "performance" improvement. General methods include keeping all files as small as possible, minimising included objects in HTML, specifying all relevant object sizes and keeping dynamic content to a minimum. I hope that gives you something to get started. [1] http://www.freebsd.org/handbook/config-tuning.html [2] http://httpd.apache.org/docs/misc/perf-tuning.html [3] http://www.acme.com/software/thttpd/ -Andrew- -- _______________________________________________________________________ | -Andrew J. Caines- Unix Systems Engineer A.J.Caines@halplant.com | | "They that can give up essential liberty to obtain a little temporary | | safety deserve neither liberty nor safety" - Benjamin Franklin, 1759 | To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message