Tuning Windows Parameters

For Windows platforms, the default TCP/IP settings are usually sufficient. However, under heavy loads it may be necessary to adjust the MaxUserPort and TcpTimedWaitDelay. These parameters determine the availability of user ports requested by an application.

ParameterDefault ValueSuggested Value
TcpTimedWaitDelay

This parameter controls the amount of time the OS waits to reclaim a port after an application closes a TCP connection. It has a default value of 4 minutes. During a heavy users load, these limits may be exceeded resulting in an address- in-use connection exception.

Set this parameter in the Windows registry at the following location: HKLM\System\CurrentControlSet\Services\Tcpip\Parameters

Value Name: TcpTimedWaitDelay

Value Type: DWORD

Data: 30 (decimal)

24030

Value Name: MaxUserPort

Value Type: DWORD

Data: 65534 (decimal)

500065534