PHP-FPM: static vs dynamic pm on 1GB
Everyone copies pm = dynamic and wonders why RAM swings. On a small box dynamic spawns/kills children constantly, thrashing.
For a single busy site I switch to:
— pm = static
— pm.max_children = 6 (each child ~50MB here)
No spawn lag, predictable memory, no OOM surprise at 2am. Use dynamic only when many idle pools share the box.
Measure one child's RSS first, then do the math. Try it tonight.
Root Access Daily
@RootAccessDaily
PHP-FPM: static vs dynamic pm on 1GB
Этот пост опубликован в Telegram-канале Root Access Daily. Подписаться можно по ссылке: @RootAccessDaily.