Debugging Dynamic Memory Usage Errors Using HP WDB (5900-1474; WDB 6.2; January 2011)

Table 5 Commands for Incremental Heap-Profiling
DescriptionCommand
Starts the incremental heap growth profile. All
allocations prior to the execution of this command
are ignored. If incremental heap growth profile is
already on, executing this command resets the
counters and starts a fresh collection. The interval is
specified in seconds.
set heap-check interval <nn>
Enables you to specify the number of intervals for
which WDB must collect the incremental heap
growth. The default value is 100. Every repeat of
the interval tracks heap allocation during that
interval.
set heap-check repeat <nn>
Creates a detailed report of the heap growth. The
data for each interval has the start and end time of
the interval. If a filename is specified, the detailed
report is written in the specified file.
info heap-interval <filename>
When incremental heap profile is used the heap
growth data is internally stored by WDB in a
temporary file. The heap growth data gathered
during each interval is appended to this file . If the
session is very long, this file may become very large.
This command discards the data existing in the file
and creates a new data file. If the command is
executed, the user cannot see the old data in the file.
set heap-check reset
Memory-Debugging Features of WDB 17