Instead of collecting heap dumps to analyze memory leaks,
you can import heap dumps collected outside of the Workbench.
Two heap dumps must be available for a process
in one of the available formats.
For a list of available formats,
select , and then select Heap
Dump from the Import dialog box. Select a format in
the list to display additional information.
To import heap dumps:
- In the Profiling and Logging perspective, right-click
in the Profiling Monitor and, from the pop-up menu, select Import
. . .
- In the Import dialog box, select Heap dump and
click the Next button.
- From the list of available formats, select the format
of the heap dumps that you are importing and click the Next button.
- Select a directory from the list of Selected
Directories.
- Check the checkboxes for the heap dumps from the list
of Selected Heap Dump Files. The
two heap dumps must be for the same process. For most heap dumps,
the process ID is included in the file name. For IBM(C) heap dumps,
it is the third and final group of digits, immediately before the
file extension; for example, in the file heapdump.20041201.124047.234.txt,
234 is the process ID.
- Indicate the location for the imported resources if different
from the default and click the Finish button. The imported heap dumps appear in the Profiling monitor as
profiling resources.