O'Reilly logo

Java EE 7 Performance Tuning and Optimization by Osama Oransa

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Dealing with memory heap dumps

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 .hprof or .bin.

Tip

Because heap dump is ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required