Top Nav

Reduce TCP WAIT Times

Interesting discussion here:

http://stackoverflow.com/questions/410616/increasing-the-maximum-number-of-tcp-ip-connections-in-linux

Especially, this section:

Default Sysctl values on a typical linux box for tcp_tw_recycle & tcp_tw_reuse would be

These do not allow a connection in wait state after use, and force them to last the complete time_wait cycle. I recommend setting them to:

This allows fast cycling of sockets in time_wait state and re-using them. But before you do this change make sure that this does not conflict with the protocols that you would use for the application that needs these sockets.

Some other references:

http://www.speedguide.net/articles/linux-tweaking-121

and

http://wiki.docdroppers.org/index.php?title=Sysctl_Modifications