nx.js
NamespacesSwitchInterfaces

MemoryUsage

Memory usage statistics from the V8 JavaScript engine, as reported by V8's HeapStatistics.

See

memoryUsage

Properties

PropertyTypeDescription
externalMemorynumberBytes of off-heap memory (e.g. ArrayBuffer backing stores) that V8 is keeping alive. A large value with a small usedHeapSize means native memory is held by not-yet-collected JS objects.
heapSizeLimitnumberMaximum size the heap is allowed to grow to, in bytes.
mallocedMemorynumberMemory currently allocated via the engine's malloc, in bytes.
nativeHeapArenanumberCurrent size of the native allocator's arena, in bytes.
nativeHeapFreenumberBytes free within the native allocator's current arena.
nativeHeapTotalnumberTotal native (newlib) heap capacity of the process, in bytes. Every native allocation — the V8 heap, JIT code arena, render surfaces, worker thread stacks, ArrayBuffer backings — competes within this budget.
nativeHeapUsednumberBytes currently allocated from the native heap.
numberOfDetachedContextsnumberNumber of detached (pending GC) contexts.
numberOfNativeContextsnumberNumber of active (native) contexts.
peakMallocedMemorynumberPeak memory ever allocated via the engine's malloc, in bytes.
totalAvailableSizenumberTotal memory available to the heap before hitting the limit, in bytes.
totalHeapSizenumberTotal size of the V8 heap, in bytes.
totalHeapSizeExecutablenumberTotal size of executable (JIT code) portions of the heap, in bytes.
totalPhysicalSizenumberCommitted physical size of the heap, in bytes.
usedHeapSizenumberMemory currently used by live objects on the heap, in bytes.

On this page