From owner-freebsd-isp Tue Apr 17 10: 3: 1 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 A485D37B43F for ; Tue, 17 Apr 2001 10:02:55 -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 DAA91553 for ; Wed, 18 Apr 2001 03:02:50 +1000 (EST) (envelope-from rowan@sensation.net.au) X-Authentication-Warning: velvet.sensation.net.au: rowan owned process doing -bs Date: Wed, 18 Apr 2001 03:02:47 +1000 (EST) From: Rowan Crowe To: freebsd-isp@freebsd.org Subject: Re: 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, Following up my problems with Boa... I was reading the notes page on thttpd (http://www.acme.com/software/thttpd/notes.html, "On the listen queue length"), which mentions that the queue for new TCP connections can be shallow, and if an application doesn't respond fast enough to connects that queue will be overflowed. Result: connections refused until the queue has one or more connections processed/cleared from it. netstat -s shows, in part... 27286 connection requests 1056360 connection accepts 368146 bad connection attempts 315486 listen queue overflows ^^^^^^ I think that is what is happening here - these stats account for a little more than 16 hours of uptime, or an average of around 5 refused connections per second for those entire 16 hours! While this would probably just be delaying the inevitable, does anyone know how to change the length of this queue in FreeBSD 4.x? sysctl -a doesn't seem to list anything that leaps out. I'll have a hunt around in the kernel source too, to see if I can find anything. The real problem is most likely server load, and Boa trying to process new connections in time (perhaps part of it is swapped out or otherwise busy). Like I said, this is a "no budget" site, so there's no happy ending in sight at the moment. :-\ 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