managing java processes - howto

Asked by Bogdan Butnaru

Hi! I'm using Feisty, with both GCJ and the Sun JRE, but I think this applies to any Linux system.

I'm used to doing basic "process management" using traditional, simple applications like "top" and "ps". This works pretty well for just about everything except Java: if I have several Java processes, all these tools display just "java" for the process name. If I activate the "command line" option, what I usually get is "java [about two lines of classpath parameters] classname" (or /usr/lib/jvm/java-gcj/bin/java ...) -- which doesn't help at all with finding what the program actually is.

I think similar things happen with python programs, but not having the classpath declarations helps in those cases.

How do you deal with this problem?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
TraceyLedbetter
Solved:
Last query:
Last reply:
Revision history for this message
Best TraceyLedbetter (concept10) said :
#1

Install htop (sudo apt-get install htop) It has many better views for this. Hope this helps.

Revision history for this message
Bogdan Butnaru (bogdanb) said :
#2

Thanks a bunch!