Skip to main content

PHP-FPM is running high server load but also WHM tells me that PHP-FPM is disabled, what's going on?

Comments

10 comments

  • cPRex Jurassic Moderator
    Hey there! Just to confirm, can you run the following command on the system and post the output? ps aux | grep fpm
    0
  • martin MHC
    Hey there! Just to confirm, can you run the following command on the system and post the output? ps aux | grep fpm

    hi Rex, The output from this is: root 2518 0.0 0.0 255164 1332 ? Ss Feb11 0:42 php-fpm: master process (/usr/local/cpanel/etc/php-fpm.conf) root 29557 0.0 0.0 112812 976 pts/0 S+ 19:17 0:00 grep --color=auto fpm
    0
  • cPRex Jurassic Moderator
    Thanks for that output. Did you also see the high CPU usage in WHM during the time you ran that command? This only shows the main process running and not any user processes.
    0
  • martin MHC
    Thanks for that output. Did you also see the high CPU usage in WHM during the time you ran that command? This only shows the main process running and not any user processes.

    Hi Rex, no, I didn't notice any high CPU usage then, the high CPU usage is intermittent but checking the Process Manager it seems to be when PHP scripts in the account are run . Checking the Process Manager now, there are no PHP-FPM processes running (aside from " php-fpm: master process (/usr/local/cpanel/etc/php-fpm.conf) " ), no high server load and everything seems fine. I was curious of there was any sort of incidental program / script that uses PHP FPM in WHM / cPanel as I haven't seen this before and the high server load concerned me. Cheers.
    0
  • cPRex Jurassic Moderator
    In WHM >> Service Manager, do you have the "PHP-FPM service for cPanel Daemons" option turned on? That would allow PHP-FPM to be used for internal cPanel processes.
    0
  • martin MHC
    In WHM >> Service Manager, do you have the "PHP-FPM service for cPanel Daemons" option turned on? That would allow PHP-FPM to be used for internal cPanel processes.

    Hello @cPRex yes, this service is turned on. If this process is the cause how come the Process Manager shows PHP FPM pool_users which is a process I don't think I've seen on the PM screen before ? Cheers
    0
  • cPRex Jurassic Moderator
    I suppose it's possible. Ideally, you want to run that "ps aux" command when you notice one of the high CPU processes on the system, to see if you can correlate that to anything specific.
    0
  • martin MHC
    Ideally, you want to run that "ps aux" command when you notice one of the high CPU processes on the system, to see if you can correlate that to anything specific.

    That's worth knowing. Thanks!
    0
  • kdean
    Usually seeing a pool user_ process running is a good indicator that someone has webmail open for an email belonging to that user account. Maybe they were doing something to cause a long lasting process to occur that's using cpu, like searching a large mailbox without SOLR installed or moving or filtering a large amounf of mail in a large mailbox, Off hand i don't recall how the CPU usage split is between an IMAP process and the web process. I would presume that it would have to be something processing on the web side for it to eat up cpu like that. If you run the command: doveadm who " you can see which emails are currently connecting at the time to narrow things down. At least that's my guess. Although perhaps if someone was using File Manager in cPanel for a file transfer it could maybe use some resources. My clients don't really use File Manager so I haven't observed it's impact.
    0
  • kdean
    ! further note that could generate higher cpu usage, is if someone was logged into cPanel for that account and manually triggered an account backup that was zipping everything up at the time. Just another thought.
    0

Please sign in to leave a comment.