Troubleshooting guide
Troubleshooting Guide: PHP-FPM High Memory Usage
Use this guide to work through the most likely causes, gather useful evidence and make production-safe changes without turning a small problem into a larger outage.
Troubleshooting guide
Use this guide to work through the most likely causes, gather useful evidence and make production-safe changes without turning a small problem into a larger outage.
PHP-FPM can use too much memory when the pool allows too many workers, individual requests are heavy, or application code/plugins consume more RAM than expected. Increasing limits without sizing the pool can cause swapping and outages.
These checks are intended to assist identify the direction of the issue. Always adjust paths, solution names and commands for your environment.
ps -ylC php-fpm* --sort:rss | tailgrep -R "pm.max_children\|memory_limit" /etc/php/*/fpm/ -nfree -m && vmstat 1 5grep -R "slowlog\|request_slowlog_timeout" /etc/php/*/fpm/pool.d/ -nGet assist if the system is production-facing, customer data is involved, backup processes are uncertain, or the issue affects revenue, security hardening or uptime. We can review the logs, confirm the cause and quote a fixed-scope fix where appropriate.
Need this fixed?
Fixed engineering help starts from $499. Emergency incident engineering assistance is $199/hr with a minimum window.