Acquire and Compare Heap Dumps

MAT can acquire dumps from processes running on the same machine.

Acquire a heap dump

The File > Acquire Heap Dump ... menu item lists running Java processes on the machine. Select one of the processes, for example one with Memory Analyzer in the description and click Finish. If no processes appear, or fewer than expected then use the Configure ... to control how processes are found.

Analyze the heap dump

Continue the analysis of the new heap dump as shown in other cheat sheets.

Acquire a second heap dump

The File > Acquire Heap Dump ... menu item lists running Java processes on the machine. Select the same process as before, for example one with Memory Analyzer in the description and click Finish. If no processes appear, or fewer than expected then use the Configure ... to control how processes are found.

Comparing snapshots

Use the Leak Identification > Compare Snapshots Leak Report to run a report comparing two snapshots. For the baseline, chose the first snapshot generated above. Next, click Finish, wait for the report to complete then read the report.