Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

1 Answer 1

up vote 5 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
3  
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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.