How to solve “LFD: Excessive resource usage”

Somehow I noticed errors coming to the mail from cPanel:

lfd on server: Excessive resource usage: user
Time: Sat Jan 2 12:41:21 2016 +0200
Account: user
Resource: Virtual Memory Size
Exceeded: 224 > 200 (MB)
Executable: /usr/bin/php
Command Line: /usr/bin/php /home/user/public_html/index.php
PID: 27698 (Parent PID:22562)
Killed: No

The error occurs due to the fact that in the configuration file /etc/csf/csf.conf the parameter PT_USERMEM = “200” is specified which sets the memory usage limit to 200 megabytes, and more memory is used.

To solve the problem, open the configuration file in any text editor and increase the limit, for example, by 300 or disable it by specifying 0.

I’ll give an example of opening nano in the test editor (Ctrl+O to save changes, Ctrl+X to exit):

sudo nano /etc/csf/csf.conf

To apply the changes, restart the Config Server Firewall (CSF):

sudo /etc/init.d/lfd restart
sudo csf -r

Done. See also my article:
How to solve “Suspicious process running under user” and “Excessive resource usage”

Leave a comment

Leave a Reply