How to kill the process: Excessive resource usage

Jeromero

Active Member
Aug 6, 2019
38
5
8
Johannesburg , South Africa
cPanel Access Level
Website Owner
Hi all I receive a lot of these.
Now I read on this forum the other thread that I should kill these processes and I found the tutorial on killing the process in linux but I am not sure what PID of 2 I should kill?
The tutorial says:
kill -9 22245

lfd on dwacu.dedicatedserver.com: Excessive resource usage: xtggsnwi (22745 (Parent PID:2442))
Time: Sat Jul 18 10:21:00 2020 +0200
Account: xtggsnwi
Resource: Virtual Memory Size
Exceeded: 524 > 512 (MB)
Executable: /opt/cpanel/ea-php73/root/usr/sbin/php-fpm
Command Line: php-fpm: pool mydomain_com
PID: 22745 (Parent PID:2442)
Killed: No

As I understand I should first kill 22245 and then try to kill parent PID?
kill -9 22745
kill -9 2442

Is this correct?
I am not sure what -9 stands for and can I harm the system by killing these processes?
 

andrew.n

Well-Known Member
Jun 9, 2020
951
352
63
EU
cPanel Access Level
Root Administrator
I don't think killing processes is a good idea. You should first investigate why is this happening. It might be absolutely fine. If you really want to "kill" processes I suggest you to suspend the account which will exist all the processes belongs to the user and then unsuspend it. You can also hire a professional sys admin from System Administration Services to help you investigate it further if needed.
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,300
363
Houston
This is indicating that the account noted is using over the threshold of 512mb of vmem (virtual memory) and it notes the php-fpm process as being the culprit. Identifying the cause rather than blindly killing a process is always the best move as suggested by @andrew.n
 
  • Like
Reactions: Jeromero