Let us learn how to disable LFD excessive resource usage with the support of our cPanel support services at Bobcares.
How to disable LDF excessive resource usage?
LFD classifies recent unsuccessful login attempts as ‘Brute Force Attacks’ and blocks the corresponding IPs using CSF.
CSF can detect this sort of hacking attempt using LFD and temporarily prevent the IPs from accessing the server. If the temporary under the bann IPs are proven guilty, CSF can use it to permanently block them.
When we use CSF, we include the Login Failure Daemon, or LFD.
LFD checks for concerns such as a process using more memory than is allowed on a regular basis (every X seconds). If this value exceeds, it will send an email automatically.
Example
Example “Excessive Resource Usage” Email:
Here is an example of an email message that can be sent as a result of CSF utilizing more memory than was allocated.
lfd on hostnet.example.com: Excessive resource usage: example1 (31846 (Parent PID:18822))
Time: Thu May 13 23:18:56 2021 -0700
Account: example1
Resource: RSS Memory Size Exceeded: 263 > 256 (MB)
Executable: /opt/cpanel/ea-php72/root/usr/sbin/php-fpm
Command Line: php-fpm: pool example_com
PID: 31846 (Parent PID:18822)
Killed: No
How to disable these alerts?
Disabling these warnings is not a recommended procedure. These email notifications are quite useful for monitoring how user accounts consume server resources.
If we need that this particular process/service, we can allow them to continue consuming server resources while disabling LFD alerts.
There are three ways to suppress LFD excessive memory consumption warnings. Each approach is described in detail below. We may access the CSF settings using WHM/terminal.
Follow the methods given below to disable LFD excessive resource usage.
Method 1:
We will permanently disable the LFD high resource use signal using this method. Using this strategy will create a security risk.
- Firstly we have to login to the WHM
- After that, we have to open the CSF firewall configuration
- Set the directives PT_USERMEM and PT_USERTIME to 0.
PT_USERMEM = 0
PT_USERTIME = 0 - Finally, we have to save the settigns to disable ldf excessive resource usage.
Method 2:
To disable the LFD notifications, we will raise the memory and time parameters in this approach. This strategy is only temporary.
We will continue to get LFD notifications if any process/service consumes more resources than defined.
- Access the WHM.
- Navigate to the CSF Firewall configuration.
- Change the values of the directives PT_USERMEM and PT_USERTIME.
PT_USERMEM = 0
PT_USERTIME = 0 - Finally, we have to save the changes. Nw ewe can look at another method to disable LFD excessive resource usage.
Method 3:
This is a common approach for turning off the LFD warnings. In this strategy, we will disregard the specific process/service in CSF.
The disregard of CSF ignores the specific process/service contained in it and so disables the LFD warnings.
- Log in as the root user to the server.
- Open CSF ignore with any editor. Pignore, present in /etc/csf/csf.pignore.
- Include the command line path mentioned in the alert in the CSF ignore list.
- Save the modifications.
When we finish these procedures, the LFD excessive resource consumption signal will turn off.
[Need assistance with similar queries? We are here to help]
Conclusion
To sum up we have now seen how to disable LFD excessive resource usage with the support of our tech support team.
PREVENT YOUR SERVER FROM CRASHING!
Never again lose customers to poor server speed! Let us help you.
Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.
0 Comments