Schedule

Ivo Anjo
Ivo Anjo

I love to work on Ruby performance and that's how I ended up at Datadog where I'm building a new production open-source Ruby profiler.

KJ Tsanaktsidis
KJ Tsanaktsidis
  • @KJTsanaktsidis

Hi there! I'm a senior staff engineer at Zendesk, working on the performance and reliability of our Rails monolith. I'm the author of the ruby_memprofiler_pprof gem, an experimental attempt to track Ruby memory via the newobj/freeobj tracepoints. I live in Melbourne, Australia.

Hunting Production Memory Leaks with Heap Sampling

Existing Ruby tooling is quite helpful when investigating memory leaks if and when we can reproduce them on our development machine or staging environment. But what about those cases when the memory leak only really shows up in Production? Perhaps over a long time period?

In this talk, we introduce the ruby_memprofiler_pprof heap profiling gem, showing how low-overhead heap sampling can be implemented and used to investigate memory leaks in production. We also discuss early production wins when using this technique at Zendesk.

Presentation Material

Recorded video