PHP-FPM CPUQuota

Was doing some experimenting with setting the PHP-FPM service to a maximum of 90% using the CPUQuota=90% setting in the service file.

DO NOT DO THAT. It will not help performance in any way. What I learned is the opposite, if your server bypasses cache and has to hit the PHP backend. Requests will take double digit seconds to process.

I've seen requests hitting /wp-admin after enabling the throttle that would take anywhere from 12seconds to 28seconds to load the WordPress dashboard. Removing the CPUQuota limit and restarting the service brought the request back down between 500ms to 2seconds based on my testing.

So in short, do not try to limit your php-fpm service's access to your CPU.

Join my Newsletter

Sign up to get the occasional email regarding security updates, tricks and news about the landscape of Web Development.

Back to top of page