1

LInux java class from process id pid

view story
linux-howto

http://stackoverflow.com – I am a newbie to linux. I am trying for a command which displays pid, java class. I tried ps -C java -o pid but it only showed me pid but not java classes. I used another command ps -ef | grep java" It showed me full library JAR files and java classes associated with it.. But I don't need this.. I need only to display pid and java class. The problem I am facing is sometime the java process takes like 100M memory space and I can only know the pid with the command java on it by using linux command top But couldn't find which java program is responsible for this. It will help (HowTos)