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

Windbg how to find size of objects and name of the objects during debug or from dump?

I do work on some memory leak and I have really confused about how can I found name of the objects and them actual size from attached process to windbg(This java process). I have like peace of this from memory tab(Real-16 Byte): 77be4109 …
0
votes
1 answer

How to take memory snapshots at regular interval for jrockit?

We are running some heavy deployments on weblogic setup and it takes around an hour. During that time, we want to take a memory snapshots/heap dumps to see how much headroom we have wrt memory to avoid crash. Is there any optional jvm arg that we…
dganesh2002
  • 1,917
  • 1
  • 26
  • 29
0
votes
0 answers

Java heap dump - java.lang.Thread is the top component

I have got the heap dumps by using jmap. I loaded it in eclipse MAT. java.lang.Thread is the top consumer. When I clicked on the immediate dominator, it shows a ArrayList with 17K objects(org.jboss.security.SecurityAssociation$SubjectContext) in…
user1631072
  • 51
  • 2
  • 9
0
votes
2 answers

Capture and Analyze Core Dump on Running App Server

How can I capture a Core Dump and analyze the Java heap on an application running in Apache Tomcat?
emdhie
  • 379
  • 1
  • 3
  • 10
0
votes
1 answer

What is the References Window in the Heap Walker of Netbeans Profiler for?

Below is a picture of the References Window from the Heap Dump of a JavaFX application profiled using the Netbeans Profiler. Can anyone tell me what this means? What are in the "field", "type", and "value" columns? Also, what does the blue and red…
damat-perdigannat
  • 5,780
  • 1
  • 17
  • 33
0
votes
2 answers

Processing Arrays

An Example demonstrating Passing an array as argument #include #include using namespace std; typedef unsigned char U8; #define MAX_LEN 20 void func1(U8* arr) { printf(" Passing Base address Element1 = %s\n",arr); } …
Prag Rao
  • 1,411
  • 3
  • 11
  • 10
0
votes
1 answer

Find contents of key value pair in a jvm heap dump?

Im analyzing a heap dump using memory analyzer tool .From the dominator tree I've selected the class with highest retained memory (around 47%). Selected objects with out going reference and i see there is a hash map entry with more than 1GB of…
greenH0rn
  • 65
  • 2
  • 9
0
votes
2 answers

JMAP command and error of debuggee is 64 bit

I need heap dump of the web logic server that's running on IST environment. I don't have access to that so I have asked support team to do that. The command that's executed is as following on UNIX: ./jmap -heap:format=b 19153 When support team…
Ketan
  • 738
  • 2
  • 9
  • 20
0
votes
2 answers

How is Heap dump file created after JVM crash

When JVM crashes, Heap dump file(hs_err_pidXXXX.log) is created in the working directory. I want to know who creates this file. JVM crashed means it has terminated abnormally. So it will definitely not create this file. So how is this file…
Aniket Thakur
  • 66,731
  • 38
  • 279
  • 289
0
votes
1 answer

jmap dump not working

no exception is thrown but I still cant find the dump.bin file in my desktop folder, is my path wrong? public static void dumpHeap() { System.out.println("dumping data"); String name =…
user494461
0
votes
1 answer

DataNucleus Memory/Cache Handling for large update/insert

We are running application in Spring context using DataNucleus as our ORM mapping and mysql as our database. Our application have a daily import job of some data feed into our database. The size of the data feed translate into around 1 millions row…
Gavy
  • 407
  • 3
  • 8
0
votes
1 answer

JVM Heap Dump Analysis point to sun.awt.windows.WToolkit?

I am analyzing memory leak in our application. After some investigation using Eclipse Memory Analyzer I recognized that the root which 'keeps' all references is ` sun.awt.windows.WToolkit And now I don't know how to interprate this result. I…
0
votes
0 answers

Java heap dump has many enormous arrays

I'm analyzing the memory usage of my program, and I realized it was using 50 mb of memory... what could it possibly need all that for? (the program is fairly simple, it's not hello world but it's only 937 non whitespace lines). So I put it into…
durron597
  • 31,968
  • 17
  • 99
  • 158
0
votes
1 answer

How can i take a thread dump exactly when many outofmemory error occur?

I had run a jvm process, one day it encountered the outofmemory exception. In the log I have found many outofmemory errors:: -bash-3.00# grep OutOfMemoryError AdminServer.log00399 java.lang.OutOfMemoryError: Java heap…
tdy218
  • 53
  • 1
  • 7
0
votes
1 answer

Take a heap dump during Android integration tests when Out Of Memory error occurs

Our tester at work can't make our app get an OOM error by testing by hand, but when we run our integration tests, after about 50 or so tests we get an OOM error and the rest of the tests don't finish. I'd like to dump the heap when we get OOM during…
Christopher Perry
  • 38,891
  • 43
  • 145
  • 187