Too many connections in TIME_WAIT state:
If you seeing a lot of connections in TIME_WAIT state then each socket in TIME_WAIT consumes some memory in the kernel, usually somewhat less than an ESTABLISHED socket. But it may increase the load in server.
For solving this you need to do the following on the server,
Login to the server via SSH
Then enter the following command, it will append the values for timeout in the server,
echo 30 > /proc/sys/net/ipv4/tcp_fin_timeout
echo 1 > /proc/sys/net/ipv4/tcp_tw_recycle
Also you need to edit the file,
echo 1 > /proc/sys/net/ipv4/tcp_tw_recycle
Also you need to edit the file,
/etc/sysctl.conf
and add the timeout and recycle values in it.
and add the timeout and recycle values in it.
vi /etc/sysctl.conf
And add the following values to the file
And add the following values to the file
net.ipv4.tcp_fin_timeout=30
net.ipv4.tcp_tw_recycle = 1
net.ipv4.tcp_tw_recycle = 1
Comments
Post a Comment