If you are using the Web Services API on a Windows client and frequently see errors such as java.net.BindException: Address already in use: connect in the client application, you might need to tune the client operating system parameters so that it can handle a higher rate of outbound TCP connections.
- Open the Registry.
-
Under the following registry entry:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TCPIP\Parameters
- Key in the registry of the Windows client machine.
-
Add the following registry entries:
- TcpTimedWaitDelay
- Add this DWORD with a value of 30.
- MaxUserPort
- Add this DWORD with a value of 32768.
- Refer to the Windows documentation for further details on these registry entries.