This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma 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

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

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 file :

export CLASSPATH=$CLASSPATH:$CATALINA_HOME/conf:/tmp/oktech-profiler-1.1
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 -javaagent:hu.oktech.profiler-runtime.jar"
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10744

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!]
Have you checked out Aspose?
subject: HPROF not showing content of my war file
It's not a secret anymore!