Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Current »

This page is a quick guide on tracking down and patching memory leaks and other memory usage issues in Ruby & Rails.

Example: Profiling Harvesters

 

Memory Profiling Harvesters
require 'memory_profiler'

recs =  NaraHarvester.new.records
report = MemoryProfiler.report { 100.times { recs.next } }
 
report.total_retained
 

Gems (ones we've used/mentioned in examples)

  1. MemoryProfiler

Web Resources

  1. What I Learned About Hunting Memory Leaks in Ruby 2.1
  2. Debugging memory leaks in Ruby
  • No labels