Submit a ticketCall us

Get a crash course on Network Monitoring delivered right to your inbox
This free 7-day email course provides a primer to the philosophy, theory, and fundamental concepts involved in IT monitoring. Lessons will explain not only how to perform various monitoring tasks, but why and when you should use them. Sign up now.

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

Tweaking performance of Windows Server

Table of contents
Created by Mariusz Handke, last modified by Harry Griffiths on Jun 20, 2017

Views: 227 Votes: 4 Revisions: 13


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




  • Windows (generic)



  1. Start Windows Registry Editor

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

  3. On the Edit menu, click New, DWORD Value, and then add the following registry 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 (min) and 240 (max) in decimal or 1E and F0 in hexadecimal.


Value name

Value Data


<Enter a decimal value between 30 and 240 here>

  1. It is up to you what value you choose, many customers have had success with Value: 120 (decimal)

  2. Select New -> DWORD (32) bit value.

  3. Once the new value has been created, rename it to MaxUserPort (The capitalization matters).

  4. Right click the new setting and select Modify.

  5. Put a tick mark in the Decimal section under Base, and then input a value between 5000 and 65534 in the Value data section.  The number you in input in there will be the port number that windows is now allowed to go up to in the connection utilization.

  6. Many customers have also had success with Value: 65000.



  1. Close Windows Registry Editor and reboot the server

Last modified
02:17, 20 Jun 2017