~/talk

Using Heap Dumps to Find and Fix Node.js Memory and CPU Problems

Talkat NodeTLV 2025 · on Tuesday, 2025-12-16· [nodejs]
slides:none on file

Heap snapshots from Node (loaded into Chrome DevTools memory panel) let developers pin a leak by taking two snapshots and comparing deltas to see what only increased — one demo shows 64K object instances added and retained by a global array, causing repeated GC and a CPU GC storm at ~100%. Production options shown include the heap snapshot near-heap-limit flag and sending SIGUSR2 to trigger on-demand dumps; snapshots can crash or expose sensitive data so limit and secure them.

AI-written summary · about

  1. 0:00Introduction and speaker intro
  2. 1:15Nightmare on-call scenarios
  3. 2:39Garbage collection limitations
  4. 6:55Memory graphs and leaks
  5. 9:22Why leaks are hard to find
  6. 10:47What is a heap dump
  7. 11:51Live leak demo setup
  8. 13:59Using DevTools for heap dumps
  9. 18:16Benefits and downsides of DevTools
  10. 19:42Production-friendly heap dump methods
  11. 23:38API-based heap dump approach
  12. 25:46Security and heap dump risks
  13. 26:50Summary and takeaways
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.