PHP-FPM Consuming all the features of VPS

Hey, guys. Would you have any idea what usually causes the high consumption of VPS resources through PHP-FPM?

Consumes everything until it drops the MySQL database from the site!

https://ibb.co/df7Akd (screenshot htop)

I tried to make settings like this but did not resolve https://goo.gl/pg1fMe

Might be caused due to a ill programmed plugin or any abrubt process utilizing php. Usually its not hard to figure it out.

After changing settings, restart your instance once.

Then state if the problem is persisting.

You may also look to configure additional setting in both php-fpm and nginx.

For php-fpm, its always advisable to go from the bottom values and increase it gradually according to your resource, I tell this to people, rather than using general values as because everyone’s user case and implementation varies greatly hence its good to find out what values work for the best.

Meanwhile check in logs for what process is exactly consuming the most resources. You can get many tools to do so. I use netdata overall to have glimpse on the resource utilization.

setting pm = dynamic or ondemand might help.

1 Like

what type of caching you are using ? How much traffic do you have ? How many plugin ? When i load testing i see this only when I test with 500 User and page was not cached although if page was cached as Nginx fastcgi bypass php so i didnt see many php process running