netstat -ano >>d:\\tool\e.txt
详情参考:https://www.jianshu.com/p/9ee0166aa01c
微软:https://learn.microsoft.com/zh-cn/troubleshoot/windows-client/networking/tcp-ip-port-exhaustion-troubleshooting
- HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
- “MaxUserPort”=dword:0000fffe
MaxUserPort
查看TCP连接数:
netstat -n | find /C /I "established"