1

A process with name (command) "bash" is taking about 100% CPU power. When I use the kill command to kill it I don't get any error messages but it nonetheless doesn't die. It doesn't belong to root. Here is the output of ps aux for this process.

  16819 69.0  0.0  31788  4544 ?        Rs   15:49 188:45 /bin/bash
1
  • What are the outputs of /proc/16819/wchan, and /proc/16819/syscall?
    – heemayl
    Feb 20 '17 at 3:22
4

By itself, kill only sends SIGTERM, which asks the process to quit rather than forcing it to quit. Send SIGKILL (signal number 9), which forces it to quit, with the following:

kill -9 16819

If that doesn't work, try the following:

sudo kill -9 16819

Note that kill -9 should only be used if closing the application normally fails, as it doesn't give the application any time to clean up after itself, to finish up changing anything on disk (potentially leaving a corrupt file), or to save anything.

2
  • Why would you suggest SIGKILL blindly?
    – heemayl
    Feb 20 '17 at 3:20
  • 2
    I didn't. The last paragraph makes the downsides clear. Feb 20 '17 at 4:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.