Hosting Tiers Hub (10 Guides)
Deterministic PHP-FPM pm.max_children Sizing Formula
Set pm.max_children = floor((Total RAM - MariaDB - Redis - OPcache - OS) / Worker RSS) to prevent kernel OOM kills under traffic spikes.
(Available Pool RAM) / (Worker RSS MB)
The OOM Trap of Oversized pm.max_children
Setting pm.max_children=50 on a 4 GB VPS looks responsive until a bot crawl or WooCommerce flash sale spawns 25 Elementor workers at 240 MB each (6 GB), forcing the Linux OOM killer to terminate MariaDB or PHP-FPM.
Dynamic vs Ondemand Process Manager Settings
Use pm = dynamic for active WooCommerce stores with pm.start_servers at 30% of max_children and pm.max_requests = 500 to recycle any fragmented PHP worker memory cleanly.
Measured Thresholds & Configuration
| Server RAM | Non-PHP Overhead | Available FPM Pool | Safe pm.max_children (240 MB RSS) |
|---|---|---|---|
| 3 GB Cloud | 0.9 GB | 2.1 GB | 8 children |
| 6 GB Turbo/Pro | 1.1 GB | 4.9 GB | 20 children |
| 16 GB VDS | 1.5 GB | 14.5 GB | 42+ children (CPU-balanced) |