优化 Windows 网络参数

方案

Windows 系统上的网络性能很低。

解决方案

通过调整 Windows 操作系统来优化网络性能。

要优化 Windows 性能:

  1. 打开 Windows 注册表,将 TcpTimedWaitDelay 参数设置为 30。

    此步骤可减少操作系统等待回收已关闭端口的时间,其默认设置为 4 分钟(240 秒)。该参数位于 HKLM\System\CurrentControlSet\Services\Tcpip\Parameters

    参数名称:TcpTimedWaitDelay

  2. MaxUserPort 参数设置为 65534。

    此步骤可增加在应用程序上能打开的端口数(默认值为 5,000)。该参数位于 HKLM\System\CurrentControlSet\Services\Tcpip\Parameters

    参数名称:MaxUserPort