在注册表HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters里,
修改如下两个键值:
TcpTimedWaitDelay 5 释放连接的等待时间,默认值是30s。调小
(创建名为 MaxUserPort 的新 REG_DWORD 值。)
MaxUserPort 65536 端口号数量,调大
windows查看TIME_WAIT连接的数据量
(linux:netstat -an | grep TIME_WAIT -wc)
netstat -an|find "xxx.xxx.xxx.xxx:端口" |find "ESTABLISHED" /c
netstat -an|find "10.10.10.10:8080" |find "TIME_WAIT" /c
netstat -an|find "ESTABLISHED" /c
netstat -an|find "TIME_WAIT" /c
netstat -an|find "CLOSE_WAIT" /c
windows命令行下也有好工具(一)-统计端口的连接数
http://blog.sina.com.cn/s/blog_6441e0640102vaeg.html
本文介绍如何在Windows系统中通过修改注册表来优化网络性能,包括减少连接释放等待时间和增加可用端口数量的方法,并提供了检查TIME_WAIT状态连接数的命令。
169

被折叠的 条评论
为什么被折叠?



