Custom Search

SUBSCRIBE

SUBSCRIBE : 300 + Free Video Tutorials Programming (Python, golang, Julia), DevOps

Thursday, June 2, 2016

How to Linux reduce TCP TIME_WAIT

1)
Check current value of TCP TIME_WAIT


$sudo sysctl -a | grep conntrack
$sudo sysctl -a | grep conntrack | grep time_wait

net.netfilter.nf_conntrack_tcp_timeout_time_wait = 120


2)
Update the value of TCP TIME_WAIT


$sudo vim /etc/sysctl.conf
net.netfilter.nf_conntrack_tcp_timeout_time_wait = 60

3)
Save the changes

$sudo sysctl -p

4)
Check again

$sudo sysctl -a | grep conntrack
$sudo sysctl -a | grep conntrack | grep time_wait

net.netfilter.nf_conntrack_tcp_timeout_time_wait = 60

No comments:

Post a Comment