11

Sometimes my Eclipse hangs and I need to kill it violently. However, I have been unable to do it properly. It seems that kill -9 does not actually shut it down in a proper way since I can still see the hanged window. What command sequence would kill my Eclipse properly so I could restart it?

I am running Ubuntu 12.10 and Eclipse 4.2(Juno).

iluwatar
  • 1,778
  • 1
  • 12
  • 22

4 Answers4

37

You can also use jps -l to get all of the process id's of java processes

Uku Loskit
  • 40,868
  • 9
  • 92
  • 93
16

You need to kill the javaw process on which Eclipse runs (usually it is the one with about 1GB memory usage :) )

Michal Borek
  • 4,584
  • 2
  • 30
  • 40
5

Based on the answer of Uku and Michael you can do the following:

On your terminal first run:

jps -l

Check the pid of the process that is running Eclipse and copy the pid.

Then kill the process id by running:

// use the actual process id
kill -p {the_copied_pid} 
Pritam Banerjee
  • 17,953
  • 10
  • 93
  • 108
-1

Is it a typo : kill -9 {the_copied_pid}