EducationSoftwareStrategy.com
StrategyCommunity

Knowledge Base

Product

Community

Knowledge Base

TopicsBrowse ArticlesDeveloper Zone

Product

Download SoftwareProduct DocumentationSecurity Hub

Education

Tutorial VideosSolution GalleryEducation courses

Community

GuidelinesGrandmastersEvents
x_social-icon_white.svglinkedin_social-icon_white.svg
Strategy logoCommunity

© Strategy Inc. All Rights Reserved.

LegalTerms of UsePrivacy Policy
  1. Home
  2. Topics

KB16328: How to enable and configure "Keep Alive" options for various operating systems in MicroStrategy Web Universal 9.x


Community Admin

• Strategy


The KeepAlive or HTTP persistent connection setting is a connection setting that causes the TCP socket to periodically a signal the connection from being closed due to appearing as idle. This setting is particularly useful for TCP connections that must pass through a firewall, which might proactively close connections that it determines to be idle.

INTRODUCTION:
The KeepAlive or HTTP persistent connection setting is a connection setting that causes the TCP socket to periodically a signal the connection from being closed due to appearing as idle. This setting is particularly useful for TCP connections that must pass through a firewall, which might proactively close connections that it determines to be idle. Below are the instructions on enabling the Keep-Alive setting for various operating systems. For more information on the Keep-Alive or persistent Connection setting, refer to the Microsoft article here:
 
Things that you may want to know about TCP Keepalives
 
ENABLING KEEPALIVE IN WINDOWS OS

  1. Launch the registry and navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
  2. Create a new REG_DWORD value named KeepAliveInterval and set the value of the interval value (milliseconds). For example, 15000 for 15 seconds.
  3. Create a new REG_DWORD value named KeepAliveTime and set the value to the number of milliseconds to wait before sending a KeepAlive packet. The default value is 2 hours or 7200000 milliseconds.
  4. Restart the system.

Registry Modification Warning: Modifying registry values incorrectly may cause serious, system-wide problems that may require the re-installation of Microsoft Windows NT. Any edit of the registry is done at the user`s own risk. Since these are user-initiated changes, they are not covered by any Strategy warranty. If using Microsoft Windows NT, the user should backup the registry and/or update an Emergency Repair Disk (ERD) prior to alterations.
 
ENABLING KEEPALIVE IN SOLARIS OS
From the root account, use the ndd command to set the Keep-Alive interval value (milliseconds): 

  1. 
    ndd -set /dev/tcp tcp_keepalive_interval 15000

Restart the system. To permanently change the value, the command will need to be set while the system is starting by modifying a startup script (e.g. /etc/rc ….)
 
ENABLING KEEPALIVE IN LINUX OS

  1. From the root account, use the following command to set the wait time (seconds) between the isAlive interval probes:
    
    echo 15 > /proc/sys/net/ipv4/tcp_keepalive_intvl

  2. To set the number of probes before timing out, use the following command to set the value (seconds):
    
    echo 5 > /proc/sys/net/ipv4/tcp_keepalive_probes

  3. Restart the system. To permanently change the values, the commands will need to be set while the system is starting by modifying a startup script (e.g. /etc/rc ….)

 
ENABLING KEEPALIVE IN HP-UX 

  1. From the root account, use thendd command to set the Keep-Alive interval value (milliseconds):
    
    ndd -set /dev/tcp tcp_keepalive_interval 15000

  2. To set the maximum number of times to probe before dropping, use the following command to set the value (milliseconds):
    
    ndd -set /dev/tcp tcp_keepalive_kill 5000

  3. Restart the system. To permanently change the values, the commands will need to be set while the system is starting by modifying a startup script (e.g. /etc/rc ….)

 
ENABLING KEEPALIVE IN AIX 

  1. From the root account, use the no command to set the Keep-Alive interval value (half seconds):
    
    no -o tcp_keepidle=30

  2. To set the interval between packets that are sent to keep the connection valid, use the following command to set the value (half seconds):
    
    no -o tcp_keepintvl=10

  3. Restart the system. To permanently change the values, the commands will need to be set while the system is starting by modifying a startup script (e.g. /etc/rc ….)

Comment

0 comments

Details

Knowledge Article

Published:

April 7, 2017

Last Updated:

April 7, 2017