PHP-FPM Consume a lot of CPU? (RAM IS GOOD)

nadav123

Well-Known Member
Mar 2, 2020
115
12
18
Orlando, FL
cPanel Access Level
Root Administrator
Hello everybody.

I am struggling with CPU on a little machine with PHP-FPM... :/

I work on the default values of cPanel.
have any recommendations for me?
I have a small machine 2x2 CPU and Ram.

I Believe the problem comes from these 3 configurations:

Max Requests = 20
cPanel Default: 20

Max Children = 5
cPanel Default: 5

Process Idle Timeout = 10
cPanel Default: 10


Now it's very tuning... i like it, but i need lower more... :(
have an option for me to keep the cPanel default? and in the same time work with these 3 values? (lower the CPU).
some recommendation guys?

lets say for example:
Max Requests = 16
Max Children = 4
Process Idle Timeout = 10 ( it's already very low... I was thinking better on this case stick to the cPanel default. - i think on 5 but its too low ).


I ALREADY KNOW CPANEL RECOMENDED HIGH MEMORY FOR THIS PHP-FPM, BUT MY ISIUE IS CPU AND NOT RAM :/

This is why i ask for help here, maybe someone can recommend to me what to do. ( and keep the default of Cpanel how much we can )
 

cPanelAnthony

Administrator
Staff member
Oct 18, 2021
1,051
106
118
Houston, TX
cPanel Access Level
Root Administrator
Hello! I would suggest providing more information; it's hard to determine if these settings are good or not without knowing your server's hardware specs and information about the traffic. How much RAM and CPU cores does the host have? Also, how did you determine there is a CPU issue? Have you confirmed that these FPM limits are actually being triggered?

PHP FPM Fine Tuning Basics
 

nadav123

Well-Known Member
Mar 2, 2020
115
12
18
Orlando, FL
cPanel Access Level
Root Administrator
Thank you but i look at that already...
They do not say if you can go down anymore from that.

only go up and consume more CPU and RAM... :/
The guy in the article even calculates a process of 2M something, which it's very big...

I searched to minimize the default cPanel configuration.
I think it's not possible, and the default it's the best.

don't get me wrong, my servers work amazing.
but still, i try to get it improved to my machines (2x2 its very small machines)
 
  • Like
Reactions: cPanelAnthony