1.

A Developer With Username Sanjay Has Told You That One Or His Processes Seem To Be Locked Up And He Cannot It. He Reported That It A Bug In His Code And May Quickly Use Up All Cpu And Ram Resources On The Server. How Will You Tack The Process And Terminate It?

Answer»

Your first step is to identify the process, use ps command

#ps -au sanjay

Now run top command to compare the process RUNNING, and verify which ONE is using the most resources. After you have identified the problem process, you can use the kill command to terminate it. Because the user was unable to STOP the process, you should probably FORCE a kill signal to make sure that the process stops:

#kills -9 [PID of process]

Now, to verify that it has stopped, run the ps command again on the user:

ps -au sanjay

Your first step is to identify the process, use ps command

#ps -au sanjay

Now run top command to compare the process running, and verify which one is using the most resources. After you have identified the problem process, you can use the kill command to terminate it. Because the user was unable to stop the process, you should probably force a kill signal to make sure that the process stops:

#kills -9 [PID of process]

Now, to verify that it has stopped, run the ps command again on the user:

ps -au sanjay



Discussion

No Comment Found