tkstkstks
asked on
How to kill SSH Defunct process
Hi All,
Currently we have issues with defunct processes. These defunct processes slows down the performance of the database servers. I know defunct can be killed by either rebooting the server or kill the parent process. My problem is as this is a database server, we have some processes related to database too running as defunct.
My request is to kill only SSH defunct processes. Do we any script to do so.
Kindly assist.
Cheers,
Bull
Currently we have issues with defunct processes. These defunct processes slows down the performance of the database servers. I know defunct can be killed by either rebooting the server or kill the parent process. My problem is as this is a database server, we have some processes related to database too running as defunct.
My request is to kill only SSH defunct processes. Do we any script to do so.
Kindly assist.
Cheers,
Bull
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I have almost 250 defunct process running, i don't have time to kill each one by one.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
to list all SSh processes:
ps -aux | grep SSH
You'll get the PID of each one and kill them one by one
kill -9 PID