Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Mar 2002 04:38:01 +0000 (GMT)
From:      Dmitry Koltsov <root@hostonfly.com>
To:        Mike Silbersack <silby@silby.com>
Cc:        freebsd-net@freebsd.org
Subject:   Re: Apache/TCP stack issues
Message-ID:  <20020313043801.CF41A6B345@mail2.hostonfly.net>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020313043801.CF41A6B345>