Goruco Videos

Aman Gupta

Memprof - The ruby level memory profiler


Ever wondered why your ruby script uses so much RAM? Tired of having god restart your rails app every few hours?

This talk will introduce memprof, a ruby level memory profiler. We’ll demo memprof on a variety of real-world examples, including some popular open source projects, to find and fix memory leaks. Along the way, we’ll learn how the ruby VM manages memory, why garbage collection has such a large impact on ruby’s performance and some common ways to reduce the memory usage of your ruby applications.


Aman is a serial entrepreneur, ruby hacker and a recent winner of a Ruby Heroes award. He currently maintains the EventMachine project and various other gems that help build high-performance distributed and asynchronous systems in ruby, including em-mysql, em-spec, jsSocket and amqp. Most recently, Aman has been hacking on performance improvements to MRI, and tools for the VM such as perftools.rb, a sampling profiler for ruby code based on google-perftools, and gdb.rb, a MRI specific version of gdb.