~/talk

Node.js Deep Debugging

Talkat OpenJS World 2021 · 2021-06-02..06-03· [nodejs]
links:none on file
slides:none on file

Five production cases and concrete fixes: high and steady RSS is explained by virtual memory behavior proven with a small C test showing freed memory stays accounted until other processes pressure RAM, no cross‑platform API fix yet (RFE against libuv). Exit race in v11 causes random crashes during shutdown; root cause is out‑of‑order resource teardown with worker/helper threads, fixed by enforcing reverse‑order cleanup and synchronizing thread shutdown using timing injection for diagnosis. Re‑piping lost data is fixed by closing the original pipe endpoint; console.log truncation is avoided by using process.stdout.write (blocking).

AI-written summary · about

  1. 0:00Introduction and overview
  2. 2:21Steady state RSS issues
  3. 10:56Exit race conditions
  4. 15:11Data truncation in pipes
  5. 20:43Graceful Node.js shutdown
  6. 24:56Truncated stdio and conclusion
~/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.