resin 出现大量CLOSE_WAIT 状态

优化linux 内核参数。

修改命令:vi /etc/sysctl

net.ipv4.tcp_syncookies = 1
net.ipv4.tcp_fin_timeout = 3
net.ipv4.tcp_keepalive_time = 30
net.ipv4.tcp_tw_reuse = 1
net.ipv4.tcp_tw_recycle = 1
net.ipv4.ip_local_port_range = 1024    65000
net.ipv4.tcp_max_syn_backlog = 8192

net.ipv4.tcp_max_tw_buckets = 5000


生效参数:/sbin/sysctl -p


具体参考可以参考

http://blog.csdn.net/chinalinuxzend/article/details/1792184

参考链接:

http://blog.chinaunix.net/uid-14802518-id-3204554.html

你可能感兴趣的:(linux)