~/talk

Debugging Node.js in Production

Talkat Node.js Interactive 2015 · 2015-12-08..12-09· [nodejs]
slides:none on file

Netflix runs Node across its site and debugs production by sampling and post‑mortem state, not guessing. Request latency issues use perf at 99Hz for 30s (≈20–23k samples) and V8’s perf_basic_prof_only_functions (Node 5.0x / backport 4.3) to get JS frames, then visualize hot paths with a flame graph to find a single bad line (lodash merge vs assign) that collapses a wide CPU flame and cuts latency and CPU. Crashes and leaks use core dumps (process.on('uncaughtException') and gcore) loaded into mdbv8; find js objects shows module objects growing from ~230k to ~323k caused by try/catch require without caching, and reverse references locate the root.

AI-written summary · about

  1. 0:00Introduction to debugging Node.js
  2. 2:06Runtime performance issues
  3. 11:31Runtime crashes in production
  4. 17:43Debugging memory leaks
  5. 25:01Summary and tooling future
~/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.