「Apacheサーバ」 time_wait接続数が大量現象を解決する方法メモ

1.TIME_WAIT数をコマンドで確認
$ netstat -anp|grep TIME_WAIT

2.カーネルパラメータの設定変更
#vim /etc/sysctl.conf
net.ipv4.tcp_syncookies = 1
net.ipv4.tcp_tw_reuse = 1
net.ipv4.tcp_tw_recycle = 1
net.ipv4.tcp_fin_timeout = 30

3.設定反映
# /sbin/sysctl -p

Apache

Posted by arkgame