Process and Memory Management Commands on Cisco IOS-XR Software
show memory heap
SMR-288
Cisco IOS-XR System Management Command Reference
show memory heap
To display information about the heap space for a process, use the show memory heap command in
EXEC mode.
show memory heap [allocated] [dllname] [failure] [free] [summary] job-id
Syntax Description
Command Modes EXEC
Command History
Usage Guidelines To use this command, you must be in a user group associated with a task group that includes the proper
task IDs. For detailed information about user groups and task IDs, refer to the Configuring AAA Services
on Cisco IOS-XR Software module of the Cisco IOS-XR System Security Configuration Guide.
Examples The following is sample output from the show memory heap command, specifying only the job
identifier 111:
RP/0/RP1/CPU0:router> show memory heap 111
Malloc summary for pid 16433:
Heapsize 16384: allocd 6328, free 8820, overhead 1236
Calls: mallocs 144; reallocs 73; frees 5; [core-allocs 1; core-frees 0]
Block Allocated List
Total Total Block Name/ID/Caller
Usize Size Count
0x000008c1 0x000008cc 0x00000001 0x7c018a10
0x000005ac 0x00000974 0x00000079 0x7c02b9e0
0x000004f0 0x000004f8 0x00000001 0x7c02b6fc
0x00000080 0x00000088 0x00000001 0x7c01936c
0x00000034 0x00000048 0x00000001 0x7c018954
0x00000024 0x00000030 0x00000001 0x7c019278
0x00000018 0x00000020 0x00000001 0x7c019b2c
0x00000008 0x00000010 0x00000001 0x7c017178
0x00000008 0x00000010 0x00000001 0x7c00fb54
0x00000008 0x00000010 0x00000001 0x7c00fb80
0x00000008 0x00000010 0x00000001 0x7c00fbb8
allocated (Optional) Displays a list of all allocated heap blocks.
dllname (Optional) Displays heaps with DLL names.
failure (Optional) Displays a summary of heap failures.
free (Optional) Displays a list of all free heap blocks.
summary (Optional) Displays a summary of the information about the heap space.
job-id Information for the process associated with this job identifier.
Release Modification
Release 2.0 This command was introduced.