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
2
votes
4 answers

How can I disable the Systemic GC that occurs when I trigger a heap dump in WebSphere?

I want to capture the objects that are getting collected during the System GC that occurs when I generate a heap dump. Is there a way to disable that System GC?
Greg
  • 1,126
  • 2
  • 11
  • 26
2
votes
2 answers

Thread getting locked at "www.protocol.http.HttpURLConnection"

My threads are getting locked while calling new URL(url).openConnection(); A part of thread dump is: sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1195) - locked <0x00000007056a2498> (a…
instanceOfObject
  • 2,936
  • 5
  • 49
  • 85
2
votes
1 answer

jstack Can't create thread dump - Thread 745: (state = BLOCKED) Error occurred during stack walking)

When we generate a thread dump for JBoss 4.2.3.GA using $JAVA_HOME/bin/jstack on Linux... we get this error: Can't create thread dump - Thread 745: (state = BLOCKED) Error occurred during stack walking) Any ideas why this might be happening? I…
Nicholas DiPiazza
  • 10,029
  • 11
  • 83
  • 152
2
votes
2 answers

generate heap dump reduces dramatically after performing manual GC

this is my first post in stack overflow forum. we are recently experiencing some Java OOME issues and using jvisualvm, yourkit and eclipse mat tools able to idenify and fix some issues... one behavior observed during analysis is that when we create…
guru
  • 21
  • 3
2
votes
1 answer

How does one analyze a heap dump on Android?

I'm getting a lot of "dalvikvm: GC_CONCURRENT..." messages in logcat, and googling around resulted in me downloading the Eclipse Memory Analyzer... I've figured out how to use it, but I don't know how to understand it. I've never dealt with memory…
Kalina
  • 5,504
  • 16
  • 64
  • 101
1
vote
2 answers

Any way to create a heap dump/histogram on OutOfMemoryException in C#?

Back in the Java world I was able to specify that the JVM should create a heap dump file on the first OutOfMemoryError. Is there anything equivalent in C#? A heap dump would be ideal but I'd settle for a histogram. If there's no way to do this…
chillitom
  • 24,888
  • 17
  • 83
  • 118
1
vote
4 answers

Java program is consuming lot of memory (growing 1.5 times of Xmx)

I have one java program (doing lot of in memory operations). I have allocated 10GB java heap to the process (-Xmx). Total memory of the system is 30 GB. Java program is actually taking almost 24 GB of memory (I can see from svmon output). Java heap…
Nike
  • 312
  • 1
  • 2
  • 9
1
vote
0 answers

Heaptrack is giving empty heap dump

During my analysis of the memory for my service , getting this warning and its generating a empty zip file even after my service does many activities and lot of memory allocate/deallocate. (I' am running heaptrack on my server service, I sent all…
1
vote
0 answers

Why the heap Memory from NativeMemoryTracking and jstat is not Similar?

I have a program running in an ec2 Linux machine that uses Apache Arrow ( which makes use of Netty Direct Buffers). To track the memory footprint of the application, I have launched the application with -XX:NativeMemoryTracking=detail flag. However,…
Somesh Dhal
  • 336
  • 2
  • 15
1
vote
0 answers

How can I analyze heapdump fetched from spring boot admin?

I have an Spring boot application that is running in production, but we encountered some memory problems. I've got heapdump with the help of Spring Boot Admin, then I try to open this file with Eclipse memory analyzer but it fails and logs this…
1
vote
2 answers

kubernetes didn't create heapdump when pod is restarted

I have a problem. There is preStop option in manifest file and OOMKilled was happened. pod was restarted but no heapdump is created. lifecycle: preStop: exec: command: ["/tmp/preStop.sh"] heapdump works when I manually terminate the pod. so I wonder…
user2286858
  • 59
  • 1
  • 5
1
vote
0 answers

JVM heap dump without trace information: "Unresolved Name"

There is a memory issue on our production environment. We're running under OpenJDK 14.0.1+7 with -XX:+HeapDumpOnOutOfMemoryError I've loaded created hprof file into Eclipse Memory Analyzer it shows some problems but without class names information…
Artem Zyuzko
  • 131
  • 3
1
vote
1 answer

Java OOM Automatic Heap Dump File Name in K8S

An answer to this question is available at https://stackoverflow.com/a/34077693/1525813 but not from a Kubernetes perspective. For my k8s app, I specify the JVM options as an environment variable in the k8s YAML (below). This has been giving issues…
RGB314
  • 177
  • 1
  • 4
  • 15
1
vote
0 answers

Automatically copy Java heapdump from Kubernetes to s3

We have running Java applications inside Kubernetes pods. In case of Java OOM heap dump generated on the local pod's storage, I want to automatically copy heapdump to s3, before pod restart or k8s tigger liveness. Now there are multiple…
Mudasar Yasin
  • 579
  • 3
  • 11
  • 20
1
vote
1 answer

spring boot actuator not showing the heap dump option

I have added the spring boot actuator jar in the existing spring boot app org.springframework.boot spring-boot-starter-actuator I am able to see the actuator urls list…
veer7
  • 20,074
  • 9
  • 46
  • 74