Submit a ticketCall us

Have You Auto Renewed? If not, you're missing out.
The SolarWinds Renewal Program comes with a host of benefits including the most recent product updates, 24/7 technical support, virtual instructor-led training and more. Experience all of this with the convenience of Auto Renewal, and never worry about missing any of these great benefits. Learn More.

Home > Success Center > Server & Application Monitor (SAM) > Tweaking performance of Windows Server

Tweaking performance of Windows Server

Table of contents

Updated September 4th, 2017

Overview

The below article describes how to tweak Windows Server Operating System to help busy systems perform better. The purpose of these changes is to avoid exhaustion of the TCP/IP stack by decreasing the time required to dispose of dead (TIME_WAIT) connection. In most cases, these connections are no longer reusable and a quick turn over makes the system behave much faster.

 

Microsoft Reference

Environment

  • Windows (generic)

Steps

 

  1. Start Windows Registry Editor

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

  3. To create the TcpTimedWaitDelay key:
    This key will reduce the length of time that a connection stays in the TIME_WAIT state before the connection is closed. While a connection is in the TIME_WAIT state, the socket pair cannot be reused.

    1. Highlight Parameters

    2. Click the Edit menu > New > DWORD (32-bit) Value

    3. Give it a name of TcpTimedWaitDelay (The capitalization matters)

    4. Right-click the new key > Modify...

    5. Click the decimal radial button

    6. Specify a value between 30 and 240. Many customers have had success with Value: 120 (decimal)

      Value Name Value Data
      TcpTimedWaitDelay <Enter a value between 30 and 240>

       

  1. To create the MaxUserPort key:
    This key will increase the allowance of TCP Ports which can be allocated on the server.

    1. Highlight Parameters

    2. Click the Edit menu > New > DWORD (32-bit) Value

    3. Give it a name of MaxUserPort (The capitalization matters)

    4. Right-click the new key > Modify...

    5. Click the decimal radial button

    6. Specify a value between 5000 and 65534. Many customers have had success with Value: 65000 (decimal)
       

      Value Name Value Data
      MaxUserPort <Enter a value between 5000 and 65534>

       

  2. Close Windows Registry Editor and reboot the server to apply the changes.

Last modified

Tags

Classifications

Public