aspose file tools*
The moose likes Performance and the fly likes HPROF not showing content of my war file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Performance
Bookmark "HPROF not showing content of my war file" Watch "HPROF not showing content of my war file" New topic
Author

HPROF not showing content of my war file

sumit anand kumar
Ranch Hand

Joined: Apr 28, 2010
Posts: 83
Hi All,

I was trying to use HPROF to identify any bottlenecks in my project hosted on Tomcat 6.
But to my surprise, the dump file created doesn't contain any trace from code inside my war file.
The CPU utilization report also shows only the classes of Catalina class.

How do i make HPROF show the content of my war file. I was using oktech simultaneously

This is what i have added to setenv.sh file :


export CLASSPATH=$CLASSPATH:$CATALINA_HOME/conf:/tmp/oktech-profiler-1.1
#export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib
export JAVA_OPTS="$JAVA_OPTS -Xms256m -Xmx2048m -XX:PermSize=128m -XX:MaxPermSize=512m -XX:+OptimizeStringConcat -XX:+UseCompressedStrings -XX:+UseParallelGC -XX:+UseParallelOldGC "
#export JAVA_OPTS="$JAVA_OPTS -server "
export JAVA_OPTS="$JAVA_OPTS -Xrunhprof:heap=all,depth=20,file=/tmp/dump "
export JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -javaagent:hu.oktech.profiler-runtime.jar"
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10451
    
    8

I think this would be better suitable for the Performance forum instead of Java in General.Moving topic.


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
 
 
subject: HPROF not showing content of my war file