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 page (Overview subpage) of the Profile dialog
box, select the Memory Leak Analysis - Timed heap dumps profiling
set.
- 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 Edit, then Next,
to open the Automatic Leak Detection page.
- 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 Finish.
- 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.