Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm looking at the 'top' output on my linux server. I see that the command 'java' is taking up a lot of memory. How can I use this PID, etc. to see what process actually started up the jvm?

Also, is this process actually the jvm or just some generic command?

Ultimately I just want a way to see more information about this command/process instead of just 'java.'

share|improve this question
up vote 8 down vote accepted

You could use ps command to get extended information about command which launched process:

ps -fp <pid>

Also you could take information of every java process with ps:

ps -ef | grep java | grep -v grep
share|improve this answer
Excellent. Works like a charm! – durden2.0 Jun 26 '12 at 16:16
Just FYI, I also looked through the manpage for 'top' and found that using 'c' will toggle between the 'command line' (default) and 'program name.' So, in my case when looking at 'top' I can hit 'c' and see the name of the application. – durden2.0 Jun 26 '12 at 16:18
Thank you for your info! :) – scriptmonster Jun 26 '12 at 16:39
You can also use the pstree command to get a more visual representation of process parent child relationships. – Brian Swift Jun 27 '12 at 4:06

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .