Report this

What is the reason for this report?

High CPU usage PHP-FPM

Posted on May 28, 2017

Hi all,

Perhaps this is a silly question but I’ve recently migrated a Wordpress website (http://somosinvictos.com) from another hosting provider to Digital Ocean. I used ServerPilot to config the LEMP/LAMP stack and successfully migrated my website.

I’m really new to all this but I see a strange trend: while mi CPU load goes to the roof when getting close to 1000 active concurrent visitors, my RAM stays flat (around 10% usage). CPU top process graph says that all the load comes from php-fpm and mysql

Do you think this is expected behavior? Do you have any recommendations for this?

Thanks in advance, Carlos



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

@jtittle

Thank you very much for replying!

Perhaps I failed to provide details required to better assess this scenario: :

  • I’m using WP Rocket plugin for caching.
  • the application is currently in a 32 gb RAM, 12 core CPU, 320 GB droplet

I didn’t use Redis because it was not provided by ServerPilot, but I’ll take a look at it.

As per fine tuning the stack I do not have any experience at all in doing so. Do you provide consulting services? Or do you happen to know someone that might help me with this?

Thanks,

Anyone have the solution? I have the same problem a few days ago till now. I am using WP- Rocket and Nginx Cache… Using top command and saw php7.3-fpm using too much CPU with about 400M RAM for each process… It make my site too slow…

@jtittle1 @jtittle can you help me as well as i’m also facing the same issue on my droplet.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.