23.4.4 Ways to avoid a shortage of ports

When the following types of operations are performed, large number of TCP ports might go into the TIME_WAIT status, TCP ports in the system as a whole might run short and cause transactions to generate errors, or HiRDB might terminate abnormally.

For these sorts of operations, use the settings shown below to avoid TCP port shortages.

The Windows registries and settings described here might differ depending on the Windows version you are using. Consult the documentation for the Windows version you are using, and set the corresponding Windows registries to the values that are provided here as guidelines.

Also note that, depending on your Windows version, some settings might not be necessary. If you cannot set a Windows registry in your Windows version, it does not need to be set.

Organization of this subsection
(1) Settings that reduce the time a TCP port remains on TIME_WAIT status
(2) Settings that expand the OS's auto-allocated port range for TCP ports

(1) Settings that reduce the time a TCP port remains on TIME_WAIT status

To reduce the amount of time a TCP port remains on TIME_WAIT status, specify the following Windows registry settings:

(2) Settings that expand the OS's auto-allocated port range for TCP ports

To expand the OS's auto-allocated port range for TCP ports, specify the following Windows registry settings: