show memory debug leaks

show memory debug leaks

To display detected memory leaks, use the show memory debug leaks command in privileged EXEC mode.

show memory debug leaks [chunks largest lowmem summary]

Syntax Description

Command Modes

Command History

chunks

(Optional) Displays the memory leaks in chunks.

 

 

largest

(Optional) Displays the top ten leaking allocator_pcs based on size, and the

 

total amount of memory they have leaked.

 

 

lowmem

(Optional) Forces the memory leak detector to work in low memory mode,

 

making no memory allocations.

 

 

summary

(Optional) Reports summarized memory leaks based on allocator_pc and

 

size of the memory block.

 

 

Privileged EXEC

 

 

 

Release

Modification

 

 

12.3(8)T1

This command was introduced.

 

 

12.2(25)S

This command was integrated into Cisco IOS Release 12.2(25)S.

 

 

12.2(33)SRA

This command was integrated into Cisco IOS Release 12.2(33)SRA.

 

 

Usage Guidelines If no optional keywords are specified, the show memory debug leaks command invokes normal mode memory leak detection and does not look for memory leaks in chunks.

The show memory debug leaks chunks command invokes normal mode memory leak detection and looks for leaks in chunks as well.

The show memory debug leaks largest command displays the top ten leaking allocator_pcs and the total amount of memory that they have leaked. Additionally, each time this command is invoked it remembers the previous invocation's report and compares it to the current invocation's report. If there are new entries in the current report they are tagged as “inconclusive.” If the same entry appears in the previous invocation's report and the current invocation's report, the inconclusive tag is not added. It would be beneficial to run memory leak detection more than once and to consider only the consistently reported leaks.

The show memory debug leaks lowmem command forces memory leak detection to work in low memory mode. The amount of time taken for analysis is considerably greater than that of normal mode. The output for this command is similar to the show memory debug leaks command. You can use this command when you already know that normal mode memory leak detection will fail (perhaps by an unsuccessful previous attempt to invoke normal mode memory leak detection).

The show memory debug leaks summary command reports memory leaks based on allocator_pc and then on the size of the block.

 

 

Cisco IOS Configuration Fundamentals Command Reference

 

 

 

 

 

 

 

July 2008

 

 

CF-719

 

 

 

 

 

Page 43
Image 43
Cisco Systems 12000 series manual Show memory debug leaks chunks largest lowmem summary, Chunks, Largest, CF-719