From owner-freebsd-net Tue Mar 12 20:41:59 2002 Delivered-To: freebsd-net@freebsd.org Received: from mail2.hostonfly.net (services2.sc1.hostonfly.net [216.65.107.16]) by hub.freebsd.org (Postfix) with ESMTP id 6F61537B400 for ; Tue, 12 Mar 2002 20:41:56 -0800 (PST) Received: from mail1.hostonfly.net (http.server2.sc1.hostonfly.net [216.65.107.33]) by mail2.hostonfly.net (Postfix) with ESMTP id CF41A6B345; Wed, 13 Mar 2002 04:38:01 +0000 (GMT) From: Dmitry Koltsov To: Mike Silbersack Cc: freebsd-net@freebsd.org Subject: Re: Apache/TCP stack issues Received: from 10009 by s-mail at www.server2.sc1.hostonfly.net Message-Id: <20020313043801.CF41A6B345@mail2.hostonfly.net> Date: Wed, 13 Mar 2002 04:38:01 +0000 (GMT) Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org I'm running on 4.4-stable I have 1-3 connections in queue and in the same time I have "listen queue overflows" counter growing. How it may be? Current listen queue sizes (qlen/incqlen/maxqlen) Listen Local Address 1/1/128 216.65.107.31.80 Best regards, Dmitry Koltsov Host On Fly S.A. tel: + 7 812 9404403 tel: + 41 78 8286002 fax: + 1 775 2426205 ICQ: 44656213 mailto:root@hostonfly.com Wednesday, March 13, 2002, you wrote to me: MS> On Wed, 13 Mar 2002, Dmitry Koltsov wrote: >> Hello >> >> I have some issues with TCP stack and/or Apache. >> Issue: >> I'm getting "Connection refused" error when trying to connect to Apache over Internet when packet loss is 1-2%. Not all connection attempts fail but about 3% of attempts. >> When I'm trying to connect over local network(from another machine and localhost) in the same time, all is ok. >> In order to get this statistics, I've made 20000 attempts from each place in the same time. >> >> I guess apache is ok because from local network and localhost it gives no errors. >> >> Is there solution? MS> What release of FreeBSD are you running? >>From what you describe and the logs, it appears you're overloading the MS> server and causing the listen queue to overflow. One piece of information MS> you're omitting is how quickly you're sending those 20000 connection MS> attempts. If that's over 20000 seconds, I wouldn't expect any listen MS> queue overflows. If it's over 1 second, I'd expect a lot of listen queue MS> overflows. MS> The listen queue overflows indicate to me that you're running a version of MS> FreeBSD that does not include Jonathan Lemon's syncache/syncookie MS> implementation. This was added just shortly before 4.5-release, and MS> should help your situation greatly. MS> If you are running 4.5, then I'm stumped. MS> Mike "Silby" Silbersack To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message