From owner-freebsd-isp Sun Apr 15 18:53:33 2001 Delivered-To: freebsd-isp@freebsd.org Received: from velvet.sensation.net.au (serial1-2-velvet-brunswick.sensation.net.au [203.20.114.195]) by hub.freebsd.org (Postfix) with ESMTP id 7DC1137B440 for ; Sun, 15 Apr 2001 18:53:26 -0700 (PDT) (envelope-from rowan@sensation.net.au) Received: from localhost (rowan@localhost) by velvet.sensation.net.au (8.9.3/8.9.3) with ESMTP id LAA83933 for ; Mon, 16 Apr 2001 11:53:09 +1000 (EST) (envelope-from rowan@sensation.net.au) X-Authentication-Warning: velvet.sensation.net.au: rowan owned process doing -bs Date: Mon, 16 Apr 2001 11:53:07 +1000 (EST) From: Rowan Crowe To: freebsd-isp@freebsd.org Subject: boa small/fast web server Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi all, I'm running a popular "no budget" site on an overloaded server. Until yesterday, I was running two sets of Apache processes - one for dynamically generated HTML (PHP) and a leaner version for images. I've now installed Boa as the images server, and although it's FAST and hardly takes up any memory (5Mb total compared to a peak of over 200 apache processes consuming around 1Mb each!), I am having one major problem - inconsistent broken images. Badly worded technical question: When a program opens a socket for listening, and someone connects, is a copy of that socket handed over to the process that owns it (with the original socket remaining open for immediate further connects), or does the process use that socket and then have to recreate the listening connection? If it's the latter, I'm wondering whether that is why I'm getting broken images - connections refused because Boa can't open a new listen socket in time... Is anyone else using Boa having this problem? Any tips in general on how to optimise FreeBSD 4.2R for Apache and/or Boa? It's basically a stock GENERIC kernel with non relevant devices removed. Boa was compiled from original archive rather than via the ports collection, so that may be an issue too. This is the same machine that was crashing a while back, it's now running on all DIMM instead of SIMM+DIMM and it's been running well, just rarely above 0% idle. Boa has changed that, but at what cost... Cheers. -- Rowan Crowe http://www.rowan.sensation.net.au/ Sensation Internet Services http://info.sensation.net.au/ Melbourne, Australia Phone: +61-3-9388-9260 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message