📖 ~1 min read
Table of contents
Symptom & Impact
Users receive intermittent 502 responses during traffic peaks.
Environment & Reproduction
Seen with undersized pm.max_children and heavy long-running PHP requests.
Root Cause Analysis
Worker pool saturation leaves no capacity for new requests from web server.
Quick Triage
Check PHP-FPM status, process count, and upstream timeout logs.
Step-by-Step Diagnosis
Analyze slow logs, request concurrency, and memory per worker process.

Solution – Primary Fix
Tune pool limits, optimize slow endpoints, and adjust web upstream timeouts.
Still having issues? Our IT Solutions & Services team can diagnose and resolve this for you. Get in touch for a free consultation.

Solution – Alternative Approaches
Split workload into dedicated pools for critical and background endpoints.
Verification & Acceptance Criteria
502 rate drops to baseline and response times stabilize under load test.
Rollback Plan
Revert pool config if memory pressure causes broader instability.
Prevention & Hardening
Track pool utilization and enforce request timeout budgets.
Related Errors & Cross-Refs
Related with upstream timed out and max_children reached warnings.
Related tutorial: View the step-by-step tutorial for Ubuntu 14.04 LTS.
View all Ubuntu 14.04 LTS tutorials on the Tutorials Hub →
Browse all common problems & solutions on the Tutorials Hub.
References & Further Reading
Consult PHP-FPM pool management and Nginx/Apache proxy docs.
Need Expert Help?
If you cannot resolve this yourself, our team offers hands-on Server Management, Managed IT Services, and flexible Support Plans. Contact us today — we respond within one business day.