A java heap/CPU profiling tool
Questions tagged [hprof]
142 questions
5
votes
5 answers
jvisualvm: Stuck on “Loading Heap Dump...” screen
I am using jdk64 and my java version is "1.6.0_24". My tomcat is running with -Xmx7196m, and jvisualvm is running with -J-Xms2048m -J-Xmx3072m.
I took a heap dump of my tomcat java process and size of my .hprof file is around 5.5 GB. When I try to…

Kuldeep Jain
- 8,409
- 8
- 48
- 73
4
votes
2 answers
Android: Memory Analyzer eclipse plugin(1.1) doesn't launch automatically when pressing ddms "hprof dump"
The older version 1.0 used to work fine. However after updating to 1.1 it gives an option to save hprof file. How can I open that file in eclipse?
Eclipse version is Helios 3.6.2

Saqib
- 125
- 2
- 7
4
votes
2 answers
Extract JVM uptime from binary heap dump
I am analyzing several heap dumps and am interested in a way that I can get the JVM uptime (or start time) from the heap dump. Using eclipse memory analyzer I can easy get the System Properties and class path but can't find a way to find uptime.

turbanoff
- 2,439
- 6
- 42
- 99
4
votes
2 answers
Where do references to Java Objects really exist?
Where do references to Java objects actually exist? (Such as for Garbage collection)
Strong references are not recycled during garbage collection.
The hprof file appears to record the connections between objects.
Where do they exist in the JVM? I…

user9214779
- 309
- 2
- 8
4
votes
1 answer
How do I extract a timestamp from the heap dump
Unfortunately, I forgot to record the time that I took the heap dump. I hope that somewhere in the heap, the standard library caches something like System.currentTimeMillis(). Unfortunately, I do not have any business objects that cache it.
One…

joseph
- 2,429
- 1
- 22
- 43
4
votes
1 answer
ERROR: expecting HPROF file format 1.0.3
I export heap dump as HPROF and I save it with the .hprof suffix according to docs. When I run hprof-conv command, error occurs:
ERROR: expecting HPROF file format 1.0.3
As a result I get converted-heap.hprof file with 0 size. And Eclipse Memory…

Andrew
- 2,438
- 1
- 22
- 35
4
votes
1 answer
Heap Dump w/ high memory allocation in Android Studio never finishes
We have an app that is jumping from 30-something MB of memory allocation to over 500MB while navigating between activities. I can track allocations while that happens, and see WHAT is being held in memory, but I want to create an HPROF file of the…

jkane001
- 1,694
- 1
- 15
- 23
4
votes
3 answers
Android: Opening .hprof file In Eclipse
Im trying to check for memory leaks by using a HPROF File from eclipses DDMS view.
I tried using MAT to read a .hprof saved to disk but got error:
Error opening heap dump 'com.myapp.myapp.hprof'. Check the error log for further details.
Error…

Eduardo
- 6,900
- 17
- 77
- 121
4
votes
2 answers
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,…

skiphoppy
- 97,646
- 72
- 174
- 218
4
votes
3 answers
heapdump size vs hprof size
I recently made a heapdump in a hprof format when my jboss server was running with a xms of 4096m and xmx of 4096m and a permsize of 512m.
The hprof file generated is over 5gb. When I load the heapdump in visualvm, mat analyzer or yourkit, I only…

Michael
- 233
- 2
- 4
- 11
3
votes
1 answer
hprof profiler output doesn't include line numbers regardless of `lineno` value
I'm running
java -cp some:jars:out \
-agentlib:hprof=cpu=times,format=a,file=java.hprof.txt,lineno=y,doe=y com.foo.Benchmark \
< /dev/null
and in the output I get stack frames without line numbers
THREAD START (obj=50000150, id = 200002,…

Mike Samuel
- 118,113
- 30
- 216
- 245
3
votes
1 answer
Android hprov-dump giving me Error: expecting 1.0.3
I've used the Dump HPROF File option in eclipses DDMS and made my hprof file called in.hprof, but when I try to do the hprov-conf in.hprof out.hprof from the command line it gives me the error "Error: expecting 1.0.3". Any ideas?

odiggity
- 4,117
- 7
- 34
- 41
3
votes
1 answer
How to define tasks to run with hprof from sbt 0.10
How do I define "run" and "test:run" tasks to run with hprof on forked JVM.
in build.sbt
fork in run := true
javaOptions in run += "-agentlib:hprof"
This setting makes both run tasks work with hprof.
I want to define my hprof task for keeping…

pokutuna
- 71
- 5
3
votes
1 answer
Stack trace for thread causing an OOM
I have a java application which is getting an OutOfMemoryError, for heap space. I've enabled -XX:HeapDumpOnOutOfMemoryError, and have the resultant hprof file.
The dump, however, shows that there is plenty of space left in the heap, permgen, etc. …

BeeOnRope
- 60,350
- 16
- 207
- 386
3
votes
1 answer
why would an hprof file have a much smaller size than the amount of memory given to the jvm
Our code runs with -XX:+HeapDumpOnOutOfMemoryError flag so we get an hprof file on OOM.
Recently I got such a file from an installation, I opened it with Eclipse memory analyzer (MAT) and I can see the total size is 46MB, how can it be if the…

Persimmonium
- 15,593
- 11
- 47
- 78