Submit a ticketCall us
Home > Success Center > Orion Platform > Orion - Knowledgebase Articles > Tweaking performance of Windows Server on Orion Platform products

Tweaking performance of Windows Server on Orion Platform products

Table of contents
Created by Mariusz Handke, last modified by Mariusz Handke on Nov 01, 2018

Views: 7,947 Votes: 8 Revisions: 34

Updated September 27, 2018

Used with kbloader, ID MT7521. Ask InfoDev to make changes to the title.

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 the 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 References:

Environment

  • Windows (generic)

Steps

SolarWinds strongly recommends that you back up your registry before making any edits to your system registry. You should only edit the registry if you are experienced and confident in doing so. Using a registry editor incorrectly can cause serious issues with your operating system, which could require you to reinstall your operating system to correct them. SolarWinds cannot guarantee resolutions to any damage resulting from making registry edits.

  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 and select Modify...

    5. Click the decimal radial button

    6. Specify a value between 30 and 240. The lower the value, the quicker unused connection will be closed. Many users have had success with value 60 (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 (expand the range) 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 and select Modify...

    5. Click the decimal radial button

    6. Specify a value between 5000 and 65534. The higher the value, the wider the range of available ports. Many users have had success with value 65000 (decimal)
       

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

       

  2. To create the StrictTimeWaitSeqCheck key:
    You must set the StrictTimeWaitSeqCheck to 1, or the TcpTimedWaitDelay value will have no effect on the system.

    1. Highlight Parameters

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

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

    4. Right-click the new key and select Modify...

    5. Specify a value 1 (either decimal or hexadecimal)
       

      Value Name Value Data
      StrictTimeWaitSeqCheck <Enter a value 1>

       

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

 

 

Alternatively, you can use one of following methods:

 

Using Windows Registry file (extension REG):

  1. using any text editor create file (i.e. tweak.reg)
  2. paste below content into it

    Windows Registry Editor Version 5.00
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters]
    "TcpTimedWaitDelay"=dword:0000001E
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters]
    "MaxUserPort"=dword:0000FFFE
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters]
    "StrictTimeWaitSeqCheck"=dword:00000001

  3. save the file
  4. double click on the file and allow import
  5. reboot the server.

 

Using batch file (extension BAT):

  1. using any text editor create file (i.e. tweak.bat)
  2. paste below content into it

    reg add "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" /v TcpTimedWaitDelay /t REG_DWORD /d 0x0000001E
    reg add "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" /v MaxUserPort /t REG_DWORD /d 0x0000FFFE
    reg add "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" /v StrictTimeWaitSeqCheck /t REG_DWORD /d 0x00000001

  3. save the file
  4. double click on the file and execute
  5. reboot the server.

 

 Reason for rework:

Please update title to include product "Orion Platform" as per KCS guidelines

Add tag "Port Exhaustion"

Last modified

Tags

Classifications

Public