Stop your Linux box from being a wallflower on the network
Performance Tuning & Kernel Parameters (Sysctl)
Stop your Linux box from being a wallflower on the network
🧩 The Challenge
Dealing with a server that suddenly stops responding under heavy load despite having plenty of CPU left is infuriating. I spent a whole weekend thinking it was an application memory leak before I realized the kernel was just shrugging and dropping incoming SYN packets because the backlog was too tiny.
💡 The Fix
Bumping up the TCP max sync backlog gives your web server a bigger waiting room for incoming connections, preventing it from turning away users when things get busy.
sysctl -w net.ipv4.tcp_max_syn_backlog=4096
⚙️ Why It Works
Setting this value higher tells the kernel to hold onto more half-open connections in the queue, which is exactly what you need when you’re getting hit with a wave of new sessions.
🚀 Pro-Tip: Check your current drops with netstat -s | grep “SYNs to LISTEN sockets dropped” before changing anything so you have proof it’s actually the problem.
Linux Tips & Tricks | © ngelinux.com | 10/13/2026
