Questions tagged [heap-dump]

A heap dump is a snapshot of the memory of a Java process.

A heap dump is a snapshot of the memory of a Java process.

The snapshot contains information about the Java objects and classes in the heap at the moment the snapshot is triggered. Because there are different formats for persisting this data, there might be some differences in the information provided. Typically, a full garbage collection is triggered before the heap dump is written, so the dump contains information about the remaining objects in the heap.

All Objects: Class, fields, primitive values, and references.

All Classes: Class loader, name, super class, and static fields.

Garbage collection roots: Objects defined to be reachable by the JVM.

Thread Stacks and Local Variables: Call-stacks of threads at the moment of the snapshot, and information about local objects on a frame by frame basis.

A heap dump does not contain allocation information, therefore you cannot work out what created the objects or where the objects were created.

Source

485 questions
0
votes
0 answers

Capture C reachable heap state at call sites (not stats!)

I would like to capture what is, in effect, a heap dump at procedure call time in a C (or C++) program. However, I am interested in what is heap-reachable from global variables and arguments. This might be done by using some gdb command that…
Nikos
  • 219
  • 1
  • 8
0
votes
1 answer

How To Use android:largeHeap:true In API <= 10 in Android

how to use android:largeHeap:true In AndroidManifest.xml cIn API Level 10 And Bellow ? It Defined In API 11 And Above.
Hossein Kurd
  • 3,184
  • 3
  • 41
  • 71
0
votes
1 answer

Getting heap dump after successful process

I am using eclipse, i want to get heap dump after my program finishes its process successfully. My program does not get heap space error or something but still i want to look at heap dump with eclipse memory analyzer. Actually what i want is a heap…
mft
  • 319
  • 1
  • 5
  • 19
0
votes
1 answer

how to discover where my app opens more files (Too many open files)?

I did a script to execute every 10 minutes and when the files open on my Java app is greater than 10000 it will execute a jmap command to give to me a heapdump. My intention is to discover which class of my app is not closing the files or where…
Felipe Gutierrez
  • 525
  • 1
  • 9
  • 20
0
votes
1 answer

Add and name a bookmark jprofiler

I can see the option to "Add Bookmark" in Jprofiler. I would like to name the bookmark. The bookmark should be in custom format. Example "100LoggedinUsers", "200LoggedinUsers". Looking at the bookmarks, I should be able to make sense as to why the…
TheMonkWhoSoldHisCode
  • 2,182
  • 3
  • 26
  • 40
0
votes
1 answer

Heap dump in visualvm glassfish

I have a webservice on amazon ec2 running on glassfish 4 server, I tried to connect visualvm to the server but it were impossible, so I followed this tutorial (http://looksok.wordpress.com/2012/02/10/remote-use-of-visualvm-with-xming/), I installed…
RoberV
  • 587
  • 5
  • 22
0
votes
1 answer

NFS mount points are going off/NFS compound failed for server mashost

We have an application in solaris during specific test case we will generate heap dump which will be written in to the server at specific path during this case we are getting following error in trace file java.lang.OutOfMemoryError: Java heap…
rohith
  • 163
  • 4
  • 16
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
0 answers

Apache poi getColumn width is bringing the instance down

My instances go down because of heap space issue frequently and when I take the thread dump it is always failing at Current CompileTask: **C2:8428** ! //The number will vary …
Hari
  • 237
  • 1
  • 10
  • 23
0
votes
1 answer

JAMON Memory Leak

I am using JAMON for application analysis. My websphere administrator has reported memory leakage in the application. And to my surprise most of the memory leakage is reported in JAMON API. Scenario is that, our production memory usage keep on…
user3647434
  • 69
  • 1
  • 4
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
1 answer

Testing the JVM arguments of WebSphere

I have added the following JVM arguments to Application Server in WebSphere: -XX:+PrintHeapAtGC -XX:+HeapDumpOnOutOfMemoryError What is the way to test if these arguments are working?
Shitu
  • 821
  • 5
  • 12
  • 20
0
votes
1 answer

what is the purpose of "(jlong)(ptrdiff_t)(void*)" in heapViewer.c(a JVMTI Demo)?

Below is the demo code(): /* Typedef to hold class details */ typedef struct { char *signature; int count; int space; } ClassDetails; .... /* Tag this jclass */ err = (*jvmti)->SetTag(jvmti, classes[i],…
Ridox
  • 1,073
  • 13
  • 18
0
votes
1 answer

How to read a Java heap dump by command line (No GUI)

I've ssh'ed into a machine and am running a java program. After quit a while, I get a heap dump and have sent that into a file java_pid28356.hprof How can I read from that file with just command line tools to find what is causing the dump?
user3635219
  • 21
  • 1
  • 3
0
votes
1 answer

Dynamically capturing heap usage stats collection

I want to programatically capture the statistics of java application for all its objects present in heap and their usage. My requirement is not to analyze the heap dump with MAT, but dynamically take snapshot after every specified period with a…
tparg
  • 9
  • 2