Stuck in FIN_WAIT_2

Nikolay Denev ndenev at gmail.com
Thu Mar 15 14:07:50 UTC 2012


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 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-net
> To unsubscribe, send any mail to "freebsd-net-unsubscribe at 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


More information about the freebsd-net mailing list