TCP latency issues
Until now we have been troubleshooting connection-related issues. In this section, we will check the latency part. Latency can be on the network, or in application processing on the part of the client or server.
Cause of latency
Identifying the source of latency also plays an important role in TCP troubleshooting. Let's see what the common causes of latency are:
Network slow wire latency can be measured with the
ping
utilityToo many running processes eat memory. Check the memory management, work with free, top command to identify CPU and memory use
Application not started with sufficient memory or cannot serve more requests
Bad TCP tuning; verify the
/etc/sysctl.cnf
fileNetwork jitter; verify your network and check with the network administrator
Poor coding; benchmark your code by performing a load test over the network
Gateway wrongly set; check the gateway, verify the routing table, and verify the gateway
Higher hop counts; do a traceroute and check the number of hops (the higher...