From owner-freebsd-net@FreeBSD.ORG Tue Mar 22 18:44:53 2005 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B4DD016A4CE for ; Tue, 22 Mar 2005 18:44:53 +0000 (GMT) Received: from outgoing.redshift.com (outgoing.redshift.com [207.177.231.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6548E43D60 for ; Tue, 22 Mar 2005 18:44:53 +0000 (GMT) (envelope-from ray@redshift.com) Received: from workstation (216-228-19-21.dsl.redshift.com [216.228.19.21]) by outgoing.redshift.com (Postfix) with SMTP id 777A49703E; Tue, 22 Mar 2005 10:44:52 -0800 (PST) Message-Id: <3.0.1.32.20050322104506.00a8b8b8@pop.redshift.com> X-Mailer: na X-Sender: redshift.com Date: Tue, 22 Mar 2005 10:45:06 -0800 To: Robert Gogolok From: ray@redshift.com In-Reply-To: <424065D8.3030407@web.de> References: <3.0.1.32.20050322102130.00a7be40@pop.redshift.com> <3.0.1.32.20050322102130.00a7be40@pop.redshift.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" cc: freebsd-net@freebsd.org Subject: Re: FIN_WAIT_2 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Mar 2005 18:44:53 -0000 Hi Robert, I was actually referring to the keepalive setting in httpd.conf :-) But yes, you can change the sysctl setting also. I believe that will have a positive impact on the server. I don't have any first hand experience with it however. What do you have in httpd.conf ? Ray At 07:37 PM 3/22/2005 +0100, Robert Gogolok wrote: | Hi Ray, | Thanks for answering. | | ray@redshift.com wrote: | > Do you have keepalive on ? That might be it. Usually on a busy site it's | > better to turn keepalive off. You might try that and see if the number of | > fin_wait's go away. | # sysctl -a | grep keep | net.inet.ip.keepfaith: 0 | net.inet.ip.fw.dyn_keepalive: 1 | net.inet.tcp.keepidle: 7200000 | net.inet.tcp.keepintvl: 75000 | net.inet.tcp.keepinit: 75000 | net.inet.tcp.always_keepalive: 1 | net.inet6.ip6.keepfaith: 0 | | I see that keepalive starts after 2 hours(?) (net.inet.tcp.keepidle), | but what would disable it? I guess always_keepalive=0. | | | Robert | |