~/talk

Battling Memory Leaks: Tales from the Trenches at WhatsApp

links:none on file
slides:none on file

WhatsApp describes concrete fixes and diagnostics: they run per-second instrumentation written to file, a memory outlier detector that dumps state or forces GC, and an external monitor that kills BEAM to capture crash dumps; a custom crash-dump parser surfaces a single process holding ~4 GB and a 600 MB binary. They inspect allocators and supercarrier snapshots via recon_alloc/system_info and a reverse-engineered function, replace malloc with GMO J Malo to cut fragmentation (and ~5% CPU) and avoid OOMs, and apply limits like max heap size and aggressive GC.

AI-written summary · about

  1. 0:00Memory leaks at WhatsApp
  2. 3:40Memory 101 for Erlang
  3. 7:37Identifying leaks with telemetry
  4. 17:13Parallelizing requests patterns
  5. 20:42Allocators and super carriers deep dive
  6. 31:20Troubleshooting allocator fragmentation
  7. 38:57Key takeaways
  8. 39:22Q&A on monitoring tools
  9. 40:48Q&A on super carrier config
  10. 42:13Q&A on memory strategies
~/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.