A java heap/CPU profiling tool
Questions tagged [hprof]
142 questions
3
votes
0 answers
Android studio 3 capture cant automatically store hprof
When I do a heap dump, I cant see the hprof file in the Captures

T.O.P
- 31
- 1
- 5
3
votes
1 answer
java profiling: View binary hprof cpu sampling dumps
Is there any way to view java hprof cpu profiling dumps which have been crated using the JRE builtin hprof agent's hprof=cpu=samples,format=b parameters?
The following tools do not support viewing hprof cpu sampling…

MRalwasser
- 15,605
- 15
- 101
- 147
3
votes
0 answers
Android Studio Heap Dump (.hprof) viewer showing incorrect counts?
I started a brand new sample project for this experiment. The app has one activity.
At this point I run the application and dump the java heap. The results are shown below:
Great! Everything looks correct. The "Total Count" and "Heap Count" are at…

EGHDK
- 17,818
- 45
- 129
- 204
3
votes
2 answers
Can't convert dump HPROF file from Android Studio to MAT format
When I try to convert HPROF file in android studio terminal to MAT format:
1) hprof-conv [-z] d:/dump.hprof d:/outfile.hprof
2) hprof-conv d:/dump.hprof d:/outfile.hprof
I have the same answer:
Usage: hprof-conf [-z] infile outfile
-z: exclude…

Delphian
- 1,650
- 3
- 15
- 31
3
votes
1 answer
I can't convert Android HPROF to standard HPROF on Lollipop
My test device version is 5.0.1 (Lollipop).
I get Android heap dump file in Android Studio 1.3.
But I saw error message.
So I try to get dump file (example file name: android.hprof) in DDMS.
Then I try to convert Android HPROF to standard HPROF…

helloyako
- 195
- 1
- 10
3
votes
2 answers
Hadoop HPROF profiling no CPU SAMPLES written
I want to use HPROF to profile my Hadoop job. The problem is that I get TRACES but there is no CPU SAMPLES in the profile.out file. The code that I am using inside my run method is:
/** Get configuration */
Configuration conf = getConf();
…

nikicc
- 638
- 7
- 15
3
votes
1 answer
Large HPROF file
I have a very large Heap Dump (.hprof) file (16GB). When I try to open it in Visual Vm,the VM just hangs. I tried to open it in JProfiler. Jprofiler gave me a Out Of Memory error. Below is how my jprofiler.vmoptions looks like. What should be the…

TheMonkWhoSoldHisCode
- 2,182
- 3
- 26
- 40
3
votes
1 answer
How to generate an HPROF memory dump for applications that were built with Proguard / installed from Google Play
If I launch my application directly from Eclipse, I can generate an HPROF file easily from the Eclipse DDMS perspective:
However, if I create a release build (which uses Proguard) my process is not listed in DDMS, so I can't select it.
Can anybody…

Dan J
- 25,433
- 17
- 100
- 173
3
votes
2 answers
Time spent in Object. (hprof)
I'm profiling an application of mine - it's a macro system built on top of Java. I'm using hprof to profile some basic examples, and here are the top 20 functions where time is spent:
rank self accum count trace method
1 14.73% 14.73% …

Norswap
- 11,740
- 12
- 47
- 60
3
votes
1 answer
Profile Applications on the Server Side
I have a client which is Multithreaded code and which is hitting one of my REST service which is being deployed to this machine-
http://px5qa01c-8539.host.com:8080/service/TEService/v1/get/USERID=100/PURCHASED
I have remote access to the above…

AKIWEB
- 19,008
- 67
- 180
- 294
2
votes
1 answer
Parsing heap dump file
I have an application where I obviously create too many objects, i get this message:
java.lang.OutOfMemoryError: Java heap space
Dumping heap to java_pid2468.hprof ...
Heap dump file created [1087703293 bytes in 18.711 secs]
Exception in…

sekulicd
- 31
- 1
- 4
2
votes
1 answer
Give read permission to others for HeapDumpOnOutOfMemoryError file .hprof on generated
I start my java with these arguments
-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/log/${SERVICE}_`date +%Y-%m-%d:%H:%M:%S`.hprof"
When heap dump occurs, the .hprof file has -rw------- (600) permission, which can't be read by other users.
How…

hydradon
- 1,316
- 1
- 21
- 52
2
votes
1 answer
Java Thread dump with JCMD
I am using Java1.8 in Ubuntu Linux machine. Created a thread dump with below command:
jcmd 1670 Thread.print > Thread.jfr
Copied File to local MAC machine and double clicked to open in JMC. It failed to open. HOw to open it?
I tried to open same…

AKB
- 5,918
- 10
- 53
- 90
2
votes
2 answers
Java Mission Control says "few profiling samples", why, and what are my other options?
I'm profiling a Java application using Java Mission Control, and it's saying on the main page of the flight recording that "This recording contains few profiling samples even though CPU load is high.
The profiling data is thus likely not…

music_and_cities
- 147
- 1
- 13
2
votes
1 answer
How do you run maven unit tests with hprof
I'm trying to figure out why unit tests are taking seconds to run instead of milliseconds. This is a significant issue because over ~300 test classes, this results in 20 minutes. My hope is to use a performance analyzer (like java HPROF) with my…

joseph
- 2,429
- 1
- 22
- 43