
There is no overhead involved unless a OOM actually occurs. If you run your application with the VM flag -XX:+HeapDumpOnOutOfMemoryError a heap dump is written on the first Out Of Memory Error. Depending on your scenario, your OS platform and your JDK version, you have different options to acquire a heap dump. Those heap dumps are written by Sun HotSpot and any VM derived from HotSpot. The Memory Analyzer can work with HPROF binary formatted heap dumps.

Getting a Heap Dump HPROF dumps from Sun Virtual Machines These pages Querying Heap Objects (OQL) OQL Syntax MemoryAnalyzer/OQL also explain some of the ways to use Object Query Language (OQL) You will find there a collection of presentations and web articles on Memory Analyzer, which are also a good resource for learning. See the download page for installation instructions.īoth the Basic Tutorial chapter in the MAT documentation and the Eclipse Memory Analyzer Tutorial by Lars Vogel are a good first reading, if you are just starting with MAT.Ĭheck MemoryAnalyzer/Learning Material. find memory waste, like redundant String objects, empty collection objects, etc.compute paths from the garbage collector roots to interesting objects.


