On my machine whenever I work with Eclipse (on Suns JDK), the java process does not terminate after I exit Eclipse. Therefore after working on several projects over the day, I sometimes need to kill all those Java processes manually to free my RAM again.
This bugs me for about 2 years now, while all these parts have gone through different versions:
- Eclipse (and all the installed plugins)
- Suns JDK
I've even tried to attach a VM debugger to the Java processes to see what's going on, but had no success.
Although it would be nice to find the reason for the problem, I'm meanwhile more interested in a workaround to automatically kill those processes once a day. I imagine a script to kill the Java processes, but to make some exceptions depending on the command line parameters of the Java process (e.g. I have Subsonic and the Playstation Media Server running all the time).
What are your ideas to automatically (and selectively) kill the Java processes?