学以致用

focus on Python , C++, and some interest in Go and R

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

see time wait number

netstat -nat | awk '{print $6}' | sort | uniq -c | sort -n


vi  /etc/sysctl.conf
# Decrease TIME_WAIT seconds
net.ipv4.tcp_fin_timeout = 30

# Recycle and Reuse TIME_WAIT sockets
net.ipv4.tcp_tw_recycle = 1
net.ipv4.tcp_tw_reuse = 1

sysctl -p

https://www.linux.org/threads/reduce-your-apache-time_wait-connections.4505/

posted on 2019-04-19 16:08  Jerry.Kwan  阅读(221)  评论(0编辑  收藏  举报