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

Create JVM heap dump of tomcat service running on Window

While trying to create a heap dump from a Tomcat Service running as windows service, get "Access is denied" error. I started the command prompt as "Run as Administrator" Erorr while using jmap and jcmd How do I get rid of "Access is denied" or is…
Raja
  • 11
  • 1
1
vote
1 answer

Taking a heap dump leads to a crash

I have a java process running inside a container with Kubernetes orchestration. I was observing a high memory footprint in docker stats. I have -Xmx=40Gb and docker stats were reporting 34.5 GiB memory. To get a better understanding about heap…
wypul
  • 807
  • 6
  • 9
1
vote
0 answers

How to collect heap dump or Stack trace from a running typescript app?

I have a running node app built with typescript framework and I have a requirement to collect the heap dump of the running process , I haven't added the package Heapdump or V8 engine so I can't in anyway modify the app. Is there a way to collect the…
vgdub
  • 347
  • 5
  • 15
1
vote
1 answer

Where to find the heap dump in App Engine (Flex)

Our Google Appengine flex app has configured HeapDumpOnOutOfMemoryError.. we did have a few crashes due to OOM. But where can we find the heap dump?
1
vote
1 answer

How to view metaspace area in heap dump?

I got the OutOfMemoryError : Metaspace in my tomcat. And I got heap dump file of jvm. (I use java8) So I want to view only metaspace area in heap dump(hprof format), but I can't know how to do that. I use MAT(Eclipse Memory Analyzer) to analyze the…
SHRIN
  • 318
  • 3
  • 15
1
vote
2 answers

JPEG Taking up ~20x Space as Expected

I use a jpeg in my Android App that takes up 1.6 MB on disk (on OSX). I noticed garbage collector warnings in the app logs, and took a heap dump in Android Studio. Out of a retained heap size of 36.5 MB, my home page fragment (this is the one with…
user1114
  • 1,071
  • 2
  • 15
  • 33
1
vote
1 answer

why does Eclipse memory analyser not show InetSocketAddress string values?

I am analysing a heap dump using eclipse memory analyzer tool. I am trying to list the SocktChannels and their remote addresses. I am unable to see their IP Addresses and the port. I use the following OQL : SELECT x.toString() FROM…
1
vote
0 answers

Why does JVM allocated Heap size increase after heap dump?

I'm monitoring a JVM process and I notice every time I perform a heap-dump it increases my allocated heap size to that application. This is certainly not expected and it's not something I want when I do a heap dump. What is the reason and is there a…
alex
  • 1,905
  • 26
  • 51
1
vote
1 answer

Getting the average size of a specific class from a running JVM

I'm trying to get the average size of all instances of a certain class in a running JVM. I can create a heap dump with jcmd or similar but that takes a few seconds and this is a production server so I'd rather have something faster. jcmd has an…
Johnny
  • 7,073
  • 9
  • 46
  • 72
1
vote
2 answers

How to analyze heapdump with common leak suspect

The application hitting slowness issue and generate some heapdump file, the heapdump file is 1.2GB, and I need to run my ha456.jar using 8.4GB RAM only can open the heapdump. Before this, when I analyze the heapdump, I will try to see the Bigger…
Panadol Chong
  • 1,793
  • 13
  • 54
  • 119
1
vote
0 answers

Cause of thread dump : Dump Event "systhrow" (00040000) Detail "java/lang/OutOfMemoryError" "Java heap space" received

Heap memory consuming very fastly .From the analysis of heap dump we understood JAXBUtils object is top consumer.Our application uses SOAP XML request and response for third party communication and hystrix using for fault tolerance We analyzed java…
Ajithlal
  • 109
  • 1
  • 1
  • 7
1
vote
1 answer

How to pass heap parameters for non-gui distributed load test in Jmeter?

Running a distributed non-gui load test causing heap dump. Need to pass command line parameters to set heap preferences while running jmeter.
1
vote
0 answers

Debugging Memory Leak with Chrome Heapdumps in Node App

I'm trying to debug a Memory Leak in my Node/Express Application. For debugging I automatically created heapsnapshots when Memory-Size increased. Over the last 2 weeks days I ended up with a nice colleciton of heapdumps (15). But when loading these…
Seltsam
  • 854
  • 1
  • 7
  • 27
1
vote
2 answers

Java heap dump in Google App engine standard environment?

I have an Java application running on Google App Engine Standard Environment for which I want to analyse memory usage by taking heap dump. Are there any tools which can help in this task? I know of HotSpotDiagnosticMXBean which can do this, but it…
Kishu Agarwal
  • 378
  • 3
  • 8
1
vote
3 answers

Weblogic 10.3.6 generates empty heapdump on OutOfMemoryError

I'm trying to generate a full heapdump from Weblogic 10.3.6 due to an OutOfMemoryError generated by a Web Application deployed on the Server. I've setted the following start script: -XX:+HeapDumpOnOutOfMemoryError…
Alessandro C
  • 3,310
  • 9
  • 46
  • 82