

The tcp_time_wait_interval is how long a connection stays in the TIME_WAIT state after it has been closed (default value 240000 ms or 4 minutes). With the default setting, this socket will remain for 4 minutes after you have closed the FTP connection. This is normal operating behavior. It is done to ensure that any slow packets on the network will arrive before the socket is completely shutdown. As a result, a future program that uses the same socket number won’t get confused upon receipt of packets that were intended for the previous program.

On a busy Web server a large backlog of connections waiting to close could build up and the kernel can become inefficient in locating an available TCP data structure. Therefore it is recommended to change this value to 60000 ms or 1 minute.

set tcp:tcp_conn_hash_size=8192

In /etc/system, increase the connection hash table size to make lookups more efficient. The connection hash table size can be set only once, at boot time.

loading table of contents...