Improving Windows Server 2003 performance with LDAP

This content describes settings specific to a Microsoft Windows Server 2003 operating system environment.

Using connection pooling on the search connection can decrease the number of ports needed by as much as 50%. This is because that connection always uses the same credentials for a given domain, and the context and related objects are closed explicitly.

Configure your Windows Server for connection pooling

  1. Click Start > Run to start the registry editor and, in the Open box, type regedit and click OK.

  2. Go to the registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters

  3. In the right pane of the registry editor, find the TcpTimedWaitDelay value name. If the name does not appear, select Edit > New > DWORD Value from the menu bar to add the name.

  4. In the Name box, type TcpTimedWaitDelay

    Note: If you do not see a flashing cursor and New Value # inside the box, right-click inside the right panel, select Rename and, in the Name box, type TcpTimedWaitDelay.
  5. Repeat step 4 for the value names MaxUserPort, MaxHashTableSize, and MaxFreeTcbs.

  6. Double-click inside the right pane to set the TcpTimedWaitDelay value. Under Base, select Decimal and, in the Value box, type 30.

  7. Double-click inside the right pane to set the MaxUserPort value. Under Base, select Decimal and, in the Value box, type 65534.

  8. Double-click inside the right pane to set the MaxHashTableSize value. Under Base, select Decimal and, in the Value box, type 65536.

  9. Double-click inside the right pane to set the MaxFreeTcbs value. Under Base, select Decimal and, in the Value box, type 16000.

Important: Serious problems can occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems may require that you reinstall your operating system. Modify the registry at your own risk.

// Ethnio survey code removed