From owner-freebsd-questions Wed Mar 13 8:48:40 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mail2.hostonfly.net (services2.sc1.hostonfly.net [216.65.107.16]) by hub.freebsd.org (Postfix) with ESMTP id D0BE137B417; Wed, 13 Mar 2002 08:48:35 -0800 (PST) Received: from mail1.hostonfly.net (http.server2.sc1.hostonfly.net [216.65.107.33]) by mail2.hostonfly.net (Postfix) with ESMTP id D28A16B349; Wed, 13 Mar 2002 16:44:34 +0000 (GMT) From: Dmitry Koltsov To: freebsd-net@FreeBSD.ORG Cc: freebsd-questions@freebsd.org Subject: ADD TO(NEW Info): Apache/TCP stack issues Received: from 10009 by s-mail at www.server2.sc1.hostonfly.net Message-Id: <20020313164434.D28A16B349@mail2.hostonfly.net> Date: Wed, 13 Mar 2002 16:44:34 +0000 (GMT) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello, I'm running on 4.4-stable. Seems like my problem is (connection refused) caused by listen queue. I have 1-10 requsts in apache listen queue (port 80), queue len is 511 connections and have counter "listen queue overflows" growing in the same time (!) Current listen queue sizes (qlen/incqlen/maxqlen) Listen Local Address 11/11/511 216.65.107.31.80 How it may be? Is there solution? Also I have tested queue with simple program (socket(), bind(), listen(sock,128), do nothing in the loop) and received this amazing stats: Current listen queue sizes (qlen/incqlen/maxqlen) Listen Local Address 193/0/128 216.65.107.31.81 (queue len >> queue maxlen) !!! Wednesday, March 13, 2002, I wrote: DK> I have some issues with TCP stack and/or Apache. DK> Issue: DK> 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. DK> When I'm trying to connect over local network(from another machine and localhost) in the same time, all is ok. DK> In order to get this statistics, I've made 20000 attempts from each place in the same time. DK> I guess apache is ok because from local network and localhost it gives no errors. DK> Is there solution? DK> Couple of examples: DK> 00:55:26.893251 151.27.40.210.1560 > 216.65.107.31.80: S 37780527:37780527(0) win 8192 (DF) DK> 00:55:26.893329 216.65.107.31.80 > 151.27.40.210.1560: S 2578149080:2578149080(0) ack 37780528 win 33232 (DF) DK> 00:55:27.300599 216.65.107.31.80 > 151.27.40.210.1560: R 1:1(0) ack 1 win 33232(DF) DK> 00:55:27.316952 151.27.40.210.1560 > 216.65.107.31.80: . ack 1 win 8576 (DF) DK> 00:55:27.317038 216.65.107.31.80 > 151.27.40.210.1560: R 2578149081:2578149081(0) win 0 DK> 00:55:27.467521 151.27.40.210.1560 > 216.65.107.31.80: P 1:369(368) ack 1 win 8576 (DF) DK> 00:55:27.467567 216.65.107.31.80 > 151.27.40.210.1560: R 2578149081:2578149081(0) win 0 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message