在注册表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