> db.serverStatus({tcmalloc:true}).tcmalloc
|
{
|
"generic" : {
|
"current_allocated_bytes" : 66433383,
|
"heap_size" : 69263360
|
},
|
"tcmalloc" : {
|
"pageheap_free_bytes" : 253952,
|
"pageheap_unmapped_bytes" : 0,
|
"max_total_thread_cache_bytes" : 33554432,
|
"current_total_thread_cache_bytes" : 758320
|
},
|
"formattedString" : "------------------------------------------------\nMALLOC: 66955328 ( 63.9 MiB) Bytes in use by application\nMALLOC: + 253952 ( 0.2 MiB) Bytes in page heap freelist\nMALLOC: + 555920 ( 0.5 MiB) Bytes in central cache freelist\nMALLOC: + 739840 ( 0.7 MiB) Bytes in transfer cache freelist\nMALLOC: + 758320 ( 0.7 MiB) Bytes in thread cache freelists\nMALLOC: + 1306776 ( 1.2 MiB) Bytes in malloc metadata\nMALLOC: ------------\nMALLOC: = 70570136 ( 67.3 MiB) Actual memory used (physical + swap)\nMALLOC: + 0 ( 0.0 MiB) Bytes released to OS (aka unmapped)\nMALLOC: ------------\nMALLOC: = 70570136 ( 67.3 MiB) Virtual address space used\nMALLOC:\nMALLOC: 428 Spans in use\nMALLOC: 12 Thread heaps in use\nMALLOC: 8192 Tcmalloc page size\n------------------------------------------------\nCall ReleaseFreeMemory() to release freelist memory to the OS (via madvise()).\nBytes released to the OS take up virtual address space but no physical memory.\n"
|
}
|
> print(db.serverStatus({tcmalloc:true}).tcmalloc.formattedString)
|
------------------------------------------------
|
MALLOC: 67034960 ( 63.9 MiB) Bytes in use by application
|
MALLOC: + 81920 ( 0.1 MiB) Bytes in page heap freelist
|
MALLOC: + 518672 ( 0.5 MiB) Bytes in central cache freelist
|
MALLOC: + 809984 ( 0.8 MiB) Bytes in transfer cache freelist
|
MALLOC: + 817824 ( 0.8 MiB) Bytes in thread cache freelists
|
MALLOC: + 1306776 ( 1.2 MiB) Bytes in malloc metadata
|
MALLOC: ------------
|
MALLOC: = 70570136 ( 67.3 MiB) Actual memory used (physical + swap)
|
MALLOC: + 0 ( 0.0 MiB) Bytes released to OS (aka unmapped)
|
MALLOC: ------------
|
MALLOC: = 70570136 ( 67.3 MiB) Virtual address space used
|
MALLOC:
|
MALLOC: 432 Spans in use
|
MALLOC: 12 Thread heaps in use
|
MALLOC: 8192 Tcmalloc page size
|
------------------------------------------------
|
Call ReleaseFreeMemory() to release freelist memory to the OS (via madvise()).
|
Bytes released to the OS take up virtual address space but no physical memory.
|