Configuring the keepalive setting

The net.ipv4.tcp_keepalive_time parameter controls how long an application will let an open TCP connection remain idle. By default, this value is 7200 seconds (2 hours).

For optimal Black Duck performance, this parameter should have a value between 600 and 800 seconds.

This setting can be configured before or after Black Duck is installed.

To edit the value:

  1. Edit the /etc/sysctl.conf file. For example:

    vi /etc/sysctl.conf 

    You can also use the sysctl command to modify this file.

  2. Add the net.ipv4.tcp_keepalive_time (if the parameter is not in the file) or edit the existing value (if the parameter is in the file).

    net.ipv4.tcp_keepalive_time = <value>
  3. Save and exit the file.

  4. Enter the following command to load the new setting:

    sysctl -p
  5. If Black Duck is installed, restart it.