adeyjones

Well-Known Member
Apr 26, 2019
69
8
8
Merseyside, UK
cPanel Access Level
Root Administrator
Hi
Yesterday I enabled php-fpm on all sites (on by default but after an account transfer many sites didn't have it enabled). After this, I upgraded 4 sites to PHP8.1
Unfortunately this morning I have woken up to 50+ emails (every 15-20 minutes) containing the following:

Time: Sat Sep 24 07:58:18 2022 +0000
Account: swclients
Resource: Virtual Memory Size
Exceeded: 519 > 512 (MB)
Executable: /opt/cpanel/ea-php81/root/usr/sbin/php-fpm
Command Line: php-fpm: pool sitename_co_uk
PID: 4326 (Parent PID:26660)
Killed: No


And these emails only relate to the 4 sites I have put on PHP8.1, all the others still on 7.4 are fine.

I have searched about this and found an article that says to edit www.conf and insert the following:

pm = ondemand
pm.max_children = 80
pm.process_idle_timeout = 10s
pm.max_requests = 200


I am open to trying anything to resolve whatever issue is occuring, however I have no idea what this is and don't want to just be inserting random things in to files, what does this do and is it recommended? Will it fix my issue?

Thanks
 
Last edited by a moderator:

HostNoc

Well-Known Member
Feb 20, 2020
157
39
28
Ontario
cPanel Access Level
Root Administrator
Hello,

The Process Tracking in csf.conf section is exceeded thats the reason the alerts received to you.
increase the PT_USERMEM setting in the CSF config file and restart the csf. Hopefully it will resolve the issue.


Regards,
 

adeyjones

Well-Known Member
Apr 26, 2019
69
8
8
Merseyside, UK
cPanel Access Level
Root Administrator
Thanks for your reply.

If I understand right, doing that will stop the email notification from being sent but is not actually doing anything about php-fpm using excessive memory? I’d rather try and resolve that issue rather than stopping the emails to pretend it’s not happening in the first place.
 
  • Like
Reactions: kodeslogic

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
12,499
1,971
363
cPanel Access Level
Root Administrator
@adeyjones - we don't control the CSF settings as that software is created by a third party. What's likely happening is that your system is just fine, and it's only breaking the threshold for what CSF considers "excessive."

It would be best to monitor the sites in real-time on the machine for a bit and see if they are really using too many resources, and then adjust CSF accordingly.