~/talk

Demystifying Memory Leaks in JavaScript

Talkat Node Congress 2021 · 2021-02-18..02-19· [nodejs, web-performance]

Walks through concrete diagnostics and fixes: use --inspect and --trace-gc, capture and compare heap snapshots, and read the 2.4MB delta that pinpoints leaked strings or forgotten event listeners. Demonstrates a tiny Node.js program that creates snapshots every 2s and a separate string slice retaining large buffer bug that crashes the process; shows streaming large files and closing file descriptors stops growth and that targeted fixes—rather than restarts—resolve leaks.

AI-written summary · about

  1. 0:00Start
  2. 2:59Stack memory
  3. 5:31Mark Sweep
  4. 10:32Reading big data in memory
  5. 12:30Event listeners
  6. 21:33Steps to fix memory leaks
~/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.