1410736_E_20240702[TCP_IP_ setting keepalive interval]
1410736_E_20240702[TCP_IP_ setting keepalive interval]
Symptom
In some landscapes the router(firewall, bridge etc.) between two or more network segments could
close the network connection if it remains inactive for longer time. Activated keepalive option
for SAP application server does not help because keepalive interval (set by the operating
system) is too large.
Other Terms
keepalive, so_keepalive, KeepAliveTime, tcp_keepalive_time, gw/so_keepalive,
icm/client_enable_tcp_keep_alive
Solution
Set 5 minutes for keepalive interval. Depending on your connection enable either gw/so_keepalive
or icm/client_enable_tcp_keep_alive.
Windows:
KeepAliveTime = 300000
KeepAliveInterval = 75000
Linux:
Check the configured values with:
sysctl net.ipv4.tcp_keepalive_time
sysctl net.ipv4.tcp_keepalive_intvl
sysctl net.ipv4.tcp_keepalive_probes
The recommended values are:
net.ipv4.tcp_keepalive_time = 300
net.ipv4.tcp_keepalive_intvl = 75
net.ipv4.tcp_keepalive_probes = 9
Use the -w flag to set the new values, e.g.:
sysctl -w net.ipv4.tcp_keepalive_time=300
AIX:
AIX uses values in half-second units. So the recommended values would be:
no -o tcp_keepidle = 600
no -o tcp_keepintvl = 150
no -o tcp_keepcnt = 9
3117294 How-To Troubleshoot SQL Error -10807 'Connection down' in a SAP HANA Landscape
2963141 BC-CST-EQ ENQUEUE: frequent work process reconnect attempts to the enqueue server
2962111 BC-CST-EQ ENQU: ENSA 2.0: Network Close Events are Lost