As we explained earlier, heap memory is a part of the memory that is used for allocation of runtime objects, and it is shared among all application threads. This heap is classified into old and young generations, where the young generation is further divided into Eden space and two survivor spaces.
A heap dump is a snapshot of the current heap memory content, which is saved in a file. It helps us to identify memory leaks and reasons behind memory consumption. Different tools allow us to navigate and search inside the heap dump using OQL, that is, the language that can be used to query objects.
The heap dump file uses the hprof binary file format, so it usually ends with either
Because heap dump is ...