Create and open memory snapshots
Heap dumps are useful for identifying memory-related problems. You can analyze the heap to find memory leaks and locate the code that uses large amounts of memory resources.
IntelliJ IDEA allows you to analyze .hprof snapshots regardless of whether they were taken in IntelliJ IDEA or any other external tool.
Take a memory snapshot
From the main menu, select Capture Memory Snapshot.
, right-click a running process and selectWhen the snapshot is captured, it opens for analysis right away.
The snapshot also appears under Recent snapshots. From there, you can view the recent snapshots or open other snapshots that are stored elsewhere on your hard drive.
By default, the snapshots are stored in the user home directory. If you prefer another location, you can change that.
Change the snapshots location
Open the Profiler tool window.
On the Home tab, click More, then select Change Snapshot Folder.
If you are developing an IntelliJ IDEA plugin, you may want to take a memory snapshot of the IDE itself.
Take a memory snapshot of the IDE
From the main menu, select
.