Node.js · Senior · Question 7 of 75
What does process.memoryUsage() report as rss?
- 1Memory reserved for future Buffers
- ✓Correct answer: Resident set size: all memory of the process held in RAM, including heap, code, stacks and native allocations
- 3Only the JavaScript heap that is in use
Explanation
Compare heapUsed with rss. If rss grows while the heap stays flat, look at Buffers (arrayBuffers, external) or native modules.