~/talk

Memory Profiling for Mere Mortals

Talkat JSConf Colombia 2016 · 2016-10-07..10-08· [nodejs, observability]
slides:none on file

Reproduces a leaking node server with curl / Apache benchmark, forces collection with --expose-gc, and grabs heap snapshot files (heapdump) to compare retained sizes and find the exact closure holding strings; demo shows a watcher/file‑changed callback leaking and how renaming or fixing function references removes retention. Shows a built sampling tool using v8 allocation sampling to attribute objects to call stacks and visualizes results with a sunburst/flame view so allocation hotspots and offending functions are obvious.

AI-written summary · about

  1. 0:00Start
  2. 0:42Profiling Memory
  3. 4:08The Toy Collector
  4. 7:44Memory Leak
  5. 9:23Registered Event Handlers
  6. 10:01The Garbage Struct
  7. 10:53Root Node
  8. 12:26Reference Counting
  9. 21:06How Do I Take a Memory Snapshot
~/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.