Browsing a Heap Dump

See Also

A captures profiling data at a specific point in time. You can load and browse any heap dump saved on your local system. You do not need to be running a profiling session to load and browse a heap dump.

  1. Choose Profile > Load Heap Dump in the main menu.
  2. Locate the heap dump on your system and click Open.

When you load a heap dump, the heap dump opens in the HeapWalker in the Heap window.

The default location for heap dump files (the file name is appended with .hprof) that you save to your project is in the <PROJECT_ROOTDIR>/nbproject/private/profiler folder.

The HeapWalker enables you to evaluate Java heap contents and search for memory leaks. You can view the following:

Browse Heap Dump

When the heap dump is loaded and open in the Heap window, use the following tabs to view information about the heap dump:

Comparing Heap Dumps

You can compare two heap dumps to view the differences between the the heap at two different points in time. You do not need to be running a profiling session to compare heap dumps.

  1. If no heap dump is open in the Heap window, choose Profile > Load Heap Dump to open a heap dump.
  2. Click the Classes tab in the Heap window.
  3. Click Compare with another heap dump at the top of the Classes tab.

    The IDE opens the Select Heap Dump to Compare dialog box.

  4. Select a heap dump that is saved in your project or select From file and click Browse to locate a heap dump that is saved outside of your project on your local system.
  5. Click OK.

When you click OK, the IDE will update the Heap window to display the differences between the two heap dumps. You can click reset view to display the initial heap dump.

See Also
Taking a Heap Dump
Analyzing a Heap Dump Using Object Query Language (OQL)
Working with Live Profiling Results

Legal Notices