hprof

Way to convert java.hprof.txt to binary hprof format?

I have a java.hprof.txt file (automatically generated after an OutOfMemoryError) which I would like to convert to the binary hprof format. Is there any easy way to do this? ...

What do these HPROF errors mean?

I'm seeing the following errors in my console logs: HPROF ERROR: unable to resolve a method id HPROF ERROR: got NULL trace in obj_alloc HPROF ERROR: duplicate obj_id in object_alloc HPROF ERROR: unable to resolve a method id HPROF ERROR: got NULL trace in obj_alloc HPROF ERROR: unable to resolve a method id HPROF ERROR: got NULL trace i...

HPjmeter-like graphical tool to view -agentlib:hprof profiling output

What tools are available to view the output of the built-in JVM profiler? For example, I'm starting my JVM with: -agentlib:hprof=cpu=times,thread=y,cutoff=0,format=a,file=someFile.hprof.txt This generates output in the hprof ("JAVA PROFILE 1.0.1") format. I have had success in the past using HPjmeter to view these output files in a r...

Using hprof on a running application in Sun Java 5.

We have an enterprise java application(ear - few ejb's and a webapp) deployed on to weblogic 10 and using Sun java 5. The response time , CPU and memory usage is fine under few users of load but if we increase the concurrent users to >100 we see huge CPU spikes after some time (for eg:- load test with 100 users, the CPU goes to high afte...

How to measure cpu over-head introduced by the hprof profiler attached to a jvm

Hi I'm running IBM's jvm (jdk 5.0) with the options -XrunHprof:format=b I'm aware that instrumenting jvm with hprof involves a performance penality. I would like to quantify that penality. I know that one way to do this is to take off the hprof profiling and run the application, and compare the application's cpu utilization in both cas...

Java: why are multiple objects showing up with runhprof output?

I was curious about the runhprof output? I am mainly concerned about the memory section. It looks like there are multiple entries of the same class. Why would that be. Is there a way to get hprof to print how much memory a particular class(the instances of that class) take up in memory. One value for each class. Also, what tools do...

How to gather profiling information for a Java 1.4 application?

A Java application I support that runs on JRE 1.4.2_12 is hanging near midnight every night. I'd like to try and record as much profiling information as I can to discover if there is an issue in the JVM or external to the app. I'd like to use HPROF to collect as much information as possible. Is there a way to have HPROF dump its cpu s...

How do I get multiple hprof dumps in a Java WebStart (JNLP) application?

Working with a Java console application, I can do this: java -agentlib:hprof=heap=dump,format=b MyClass Then I can hit ctrl-\ (or ctrl-break on Windows) any time I would like to take a snapshot of the heap for later analysis. I would like to do the same thing for a Java Web Start application, but I cannot seem to get that to work. I...

Why doesn't the -baseline option of jhat work?

How come every object appears to be marked new, instead of just objects that are in the second snapshot but not in my baseline snapshot? Looking around online, I see some suggestions that I need to use hprof instead of jmap to make my memory dumps, but it appears that hprof generates dumps in exactly the same format. This is JDK 1.6.0_...

Can I compare hprof/jmap dumps with VisualVM?

VisualVM crashes when I try to profile our application with it, but if I could load the jmap memory dumps I've done from our application into VisualVM, I could probably get the answers I need without having to attach VisualVM to our app while it is running. So, is there a way to do this? ...

hprof file format

Does anyone know a reference for the .hprof (binary heap dumps) file format? Does anyone know libraries that handle .hprof files? I know that hat does that and also VisualVM through a NetBeans plugin. But are there others? ...

-XX:+HeapDumpOnOutOfMemoryError not creating hprof file in OOM

I start my java code (1.6.0_16 in Vista) with the following params (among others) -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=../logs. I run the code and I can see in the logs there are two OOM. The first one I know cause I can see in the stdout that the hprof file is being created: java.lang.OutOfMemoryError: Java heap space Dump...

Can I generate an HPROF file at will?

I have a java process which is acting dubiously. I'd like to see what's up using the various HPROF analysis tools. How do I generate one on the fly? ...

Memory dump much smaller than available memory

I have a Tomcat Application Server that is configured to create a memory dump on OOM, and it is started with -Xmx1024M, so a Gigabyte should be available to him. Now I found one such dump and it contains only 260MB of unretained memory. How is it possible that the dump is so much smaller than the size he should have available? ...

Getting Hprof dump for other processes from application code

Hi, In my application , i have an option to capture the hprof dump. I used android.os.Debug.dumpHprofData (String fileName) Initially i though the hprof data generated by the method above is for the entire device , which is not so . The hprof data generated is only for my process. Now i am trying to generate hprof data for other proc...

Java profiling: java.lang.Object.hashCode takes half of the CPU time but never explictly called

I have been benchmarked my multihreaded program using -agentlib:hprof=cpu=samples and was surprised to find the following line in the results: rank self accum count trace method 1 52.88% 52.88% 8486 300050 java.lang.Object.hashCode I never explicitly call hashCode() in my program. What can be the reason for this? How can I ...