From owner-freebsd-net@FreeBSD.ORG Thu Mar 15 14:07:50 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C8FC21065672 for ; Thu, 15 Mar 2012 14:07:50 +0000 (UTC) (envelope-from ndenev@gmail.com) Received: from mail-wi0-f172.google.com (mail-wi0-f172.google.com [209.85.212.172]) by mx1.freebsd.org (Postfix) with ESMTP id 52B358FC14 for ; Thu, 15 Mar 2012 14:07:49 +0000 (UTC) Received: by wibhj6 with SMTP id hj6so7254824wib.13 for ; Thu, 15 Mar 2012 07:07:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; bh=yQDQCPBV2BhU8Zj4T4kfHoUPqAfLxIDVcWCBFGhtIos=; b=bhorE3D8eerMx7k3dyaPO1WE/QooFnpLmEz1oVUrYuJYTzt48dkeptpIO6qfCui21m hm4jNXGwCaOYLDTD4znfU0FV2LDT8nZT5RxUu0etnqnLY4wpcQzLOCKFFqJGA1xDsSVl 2FEZ2daTTKnpyxF+moezl3n9ItWxJPA2BSW3YckD0gmVflxhQMVm1WP7/OemMcSq1kwU 0+JVSkWB597KQQ/fLRhpaMHQCT62JEvnemGlJkH3iyIVZDLRqMCVy3eTTsxzdOuo6fr5 2WCx8f2RZNY2GwEKPeLGgahjTneWWXJdU9wgZfbL8osgcZJept27S+LLfCZDUELS4Vj+ 25mA== Received: by 10.180.107.164 with SMTP id hd4mr22809127wib.18.1331820469210; Thu, 15 Mar 2012 07:07:49 -0700 (PDT) Received: from ndenevsa.sf.moneybookers.net (g1.moneybookers.com. [217.18.249.148]) by mx.google.com with ESMTPS id df3sm5384706wib.1.2012.03.15.07.07.47 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 15 Mar 2012 07:07:48 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v1257) Content-Type: text/plain; charset=us-ascii From: Nikolay Denev In-Reply-To: Date: Thu, 15 Mar 2012 16:07:46 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <0F2031C9-3A37-4994-BBE7-869D9F975170@gmail.com> References: To: grarpamp X-Mailer: Apple Mail (2.1257) Cc: freebsd-net@freebsd.org Subject: Re: Stuck in FIN_WAIT_2 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Mar 2012 14:07:50 -0000 On Mar 15, 2012, at 12:57 PM, grarpamp wrote: > Hi. I've got 900-1000 connections stuck in FIN_WAIT_2. > The processes behind them on both sides have long > since exited. Anything I can do to clear them out > short of reboot? The box is 4.11, so no tcpdrop to try. > I suspect this may be starting to limit mbuf clusters. > Not sure. The box is idle. If in this state the kernel sends > packets, would ipfw reset rule clear it? No big deal. > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" Hi, I'm not sure if 4.11 has the following sysctls, but you can try them if = they exist : net.inet.tcp.finwait2_timeout <-- lower this net.inet.tcp.fast_finwait2_recycle <-- set this to 1 Regards, Nikolay=