managing java processes - howto

Asked by Bogdan Butnaru on 2007-03-26

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:
2007-04-05
Last query:
2007-04-05
Last reply:
2007-04-03
Best TraceyLedbetter (concept10) said : #1

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

Bogdan Butnaru (bogdanb) said : #2

Thanks a bunch!