Interview Prep/Linux/Boot, time, cron and kernel

The kernel logs `TCP: out of memory -- consider tuning tcp_mem` and network connections start failing on a busy proxy.

AdvancedTroubleshootingBoot, time, cron and kernel
Answer

Likely causes → Total TCP buffer memory reached the net.ipv4.tcp_mem pressure/max limits (many connections with large buffers or slow clients), or orphaned sockets are piling up.

Diagnose →

cat /proc/net/sockstat             # TCP: inuse, orphan, mem (in pages)
sysctl net.ipv4.tcp_mem net.ipv4.tcp_max_orphans
ss -s

Fix → Raise net.ipv4.tcp_mem (in pages) in line with RAM, reduce per-socket buffer maximums if they are oversized, and set timeouts so slow or idle clients get closed.

Prevent → Graph sockstat memory and orphans; size proxies for peak connection counts.

All Linux questions Roadmap: Linux

More on Boot, time, cron and kernel