+

Search Tips   |   Advanced Search

Tests with NL-NETWORK-02 "BindException" errors


Problem

I am getting a lot of NL-NETWORK-02 "BindException" errors.


Solution

This is usually because the Load Generator cannot create any more sockets on the system. The system TCP/IP settings therefore need to be modified. This is often the case with Windows machines as the default settings do not allow large numbers of sockets to be created.

Windows NT/2000/2003/XP/Vista

It is necessary to add the following values to the \HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters key using regedit, then re-boot the machine hosting the Load Generator.

Name

Value

Type

MaxUserPort

65534

(REG_DWORD, decimal)

TcpTimedWaitDelay

30

(REG_DWORD, decimal)

These changes can be also applied to the registry automatically by running the WindowsNetworkTuning.reg file in the <install-dir>/bin directory.

Unix

Normally, this problem does not occur with Unix machines. However, the maximum number of files and network connections available per process can be checked with the ulimit -n command. If this number is not high enough for the tests to run, the value can be changed by using the ulimit -n <number> command. A value of 65534 is recommended.

It is necessary to edit the file /etc/sysctl.conf, with the following parameters, before restarting the machine hosting the Load Generator:

net.ipv4.ip_local_port_range = 16384 65535

net.ipv4.tcp_fin_timeout = 30


Home