~/talk

"Leak Hunting Finding and debugging a memory leak in Node.js"

Talkat Tokyo Node Festival 2018 · 2018-11-23..11-24· [nodejs, web-performance]
slides:none on file

A Node.js example deliberately stores every request in an array, causing RAM to climb to ~7.8 GB and not drop when traffic stops; heap snapshots show retained request objects and closures preventing GC. The workflow uses Chrome DevTools heap snapshots (via --inspect / heapdump) to compare allocations, find the exact retained paths, and confirm fixes. Practical fixes include removing global references, closing connections, and reproducing the leak in test to validate the patch.

AI-written summary · about

  1. 0:00Introduction to memory leaks
  2. 3:21Why memory leaks matter in Node.js
  3. 6:43Common causes of memory leaks
  4. 8:10Impact on performance and stability
  5. 10:45Debugging strategies and tools
  6. 12:31Live leak demonstration
  7. 16:52Analyzing the leak with DevTools
  8. 20:39Fixing the leak in code
  9. 24:14Prevention and best practices
  10. 27:01Q&A and closing
~/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.