Infobest practice
High Keepalive Timeout
Why excessively high keepalive_timeout wastes server resources.
What This Rule Checks
This rule triggers when `keepalive_timeout` exceeds 75 seconds.
Why It Matters
Very high keepalive timeouts keep idle connections open, consuming file descriptors and memory. Nginx's default is 75 seconds, which is suitable for most applications.
✗ Bad — Triggers this rule
keepalive_timeout 300;✓ Good — Passes this rule
keepalive_timeout 65;How to Fix
Set `keepalive_timeout` to 60-75 seconds. Adjust in Configen's Performance section.