I am using cPanel with PHP-fpm. My server is using 100% cpu due to PHP-FPM Pool. How i can optimize this load?

Posted January 13, 2020 1.4k views

OS : centos 7
Cpanel Version : Version 84
Mysql version - 5.7
Apache : Easy Apache 2.4
PHP version : 5.6 (PHP-FPM)

edited by bobbyiliev

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

1 answer

Hi @t3stw3rks,

First and foremost, you’ll need to optimize your website, that’s the biggest issue usually! After that you can turn your attention to your droplet.

Since you are asking about your droplet, here are a few steps. Since you are using cPanel with PHP-FPM, I’ll recommend switching your mpm to mpm_event. It’s the best as far as I’m concerned. It can be changed from your EasyApache configuration in cPanel.

Additionally, you’ll need to install a module in cPanel for httpd2. This again is installed from your EasyApache configurations. Don’t forget to add OPcache as well, it works really good with mpm_event and httpd2.

I’ll recommend updating your PHP version to at least 7.2 as well, 5.6 is really old and as it’s older it’s slower.

All of the above should help you with optimizing your droplet however, you can take a look at installing redis as well.


Submit an Answer