您的位置:首页 > 大数据 > 人工智能

Fix too many FIN_WAIT_2 connections under freebsd

2007-10-03 16:44 447 查看
原贴:http://www.sofee.cn/blog/2006/08/26/33/

Fix too many FIN_WAIT_2 connections under freebsd

No Tags
August 26, 2006 at 14:54:57 · Filed under Lighttpd, Apache, FreeBSD
查看FIN_WAIT_2连接数:

bsd#netstat -an | grep FIN_WAIT_2 | wc -l
2523


修改Lighttpd配置文件,加入下面这条语句:

server.max-keep-alive-requests = 0


bsd#netstat -an | grep FIN_WAIT_2 | wc -l
91


如果服务器开启了ipfw2防火墙的话,还需要执行:

sysctl -w net.inet.ip.fw.dyn_keepalive=0


p.s. 若为APACHE服务器,同理。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: