external memory
Memory that belongs to JavaScript objects but lives outside the V8 heap, such as the bytes inside Buffers and ArrayBuffers.
In more detail
process.memoryUsage().external reports it. Because it does not count toward heapUsed, a process can use lots of RAM while its heap looks small.
Related terms
- Buffer — A Node.js object holding a fixed-length run of raw bytes stored outside the V8 heap; more generally, any memory that holds data on its way somewhere.
- ArrayBuffer — A standard JavaScript object representing a block of raw binary memory, which you read and write through a typed array or DataView.
- resident set size — The amount of physical memory (RAM) a process is actually occupying right now, including its code, stacks, heap and buffers.
- heap — The area of memory where a program stores objects whose size or lifetime is not known in advance, typically reclaimed by a garbage collector.
Taught in
- Node.js Process Architecture: Memory & Heap Spaces — Node.js Internals & Backend Services
- Buffer Fundamentals: Slab Allocator & V8 Memory — Node.js Internals & Backend Services