Sizing PHP 8.3 FPM pm.max_children for Concurrent LMS Quizzes
Calculate exact PHP-FPM worker counts for 15 to 600 simultaneous quiz takers using Little's Law and measured 185-310 MB request RSS.
185-310 MB/worker | 150ms-390ms uncached execution
Why Logged-In Quiz Traffic Ignores Page Caching
When students open a LearnDash quiz or submit answers via wp-admin/admin-ajax.php or REST endpoints, WordPress session cookies force Nginx and LiteSpeed to bypass static HTML caches. Every active request binds one PHP 8.3 FPM worker until MariaDB writes complete and HTML/JSON returns.
Avoiding the pm.max_children Swap Spiral
Setting pm.max_children = 80 on an 8 GB server hosting LearnDash + BuddyBoss (310 MB per worker) invites 24.8 GB of PHP demand during a timed exam start. Size pm.max_children strictly from free RAM after reserving MariaDB InnoDB and Redis memory, then lower execution time via Redis Relay so workers drain faster.
Measured Thresholds & Configuration Targets
| Concurrent Quiz Takers | Target PHP req/sec | With Relay (115 ms) | No Redis (390 ms) |
|---|---|---|---|
| 25 Takers | 11.2 req/s | 4 - 5 Workers (1.2 GB) | 8 - 10 Workers (2.4 GB) |
| 60 Takers | 27.0 req/s | 7 - 9 Workers (2.2 GB) | 17 - 20 Workers (4.9 GB) |
| 180 Takers | 81.0 req/s | 15 - 24 Workers (5.8 GB) | 45+ Workers (11+ GB) |
| 450 Takers | 202.5 req/s | 35 - 52 Workers (14+ GB) | 110+ Workers (30+ GB) |