memory
Gets memory-related statistics.
Description
This command provides various memory-related statistics including the ones from tcmalloc
.
tcmalloc stats are not available on operating systems (such as Windows) that do not support tcmalloc .
|
Stat | Description |
---|---|
|
Engine’s total memory usage |
|
Engine’s total memory usage |
|
Memory used to store item metadata, keys and values, no matter the vbucket’s state. If an item’s value is ejected, this stat will be decremented by the size of the item’s value. |
|
Memory used to store values for resident keys. |
|
Extra memory used by transient data like persistence queue, replication queues, checkpoints, etc. |
|
Max amount of data allowed in memory |
|
Low water mark for auto-evictions |
|
High water mark for auto-evictions |
|
Number of times unrecoverable OOMs that happened while processing operations, |
|
Number of times temporary OOMs that happened while processing operations. |
|
If smart memory tracking is enabled |
|
Engine’s total memory usage reported from tcmalloc. |
|
Bytes of system memory reserved by tcmalloc. |
|
Number of bytes in free, mapped pages in page heap. |
|
Number of bytes in free, unmapped pages in page heap. These are bytes that have been released back to OS. |
|
A limit to how much memory TCMalloc dedicates for small objects. |
|
A measure of some of the memory TCMalloc is using for small objects. |
|
Engine’s total memory usage. |
|
Number of fragmentation bytes. |
|
Number of bytes in free, mapped pages. |
|
Number of bytes in free, unmapped pages. |
|
Number of of bytes in a heap. |
Example
Request
cbstats 10.5.2.54:11210 memory
Response
bytes: 23716184 ep_blob_num: 0 ep_blob_overhead: 0 ep_item_num: 1364 ep_kv_size: 0 ep_max_size: 524288000 ep_mem_high_wat: 445644800 ep_mem_low_wat: 393216000 ep_mem_tracker_enabled: true ep_oom_errors: 0 ep_overhead: 18344996 ep_storedval_num: 0 ep_storedval_overhead: 0 ep_storedval_size: 0 ep_tmp_oom_errors: 0 ep_value_size: 0 mem_used: 23716184 tcmalloc_current_thread_cache_bytes: 18642072 tcmalloc_max_thread_cache_bytes: 33554432 total_allocated_bytes: 211297528 total_fragmentation_bytes: 33069832 total_free_mapped_bytes: 5283840 total_free_unmapped_bytes: 7684096 total_heap_bytes: 257335296