Network Management

Improve Windows Server performance

This article provides suggestions for improving the performance of heavy utilized Windows Server

First published date

11/21/2018 4:56 PM

Last published date

11/21/2018 4:56 PM

Overview

Below article describes how to tweak Windows Server to allow busy systems perform much better. The purpose of it is to simply avoid exhaustion of TCP/IP stack by decreasing time required to dispose of "dead" (TIME_WAIT) connection or expanding the range of ephemeral ports.

Ref: https://msdn.microsoft.com/en-us/library/aa560610%28v=bts.20%29.aspx

Product section

Orion Platform

Resolution

Reduce the client TCP/IP socket connection timeout value from the default value of 240 seconds:

  1. Start Windows Registry Editor

  2. Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters

  3. On the Edit menu, click NewDWORD Value, name TcpTimedWaitDelay, and then add the following value to reduce the length of time that a connection stays in the TIME_WAIT state when the connection is being closed. While a connection is in the TIME_WAIT state, the socket pair cannot be reused. Available value in seconds is 30 (minimum) and 240 (maximum) in decimal or 1e and F0 in hexadecimal

  4. Close Windows Registry Editor and reboot the server

 

Increase the upper range of ephemeral ports that are dynamically allocated to client TCP/IP socket connections:

  1. Start Windows Registry Editor

  2. Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters

  3. On the Edit menu, click NewDWORD Value, name MaxUserPort, and then add the following value to increase the number of ephemeral ports that can be dynamically allocated to clients. Available value in seconds is 5000 (minimum) and 65534 (maximum) in decimal or 1388 and FFFE in hexadecimal

  4. Close Windows Registry Editor and reboot the server


    Disclaimer: Please note, any content posted herein is provided as a suggestion or recommendation to you for your internal use. This is not part of the SolarWinds software or documentation that you purchased from SolarWinds, and the information set forth herein may come from third parties. Your organization should internally review and assess to what extent, if any, such custom scripts or recommendations will be incorporated into your environment.  You elect to use third party content at your own risk, and you will be solely responsible for the incorporation of the same, if any.