In nodejs v8 module, there's a function called getHeapStatistics which return an object that contains information about memory usage:
{
total_heap_size: 221540352,
total_heap_size_executable: 5242880,
total_physical_size: 221540352,
total_available_size: 1286110104,
used_heap_size: 189179192,
heap_size_limit: 1501560832,
malloced_memory: 16384,
peak_malloced_memory: 1325112,
does_zap_garbage: 0
}
What's the meaning of each field?
Some good explanation from gc-heap-stats package:
From Node.JS docs:
Self descriptive: