Thread Dump & Heap Dump
Thread Dump & Heap Dump
A thread dump is a dump of the stacks of all live threads. It is a way of finding out what every
thread in the JVM is doing at a particular point in time. This is useful for analyzing what an application is
doing at some point and also useful in diagnosing some kinds of 'execution' problems.
Heap Dump:
A heap dump is a "binary dump" of the full memory the JVM is using. It is a snapshot of the memory of a
Java process. Thus useful for analyzing how much of memory is being used by a JVM at a particular
point of time and also in diagnosing some memory issues, and if done at intervals it is helpful in
Note:
name>\servers and the heap dumps are saved as .phd file(portable heap dumps)
On unix/Linux machines find the process id (PID) of the hung JVM and issue kill -3 PID.
Look for an output file in the installation root directory with a name like
javacore.date.time.id.txt.