The garbage collector attempts to return memory consumed by objects no longer in use by your application. CloudWisdom can be used to collect metrics on how much time is spent in garbage collection for your Ruby applications. You should have Matz’s Ruby Interpreter (MRI) version 1.9.2 or greater or Ruby Enterprise Edition installed before enabling garbage collection metrics.
If you have a Rails application, you can add one of the calls above to an initializer in
config/initializers or directly to your