Home Connection timeout Problem Solution

This morning found the new home node error, unable to connect some of the nodes found the problem, indicating little likelihood of service issues, I think of the problem is the kernel parameters. Because it really is a new node, there is no cause for system optimization. Recording problems in the process now found at:
1, view the connection status summary of what
netstat -n | awk '/ ^ tcp / {++ S [$ NF]} END {for (a in S) print a, S [a] } '
the CLOSE_WAIT 42 is
the ESTABLISHED 0
TIME_WAIT 1006
2, to optimize the kernel parameter
VI /etc/sysctl.conf
net.ipv4.tcp_syncookies. 1 =
net.ipv4.tcp_tw_reuse. 1 # = allow reuse TIME_WAIT state, so that even if all the ports filled TIME_WAIT by refusing new requests obstacle default is 0
net.ipv4.tcp_tw_recycle = 1 # 0 as soon as possible so that the default TIME_WAIT recycling
net.ipv4.tcp_fin_timeout = 30
/ sbin / sysctl -p # make parameters into effect
3, restart the java-related services
Although it is found in the operation and maintenance of common sense, but because of changes in the environment, may forget to record here.

Guess you like

Origin blog.51cto.com/dadloveu/2459901