Back to Linter
Warningbest practice

Low Worker Connections

How worker_connections limits concurrent users in Nginx.

What This Rule Checks

This rule checks if `worker_connections` is set below 1024.

Why It Matters

The `worker_connections` directive sets the maximum number of simultaneous connections per worker process. With a low value, Nginx will start rejecting connections under moderate load. The default (1024) is suitable for most setups.

Bad — Triggers this rule

events {
    worker_connections 256;
}

Good — Passes this rule

events {
    worker_connections 1024;
}

How to Fix

Set `worker_connections` to at least 1024 in Configen's Performance section. For high-traffic sites, consider 2048 or 4096.

Related Rules

Check your config now

Paste your nginx.conf and get instant feedback on 20+ rules.

Open Linter →