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
1 answer

java, setting -XX:HeapDumpPath directory to user.home

I'm trying to control where where my heap dumps go on out of memory exceptions using -XX:HeapDumpPath My java process doesn't have permission to write to the current working directory, so I'm trying to specify the user.home directory. I can't know…
0
votes
2 answers

How to determine which JVM is attached to the running application?

I want to build a workflow in BMC Atrium Orchestrator which takes the heap dump of particular java process. The flow which I have to follow is : 1. Input the application name. 2. Find the JVM which is being used by the entered application. 3. Take…
APMFreak
  • 1
  • 1
  • 3
0
votes
2 answers

Interpret GC logs from jboss instance

We are having a memory leak in production and my GC log is below. Clearly you can see how its an issue. However, i am unable to get a heap dump because by the time we find out its having issues its too late and the heap dump fails (even with the -F…
Scoota P
  • 2,622
  • 7
  • 29
  • 45
0
votes
2 answers

Linux: Java web application is running out of memory and not responding to requests but not throwing OOM?

On Linux server vm arguments (Xmx=3GB, Xms=3GB) have been specified for application. By seeing the heap dump it can be seen that more than 2.9 GB memory has been utilized. 32 MB memory is there for unreachable objects. But the application did not…
Raju Singh
  • 137
  • 1
  • 9
0
votes
1 answer

heap size while scrolling in listView

In list-view while scrolling through List-view heap-size is continuously increasing, it reaches to 64MB on Galaxy S3 device and application gets crashed. public class GAdapter extends BaseAdapter implements Filterable { private List
0
votes
1 answer

what's this file in java? core.26416, heap dump or thread dump?

core.26416 ,what's this file in java? which tool can anaylst it? what's the extension for java thread dump , heap dump and core? what's the difference between thread dump/heap dump and core dump?
jiafu
  • 6,338
  • 12
  • 49
  • 73
0
votes
2 answers

Runnable jar file without ant java task - how is this possible?

I've inherited some code from a previous developer, which gets built using Ant into an executable jar file that runs by double clicking. The application runs, but under some conditions crashes with an OutOfMemoryError. To investigated this, I'd like…
Y.S.
  • 1
0
votes
1 answer

Heap dump not generated

I have already added -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath="C:\hd.hprof" to Default VM arguments but I don't know why the heap dump file not generated when OutOfMemoryError thrown. Can anyone halp me? More details: My JRE version is…
Wayne
  • 6,361
  • 10
  • 46
  • 69
0
votes
1 answer

GWT memory leak link to request builder( generated by GWTP Action Server Call )

Found in GWT Release: GWT - 2.4.0 Encountered on OS / Browser : Windows 7 with IE9 Detailed description (please be as specific as possible): Out Of Heap exception occurred after left GWT App to run overnight, Diagnosis with MemoryAnalyzer, found…
Ben.Yan
  • 118
  • 4
  • 13
0
votes
1 answer

JMAP -dump not excuted on java: runtime.exec()

i have tried to execute the 'jmap -dump:format =b; file" command in runtime.exec(), but it wont execute where other commands like date, pwd are working fine. can anyone know why? public static void commands(String s) { …
Loga
  • 658
  • 1
  • 7
  • 17
-1
votes
1 answer

Java code optimization, Heap size constraint (use less memory)

I am facing of memory exception while running this code and the constraint is heap size. Can anyone suggest if there is a way to optimize this code further? public class getCustomerList { public static List retrieve() throws…
Nick B
  • 47
  • 8
-1
votes
3 answers

Why all java utils for dumping heap are not working? How to dump heap?

I'm tired to trying to dump java heap when I need it. Any time when I could do that none of utils are not able to do that. I'm trying jmap, jvisualvm, jconsole, jmc and none of them not able to do that easy task -- just dump the *** heap! How people…
Mingun
  • 139
  • 1
  • 7
-1
votes
1 answer

Generating heap dump from docker container running in kubernetes cluster

We are using hazelcast-enterprise:4.1.1 docker image and deployed three nodes in kubernetes cluster, how to generate the heap dumps or thread dumps from these servers running in a kubernetes cluster.
-1
votes
1 answer

[ZGC]Why the memory used is much larger than the dump file?

Here is some information: Linux version 3.18.6-2.el7.centos.x86_64、openjdk-11.0.2 using ZGC and -Xms16384M -Xmx16384M top command shows : 17.013t VIRT, 0.016t RES, 0.015t SHR, 35.2 %CPU, 13.0%MEM heap dump size is 83M(using jcmd command) VisualVM…
huaiyu
  • 1
  • 1
-1
votes
1 answer

Understanding GC: Allocation failure and filled OldGen with temporary String objects

I have followed up with a couple of good questions and their answers but I still have a doubt. This is what I understand and would like to see if the understanding is correct. GC (Allocation Failure) kicks in whenever new memory is to be allocated…
instanceOfObject
  • 2,936
  • 5
  • 49
  • 85
1 2 3
32
33