~/talk

Understanding Memory Behavior on Nodejs

Talkat THE CONF 2017 · on Monday, 2017-10-02· [nodejs, web-performance]
slides:none on file

Covers how V8 allocates and promotes objects (young → old generation after roughly 5–10 scavenge cycles), shows a reproducible leaking server that repeatedly pushes objects into an array and leaks via closures and unnamed functions, and demonstrates debugging with node --inspect, Chrome DevTools heap snapshots and process.memoryUsage to spot resident size, heapTotal/heapUsed and external C++ allocations. Notes stop‑the‑world GC pauses, explains generational GC behavior, warns node-memwatch is unmaintained, and includes real globo.com incident examples.

AI-written summary · about

  1. 0:00Introduction
  2. 2:44Why memory matters
  3. 3:25Node.js and V8 basics
  4. 8:23Garbage collection explained
  5. 13:52Memory limits and pauses
  6. 17:58Memory segments in Node.js
  7. 19:05Generational garbage collection
  8. 21:11Memory allocation in Node.js
  9. 24:07Object properties and cycles
  10. 25:54Debugging memory leaks
  11. 30:18Tools for leak detection
  12. 32:48Server memory leaks
  13. 35:19Closure leaks
  14. 36:22Summary and takeaways
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.