Symptom
Allocated Memory in use showing very high ( invalid values ). Please check the output below :
------------------ show memory ------------------
Free memory: 6622859551 bytes (74%)
Used memory: 28697627072 bytes (26%)
------------- ------------------
Total memory: 8988893471 bytes (100%)
------------------ show memory detail ------------------
Free memory heap: 902034752 bytes (10%)
Free memory system: 6622859551 bytes (74%)
Used memory:
Allocated memory in use: 28183824832 bytes (314%) <---
Reserved memory (DMA): 513802240 bytes ( 6%)
Memory overhead: 0 bytes ( 0%)
----------------------------- ------------------
Total memory: 8988893471 bytes (100%)
Least free memory: 0 bytes ( 0%)
Most used memory: 28697630432 bytes (319%)
Conditions
ASA running version 9.5.2 or above.
Workaround
This is a display problem. To get the correct Allocated Memory in use, add the per pool memory usage (except DMA pools) in following manner.
MEMPOOL_HEAPCACHE_0 POOL STATS:
Non-mmapped bytes allocated = 314572800
Number of free chunks = 396
Number of mmapped regions = 0
Mmapped bytes allocated = 0
Max memory footprint = 314572800
Keepcost = 88881248
Max contiguous free mem = 88881248
Allocated memory in use = 225602752 <--------
MEMPOOL_GLOBAL_SHARED POOL STATS:
Non-mmapped bytes allocated = 270336
Number of free chunks = 5
Number of mmapped regions = 0
Mmapped bytes allocated = 0 <--------
Max memory footprint = 0
Keepcost = 117104
Max contiguous free mem = 132944
Allocated memory in use = 6336 <--------
Allocated Memory in use = 225602752 + 0 + 6336 = 225609088
Note: (DMA pools should not be considered to in this calculation.)
Further Problem Description