A java heap/CPU profiling tool
Questions tagged [hprof]
142 questions
0
votes
0 answers
Remote JVM profiling using API
JVisualVM can connect to a remote JVM through JMX.
I need to collect CPU sampling data from remote JVMs the way JVisualVM does. Looks like JVisualVM is collecting sampling data from the exposed MBeans on remote JVMs.
Which classes are relevant in…

RRM
- 2,495
- 29
- 46
0
votes
1 answer
Clear image resource from memory after nullifying
I have an Android Activity that needs to be held in memory for the lifetime of the app (don't ask why). The background of this Activity takes up about 12MB of memory. I want to free up this memory space when this Activity isn't being viewed. I tried…

The Hungry Androider
- 2,274
- 5
- 27
- 52
0
votes
1 answer
Memory needed for opening heap dumps .hprof
If I use any Java application like VisualVM to open a heap dump (hprof file), would I need more heap memory for VisualVM than hprof file size?
In my case, hprof is 4Gb file and VisualVM has 2 GB Heap size and it's fails to properly load HPROF file.

Sachin Verma
- 3,712
- 10
- 41
- 74
0
votes
1 answer
Acquiring heap dump from a Java process to debug memory leaks
Followed the below process but I'm unable to analyze the dump generated.
I tried to get heap dump from the Java process running on Linux box using "jmap -F -dump:format=b,file=/tmp/test.hprof "
Ctrl+C after a span of 60 seconds
Heap dump generated…

Sobhan
- 21
- 1
- 10
0
votes
0 answers
Android Studio Heap Dump Causing Network Disconnect
I'm debugging an inherited codebase/VOIP app while the Android client is connected to the network. The Android client is a desk phone and connected to network via ethernet. I am using the Android Monitor in Android Studio to look for memory leaks.…

Electro-Bunny
- 1,380
- 2
- 12
- 33
0
votes
0 answers
Why change time of historical .hprof file has been changed
As I mentioned in title, I am wondering about the changing reason that changing time of my historical .hprof files has been changed.
The scenario of my problem is:
I have a .hprof file generated several month ago because of memory leaking occurred,…

Qilei Ren
- 53
- 1
- 1
- 9
0
votes
1 answer
How can I find which objects take most of the memory in android app?
I am trying to see which objects take most of the memory in my app.
Using Android's studio Android->Memory tab I can see how the memory increases but I can't see which objects occupy how much memory.
I used DDMS to get an hprof and also did a start…

Jim
- 18,826
- 34
- 135
- 254
0
votes
1 answer
"can not get class data for sun/java2d/Disposer"
I have used a script successfully in the past and the JDK did not change, but for some reason in this instance I was unable to convert a core dump to a hprof;
Attaching to core my.core from executable /opt/jdk1.8.0_31/bin/java, please…

user1133275
- 2,642
- 27
- 31
0
votes
0 answers
Converting a .txt into a .hprof
I have a .txt with all the information of the HPROF which I need to analyse, the problem is that when opening it with for example Memory Analyser or any other tool with the same use I get the following error:
Invalid HPROF file header.…

Ares
- 1
- 1
0
votes
0 answers
Trace memory leaks in android
I'm trying to trace memory leaks in my app. I have an Activity in which I can switch between 7 Fragments. I'm instantiating the Fragments in the Activity's onCreate() and using the same instances when switching between them.
I'm using Picasso to…

timemanx
- 4,493
- 6
- 34
- 43
0
votes
0 answers
local variables in java heapdump
I'm trying to analyze Java heap dumps in the case an exception is thrown.
So e.g. for a method
void foo(){
int[] a = new int[100];
//do stuff
throw new RunTimeException();
}
I create a heap dump and try to access the values of the…

skappler
- 722
- 1
- 10
- 26
0
votes
1 answer
Contents of Android heap dumps
Android heap dumps contains information about running methods and the local parameters of the methods?
Are the method parameters stored in the heap?

user3504453
- 1,541
- 1
- 10
- 10
0
votes
2 answers
java.lang.OutOfMemoryError - One instance of "org.apache.jasper.compiler.JspRuntimeContext"
I am getting java.lang.OutOfMemoryError: PermGen space, upon analyzing the hprof, I found that
One instance of "org.apache.jasper.compiler.JspRuntimeContext" loaded by
"org.jboss.mx.loading.UnifiedClassLoader3 @ 0x772dd7f80"
occupies…

Vineet Singla
- 1,609
- 2
- 20
- 34
0
votes
1 answer
Where is the hadoop task's hprof data stored when using oozie workflow - measuring memory usage
I've followed the instructions in the hadoop definitive guide (also mentioned here How to check memory footprint of Map Task in Hadoop). However, after the task is finished, I can't find any data to look at.
In the book it says that the data is…

hba
- 7,406
- 10
- 63
- 105
0
votes
0 answers
Profiling Hadoop Reduce tasks using hprof
I'm trying to profile reduce tasks on a cluster using
conf.setBoolean("mapred.task.profile", true);
conf.set("mapred.task.profile.params",…

Yevgen Yampolskiy
- 7,022
- 3
- 26
- 23