Auditting Java Process under Unix

Is there a way to see which java processes are runningin Unix? ps -f does not work because the arguments passedto java are too long and get truncated
[184 byte] By [kshimada] at [2007-9-26 2:01:30]
# 1
Hi,Try this command:# ps -A | grep javaThanks,Senthilkumar
senthil_indts at 2007-6-29 8:41:54 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 2
ps doesn't work as the arguments passed to javaare too long and are truncated.
kshimada at 2007-6-29 8:41:54 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 3
Hi,Try this command:# top | grep java"top" utility you can download it from http://www.sunfreeware.com for appropriate solaris versions.Revert back.Thanks,Senthilkumar
senthil_indts at 2007-6-29 8:41:54 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 4
use the -D flag then do a grep on -D.set the -D flag at the start so you will be able to see it.java -DISeeU myclasstop 1000 | grep DISeeYou
vinceman at 2007-6-29 8:41:54 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 5
hmm I mean do a ps -eaf | grep -D
vinceman at 2007-6-29 8:41:54 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 6
Try this:ps f -wC javaand next time consult with man pages ;-)
v.pavlov at 2007-6-29 8:41:54 > top of Java-index,Java HotSpot Virtual Machine,Specifications...