Calculating the max. clients by worker_connections

Ryan Chan ryanchan404 at
Thu Feb 3 06:51:40 MSK 2011

In the wiki (, it said:

The worker_connections and worker_proceses from the main section
allows you to calculate maxclients value:

max_clients = worker_processes * worker_connections

In a reverse proxy situation, max_clients becomes

max_clients = worker_processes * worker_connections/4

Since a browser opens 2 connections by default to a serve...

Why only in reverse proxy mode, the max clients is it divided by 4,
but not divided by 2 as normal web server?

More information about the nginx mailing list