Tuesday, October 18, 2011

Heap Dumps and Java Dumps

Heap Dump: 
Heap dump is a text file which keeps record of all objects in the java heap. It contains the information like size and address of all objects, as well as the addresses of all objects that it references.
Heap dump is nothing but a snap shot of our JVM’s Heap memory,contains all active java objects and their activities which object doing what and how much memory it is occupying.
whenever OutOfMemoryException occurs Websphere application Server creates heap dump in profile's home directory.

Thread Dump: 

A Java dump, also known as a Java core, Java thread dump, or a thread dump is a file that contains the information about thread like active thread, hung thread, dead lock, runnable and inactive thread info.
The thread dump is a snapshot of exactly what's executing at a moment in time.



Thread dumps, or core files, are generated with names in this format:

javacore.date.time.id.txt
For example: javacore.20070919.204717.27050.txt

No comments:

Post a Comment