From owner-freebsd-questions Thu Apr 1 12:31: 3 1999 Delivered-To: freebsd-questions@freebsd.org Received: from gatekeep.kcc.com (gatekeep.kcc.com [192.136.16.2]) by hub.freebsd.org (Postfix) with ESMTP id 458C4155B2 for ; Thu, 1 Apr 1999 12:30:27 -0800 (PST) (envelope-from ellis@kcc.com) Received: from mail.kcc.com (ustcax00.kcc.com [205.203.65.10]) by gatekeep.kcc.com (8.8.6 (PHNE_14041)/8.8.6) with SMTP id MAA21991 for ; Thu, 1 Apr 1999 12:42:52 -0600 (CST) Received: from 205.203.65.10 by mail.kcc.com with ESMTP (WorldSecure Server SMTP Relay(WSS) v3.2 SR1); Thu, 01 Apr 99 14:27:29 -0600 X-Server-Uuid: fc96bae8-3f98-11d2-a40d-00805f199815 Received: by ustcax00.kcc.com with Internet Mail Service (5.5.2448.0) id <2DHBW4WP>; Thu, 1 Apr 1999 14:27:29 -0600 Message-ID: <2B2253731B41D211846400805F19594B04B0F1FD@ustcax08.kcc.com> From: "Ellis, Joshua" To: "'K. Arun'" , Cc: Subject: RE: Apache on FreeBSD Date: Thu, 1 Apr 1999 14:30:04 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2448.0) X-WSS-ID: 1B1D093B542070-01-01 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > As I do not have much experience by way of running a > web server, I > wondered if anyone on this list would be able to answer their queries, > as they are really keen on using FreeBSD. The Apache site has some good tips: http://www.apache.org/docs-1.2/misc/perf-bsd44.html I have Apache running on a dozen FreeBSD servers, Even with PHP, pgsql, and mod_perl compiled in, some fairly high-volume (200K+ hits/day) sites run without a hiccup. The basic tweaks I use are in the kernel config file (/usr/src/sys/i386/conf/.....) cpu "I686_CPU" # pentium II maxusers 256 # def: 64 options "MAXMEM=(512*1024)" # amount in KB; nnnMeg = nnn*1024 options CHILD_MAX=512 # def: 128 options OPEN_MAX=512 # def: 128 options CHILD_MAX=512 # def: 128 options OPEN_MAX=512 # def: 128 options NMBCLUSTERS=4096 options SOMAXCONN=256 When you compile your kernel (see instructions in the FreeBSD handbook, http://www.freebsd.org/handbook/handbook52.html), you'll get warnings about SOMAXCONN being re-defined. Ignore them. In httpd.conf, I use the following: MaxKeepAliveRequests 100 KeepAliveTimeout 15 MinSpareServers 5 MaxSpareServers 10 StartServers 5 MaxClients 200 MaxRequestsPerChild 300 Good luck with your server. -joshua --- Joshua Ellis - Kimberly-Clark Internet/Intranet/Notes Services email: ellis@kcc.com * phone: 920/721-2779 * fax: 920/721-6180 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message