568/650
优化 Windows 网络参数
解决方案
通过调整 Windows 操作系统来优化网络性能。
- 打开 Windows 注册表,将
TcpTimedWaitDelay
参数设置为 30。
此步骤可减少操作系统等待回收已关闭端口的时间,其默认设置为 4 分钟(240 秒)。该参数位于 HKLM\System\CurrentControlSet\Services\Tcpip\Parameters
参数名称:TcpTimedWaitDelay
- 将
MaxUserPort
参数设置为 65534。
此步骤可增加在应用程序上能打开的端口数(默认值为 5,000)。该参数位于 HKLM\System\CurrentControlSet\Services\Tcpip\Parameters
参数名称:MaxUserPort