Scenario: Upon logging into the CentOS7 server you notice that the system seems
ID: 3862033 • Letter: S
Question
Scenario: Upon logging into the CentOS7 server you notice that the system seems sluggish. You suspect that a runaway process is causing the problem, so you open the top utility and notice that there are numerous “cat bombs” (processes) being created.
Your task is to find the parent process (write the name down as you’ll need it later) that is starting the bombs and kill it. Once the parent process is dead you’ll need to kill all the child (cat) processes also. Now that you have killed the all the processes you’ll want to locate the script that is starting the bombs and disable it.
Explanation / Answer
// use ps aux to fetch all the processes currently running on CentOS and grep to locate the specific process.
//fetch all process id
ps aux | grep cat bombs
//use kill to kill the process retrieved from the above command
kill -9 <process id>
//To kill all the child process of same process group
pkill -0 <process id>
//use top to get the all the process id and parent process id, identify the parent //process id of the cat bombs process id and use chkconfig command to disable it.
chkconfig <process name> off
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.