How to Track Memory in V8?
summary
Shows how to use Node.js built-in modules node:v8, node:inspector and node:perf_hooks together with Chrome DevTools to build performance and memory-tracking metrics. Explains how to collect GC and other runtime data, use those metrics in tests, and detect or predict memory leaks in Node.js applications.
AI-written summary · about
chapters (16)
- 0:00Introduction
- 2:55JavaScript and V8 memory
- 5:03V8 garbage collector
- 7:28GC metrics analysis
- 10:21Node.js memory tools
- 13:11Heap snapshot library
- 15:38Memory metrics with gc-stats
- 21:40Generational memory theory
- 23:48V8 memory optimization flags
- 25:59Memory leak analysis
- 27:24Memory snapshots
- 28:51Memory testing approaches
- 32:47Query objects for testing
- 37:24Alternative memory testing
- 39:11Key memory tools and metrics
- 41:01Q&A
related talks
28mMemory Profiling for Mere Mortals
35mMemory Chronicles: Manage, Trace and Fix Memory Leaks
22mThe Hitchhiker's Guide to All Things Memory in JS
38mUnderstanding Memory Behavior on Nodejs
47mMemory Snapshots — not scary, actually useful
01h 04mNode.js performance analytics and best practices
18mMemory Layout of V8's Heap
26mThe Hitchhiker's Guide to All Things Memory in Javascript
