Apache MaxClients Saturated

Resolve Apache connection saturation.

When Apache reaches MaxClients (or MaxRequestWorkers in MPM event), new connections are queued then timeout. Your site becomes inaccessible while the server doesn't seem overloaded.

Symptoms

Common Causes

Diagnostic Steps

  1. Check Apache logs for "MaxRequestWorkers"
  2. Examine Apache process count (ps aux | grep apache)
  3. Check current MPM configuration
  4. Analyze slow requests (mod_status)

Automate with MoniTao

MoniTao detects saturation:

Best Practices

FAQ

How to calculate MaxRequestWorkers?

(Available RAM - OS - DB) / memory per worker. Typically 150-300.

Difference between prefork and event?

Event handles KeepAlive connections better with less resources.

Should I disable KeepAlive?

No, just reduce the timeout. KeepAlive improves performance.

Does MoniTao detect this problem?

Yes, via connection timeouts and degraded response times.

Ready to Sleep Soundly?

Start free, no credit card required.