Help with lfd/php-fpm usage
Sorry I know there are a lot of posts about this but I cannot make any sense of them and what to do to resolve my issues.
I am getting continual alerts regarding
Time: Mon Mar 11 19:28:53 2019 +1100
Account: allmyaccounts
Resource: Virtual Memory Size
Exceeded: 763 > 750 (MB)
Executable: /opt/cpanel/ea-php72/root/usr/sbin/php-fpm
Command Line: php-fpm: pool allmydomains_net_au
PID: 472707 (Parent PID:7043)
Killed: No
I have increased the CSF limit on PT_USERMEM to 750MB but these seems excessive and still isnt enough.
Basically any page load makes CPU usage spice up to over 100% sometimes in multiple processes. The issue seems to php-fpm.
Can anyone provide an idiots guide how to get this under control.
Thanks
Raoul
-
The warning email is independent of whatever load problems you have. I would set pt_usermem to about 1.5 times whatever your php memory_limit is set to to reduce false alerts. The load problem is something else though. I would run top and look at the resources being used, what files are being called to cause load, etc. 0 -
I agree with @GOT here - you can also set some of these to be ignored if you don't want to get the notifications (though that means if there is a suspicious process consuming an unusual amount of memory you wouldn't get the notification) I'd suggest addressing this by looking into why the process is causing so much resource usage on loading the page. Thanks! 0
Please sign in to leave a comment.
Comments
2 comments