~/talk

Debugging Node.js in Production

Talkat HolyJS 2016 · on Sunday, 2016-12-11· [nodejs, observability]

Shows how to find CPU hotspots by sampling with perf and turning JIT addresses into JavaScript stacks via --perf-basic-prof, visualizing with 0x/FlameGraphs to spot sync crypto and template hashing that block the event loop; demonstrates postmortem debugging by enabling --abort-on-uncaught-exception, setting ulimit and loading core files into MTP/autopsy to inspect V8 frames; proves heap-diffing with heapdump + Chrome DevTools to find leaked incoming request objects and fixes by handling close vs end and switching to async hashing.

AI-written summary · about

  1. 0:00Start
  2. 3:08Why Is It Important To Be Able To Debug Note in Production as Opposed to Your Development or Staging
  3. 4:04Cpu Intensive Code
  4. 5:12Garbage Collection
  5. 7:38Cpu Sampling
  6. 11:02Stack Traces
  7. 17:24Generate a Frame Graph
  8. 22:13Recap
  9. 23:47Bonus Tip Number Two
  10. 24:36Post-Mortem Debugging
  11. 25:17Reproducibility
  12. 25:47Core Dump
  13. 36:34Stack Trace
  14. 39:44Memory Leaks
  15. 40:07Memory Leak
  16. 41:21Demo
  17. 41:50Heap Dump
  18. 46:28Recap Slides
  19. 47:57Debugging 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.