Timed heap dumps are captured at intervals that you can
specify in the Memory Leak Analysis - Timed heap dumps profiling
set.
To collect data using timed heap dumps:
- In the Profiling tab (Overview subtab) of the
Profile dialog box, select the Memory Leak Analysis -
Timed heap dumps profiling type.
- If you want to adjust the parameters for the profiling
run, including the times for capturing heap dumps and the threshold
value for reporting leak candidates, do the following:
- Click the Edit button
to open the Edit Profiling Set dialog box.
- Select the Automatic Leak Detection profiling
type. (Note that when you collect leak detection data,
you cannot collect other types of profiling data.)
- Enter a value for Seconds to wait before
capturing first heap dump. The default is 600 seconds.
- Enter a value for Seconds after first heap
dump before capturing last heap dump. The default, again, is
600 seconds.
- Set the threshold for reporting leak candidates to
a value between 1 and 99. The default value is 20. Decreasing the
threshold value means that you display more potential leaks.
- Click the Finish button.
- Click Profile to start your application.
- Let your program run. The Leak Candidates view displays
the status of the profiling run, and reports when you can start
analysis. You can now terminate or detach your application.