Questions tagged [hprof]

A java heap/CPU profiling tool

142 questions
1
vote
0 answers

React Native: .hprof file exceeds GitHub's 100MB file size limit

I'm trying to push my React Native app to GitHub, and I'm getting several errors like the following: remote: error: File android/java_pid1566.hprof is 667.24 MB; this exceeds GitHub's file size limit of 100.00 MB I looked at this answer and it…
gkeenley
  • 6,088
  • 8
  • 54
  • 129
1
vote
1 answer

Java - Automated CPU / Memory sampling - alternative to HPROF

I was used to work with HPROF in order to capture CPU time and memory usage while developing applications. For some reasons, I was forced to work with following JDK : Eclipse OpenJ9 VM AdoptOpenJDK (build openj9-0.21.0, JRE 11 Windows 10…
a-mn
  • 13
  • 3
1
vote
1 answer

Java Could not find agent library hprof on the library path

I was trying to profile CPU usage in my code and discovered the built-in hprof. https://docs.oracle.com/javase/8/docs/technotes/samples/hprof.html However, as I tested I got the following error: javac -J-agentlib:hprof=cpu=samples Main.java Error…
DTK
  • 95
  • 1
  • 9
1
vote
0 answers

How to run hprof on mac

I was trying to use hprof on mac, however, when I run the following command java -agentlib:hprof=help I get the following:- Error occurred during initialization of VM Could not find agent library hprof on the library path, with error:…
1
vote
0 answers

jhat -baseline feature does not work with HeapDumpOnOutOfMemoryError and jcmd GC.heap_dump generated baseline

I have a sudden memory leak which occurs fairly instantaneously so I must catch the dump with HeapDumpOnOutOfMemoryError. But to see what really caused this massive memory spike I need to take a baseline first, and I use jcmd $pid GC.heap_dump…
Gunther Schadow
  • 1,490
  • 13
  • 22
1
vote
1 answer

Loading objects from .hprof file back into Java program

Is it possible to load objects from an .hprof file back into a Java program? I created a heap dump using VisualVM. I'm trying to use the dump not for analysis, but as a way to load an array of objects that I had in the program at that moment back…
1
vote
1 answer

HPROF to do daily dumps

I was wondering if there's a way to "schedule" HPROF dumps so that we can have an HPROF file generated per day (or per hour depending on the size). What I am thinking was to add profiling on the production system and have it as part of their daily…
Archimedes Trajano
  • 35,625
  • 19
  • 175
  • 265
1
vote
1 answer

Profiling WebSphere with hprof for CPU SAMPLES output

I'm trying to profile WebSphere using hprof over IBM stack (J9 JVM on AIX / Linux). Specifically, I'm interested in the CPU samples output from hprof, and particularly, the startup time (from the time WS is started until it is "ready for…
valiano
  • 16,433
  • 7
  • 64
  • 79
1
vote
0 answers

What does $classOverhead mean in hprof viewer?

When I open hprof files, I can see the following: However, I don't know what this means.
Dong Wang
  • 19
  • 3
1
vote
1 answer

Jmeter SampleResult Memory Leak

I am using JMeter for performance testing and came upon a problem with OutOfMemory exception. I disabled the listeners and only configuring .jtl output as recommended on several pages. Still, the memory leak occurs. I've analyzed .hprof a little.…
Gobanit
  • 243
  • 2
  • 14
1
vote
2 answers

LeakCanary clean HPROF files

I have a project which integrated LeakCanary to detect memory leaks. I know it used HAHA to dump memory to hprof files to detect leaks. But every single time I Run app from Android Studio, it trigger dumping process and create a new hprof file…
nhoxbypass
  • 9,695
  • 11
  • 48
  • 71
1
vote
1 answer

GC and java heap analysis in Android Studio

I'm playing around in Android Studio to learn more about memory leaks. What i noticed is that, after rotating the screen a couple of times, i see multiple instances of that activity (after clicking on "Initiate GC" and "Dump Java Heap"). But when i…
DennisVA
  • 2,068
  • 1
  • 25
  • 35
1
vote
1 answer

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?
Epaga
  • 38,231
  • 58
  • 157
  • 245
1
vote
1 answer

hprof file not generated by Android application

I am debugging a Android slideshow playing app in eclipse. I am trying to generate heap dump in order to find the origin of memory leak but no hprof file is generated in the folder"/data/data/app folder/"android device I am testing. The following is…
Anndexi9
  • 141
  • 2
  • 15
1
vote
2 answers

Java HPROF heap dump missing fields?

I am using Eclipse Memory Analyser to view an HPROF file. It displays different number of fields for different instances of the same class: It seems the fields missing may never have been assigned to, but what was the value in those missing fields?…
billc.cn
  • 7,187
  • 3
  • 39
  • 79