~/talk

Tracking Down a Memory Leak

Talkat Node.js Global Summit 2020 · on Saturday, 2020-05-30· [nodejs]
slides:none on file

Demonstrates finding a real Node.js leak by using Chromium DevTools allocation timeline and heap snapshot comparisons to spot large retained sizes, locates a deliberate Fastify example kept in an eager cache, and traces references in the retainers view. Notes a historical browser leak of 4 gigabytes, shows using process/v8 hooks to write snapshots in production (with risk of running out of memory), and points to an express-session example repository that reproduces a non-obvious library leak.

AI-written summary · about

  1. 0:00Introduction
  2. 1:31JavaScript memory basics
  3. 4:21Garbage collection process
  4. 8:00GC generations and scheduling
  5. 10:44Compacting and shapes
  6. 12:22Memory management techniques
  7. 16:28Common misconceptions
  8. 19:42Advanced memory management
  9. 22:24Identifying memory leaks
  10. 25:27Streams and browser leaks
  11. 27:03Memory debugging tools
  12. 31:10Debugging demo
  13. 35:55Heap snapshots analysis
  14. 39:43Production debugging
~/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.