PHP-FPM high CPU load running by root

pedgarc

Member
Jun 11, 2020
12
1
3
Mexico
cPanel Access Level
Root Administrator
Hello there,

One of my servers has php-fpm process running by root user, CPU is using 11/8 cores.

My top command:

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
2466617 root 20 0 465604 19456 12312 R 95.7 0.1 0:49.75 php-fpm
2466629 root 20 0 464116 17924 11288 S 23.6 0.1 0:01.20 php-fpm

I restarted PHP-FPM, I disabled it from service manager, but still running.

Also I ran "killall -KILL php-fpm" command, but nothing.

Any idea how to fix this?
 
Last edited by a moderator:

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
17,470
2,843
363
cPanel Access Level
Root Administrator
Hey there! It definitely isn't normal to see those processes take up that much CPU.

Running the following command might give you some more details about the true number of FPM processes on the machine:

Code:
ps aux | grep fpm
as that will show all the active processes running.

You can also use "shift + p" to sort the top command by processes, or "shift + m" to sort my memory usage, which could also be helpful.
 
  • Like
Reactions: pedgarc

pedgarc

Member
Jun 11, 2020
12
1
3
Mexico
cPanel Access Level
Root Administrator
Hey there! It definitely isn't normal to see those processes take up that much CPU.

Running the following command might give you some more details about the true number of FPM processes on the machine:

Code:
ps aux | grep fpm
as that will show all the active processes running.

You can also use "shift + p" to sort the top command by processes, or "shift + m" to sort my memory usage, which could also be helpful.
Hello cPRex!

Thanks for your recommendation, finally I could fixed!

I noticed all PHP web pages were down, so I recompile Apache + PHP + lsapi, then I rebuilt CageFS.

With that changes the problem get fiex.

Best regards!