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
1
vote
0 answers

How to handle when DatabindingImpl and Parcelable class retain in memory after app closed?

After app close few classes retain in memory. App application (@HiltAndroidApp), DataBindingImpl and Language class which extend Parcelable retain in memory. How to handle this issue? Please see the attached memory heap dump in memory profiler.
1
vote
0 answers

running high end iterations in karate dsl

While executing a scenario outline, I did not face any issues while executing low-end iterations on karate DSL for Data-Driven Testing using CSV input but as soon as the iterations started to cross a limit of 54, the error started popping up-…
1
vote
1 answer

VisualVM - Failed to create remote heap dump and save it

I cannot take heap dump through VisualVM. When I click "Heap Dump" button in VisualVM 2.1.2, I get the following error: What am I doing wrong? Am I missing a setting somewhere?
anecahev
  • 91
  • 1
  • 6
1
vote
1 answer

Java Heapdump - jsm -all GC.heap_dump

There is no -all option for jcmd command as per documentation. https://docs.oracle.com/javase/8/docs/technotes/guides/troubleshoot/tooldescr006.html execute jcmd with -all option. GC is not triggered and can not see [Full GC (Heap Dump Initiated…
Nitul
  • 997
  • 12
  • 35
1
vote
1 answer

Java heap dump - why so much memory is taken by Gradle

I am running a test, in a Spring boot Java application, using Intellij profiler (Async profiler). I use the profiler to investigate a possible memory leak, which the test exposes. When i analyze the dump (images are taken from Eclipse MAT) i see…
mosh
  • 404
  • 2
  • 8
  • 16
1
vote
1 answer

Taking Thread dump/ Heap dump of Azure Kubernetes pods

We are running our kafka stream application on Azure kubernetes written in java. We are new to kubernetes. To debug an issue we want to take thread dump of the running pod. Below are the steps we are following to take the dump. Building our…
chandu ram
  • 251
  • 2
  • 5
  • 19
1
vote
0 answers

Capture heap snapshot (Chrome dev tools) while running Protractor tests

I want to create an automated Protractor test that creates a heap snapshot after opening the application in Chrome and after performing a series of actions via protractor. Then to upload in Chrome dev tools in the memory tab both snapshots and…
DDana
  • 117
  • 8
1
vote
1 answer

can we find which thread is holding a lock in a heap dump file

like the jstack command has -l option, which contains lock information. Usage: jstack [-l] (to connect to running process) jstack -F [-m] [-l] (to connect to a hung process) jstack [-m] [-l]
WestFarmer
  • 669
  • 8
  • 27
1
vote
2 answers

HEAP DUMP too big to open in Eclipse MAT

I have a heap dump that is causing out of memory exception for my program, the size for the heap dump is 12GB because of which I am unable to load it in my MAT analyser, what are the alternatives I can try, or is there a way I can upload the heap…
1
vote
0 answers

I am seeing large number of `java.util.concurrent.ConcurrentSkipListMap` and `com.codahale.metrics.WeightedSnapshot`. Is there a memory leak?

I have a Java App and we are running into heap issues. We feel there could be a memory leak as heap keeps growing over time. Here is how the histogram looks like. 1: 3025303 439665320 [C 2: 904292 310612216 [B 3: …
1
vote
1 answer

How could be memory dump saved in kubernetes cluster after crashing?

When JVM crashes with OutOfMemoryError there are some options to store a dump: -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=./java_pid.hprof but what does it happen in kubernetes cluster after crashing? It seems kubernetes will clean up…
J.J. Beam
  • 2,612
  • 2
  • 26
  • 55
1
vote
2 answers

jvm create heap dump but without out of memory

I have already added JVM args : -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=C:\Temp Sometimes after I saw JVM created heapdump file but there is no OutOfMemoryError reported in the application error.log file. My question how is it possible that…
Sam
  • 244
  • 2
  • 5
  • 20
1
vote
1 answer

Openshift 3.11 Heap Dump OOM on multiple pods

On a OpenShift 3.11 running app, I am trying to get a HeapDump because I suspect an OOM on my pods. My app runs on 14 replicas and i want to append the following configuration to the Java Options -XX:+HeapDumpOnOutOfMemoryError…
natrium
  • 55
  • 1
  • 8
1
vote
1 answer

Can you spot the memory leak in this node.js function?

My deployed app has a function that makes a call to a database whenever the app.get("/") route is called, or when the user adds or deletes a file to the database. My service is being limited by my web host when this function is called, because it…
PsiKai
  • 1,803
  • 1
  • 5
  • 19
1
vote
1 answer

HeapDumpOnOutOfMemoryError doesn't dump heap when run inside docker container

I am running a Spring Boot service inside a Docker container and the serivce POM.xml file has this plugin org.springframework.boot spring-boot-maven-plugin
Deepak Gopal
  • 155
  • 4
  • 18