This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP 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: 10491
    
    9

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!]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: HPROF not showing content of my war file