Cut PHP-FPM memory 40% by switching pm to static
Just did this on a $6 box hosting one busy WooCommerce store. pm = dynamic was spawning and killing workers all day, eating CPU on fork churn.
Measured one worker at ~55MB RSS. Box has 2GB, ~1.2GB free for PHP.
— pm = static
— pm.max_children = 18
— pm.max_requests = 500
No more spawn lag, memory pinned and predictable, throughput went from ~120 to ~190 req/s on the same hardware. The trick: count real RSS, don't guess.
Try it tonight.
Root Access Daily
@RootAccessDaily
Cut PHP-FPM memory 40% by switching pm to static
Этот пост опубликован в Telegram-канале Root Access Daily. Подписаться можно по ссылке: @RootAccessDaily.