resident set size
The amount of physical memory (RAM) a process is actually occupying right now, including its code, stacks, heap and buffers.
In more detail
Tools such as top and Activity Monitor show a process's resident set size. For Node.js it is usually larger than the JavaScript heap because Buffers and other native memory live outside it.
Related terms
- 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.
- external memory — Memory that belongs to JavaScript objects but lives outside the V8 heap, such as the bytes inside Buffers and ArrayBuffers.
- process.memoryUsage() — A Node.js function that reports the process's memory use in bytes: rss, heapTotal, heapUsed, external and arrayBuffers.
Taught in
- Node.js Process Architecture: Memory & Heap Spaces — Node.js Internals & Backend Services
- Backpressure Engineering: Handling Mismatched I/O — Node.js Internals & Backend Services
- It Is Slow, Says Everyone: CPU, Memory, Disk And Network Bottlenecks — CompTIA Linux+ (XK0-006) Exam Prep