File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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: 10815

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!]
I agree. Here's the link:
subject: HPROF not showing content of my war file
It's not a secret anymore!