May 24 2013 4 min read.
Ruby garbage collection tuning.
Mri maintainers have put a tremendous amount of work into improving the garbage collector in ruby 2 0 through 2 2.
Ree which is a fork of ruby 1 8 7 introduced its own parameters first and later ruby starting in 1 9 2 introduced its own similar parameters.
It has improved a lot over the last years but there s still a lot to tune.
Automatic ruby garbage collection tuning starting at 0 mo.
1 java garbage collection logs how to analyze them 2 a quick start on java garbage collection.
Ruby like most other modern high level programming languages doesn t force you to manage memory this feature is called garbage collection or gc and you get it for free in ruby.
This blog post goes into great detail about garbage collection in mri and what all the tuning variables.
However it s still not trivial to get the most out of it.
The engine has thus gained a lot more horsepower.
Tuning ruby garbage collection for rspec.
Lourens wrote this on feb 20 th 2015 9 19 am.
The ruby garbage collector has been flagged as the crux of ruby performance and memory use for a long time.
Ruby 1 9 3 made them customizable via environment variables and ruby 2 1 0 added a lot more.
How can i know the best gc settings for my ruby app.
See what i did there its settings out of the box are fairly non optimal for modern machines with gobs of memory.
Ruby s garbage collection is pretty rubbish.
Tunemygc optimal mri ruby 2 1 garbage collection.
Our configurations reduce gc activity during startup time.
Less worst case memory usage through sensible upper limits and growth factors specific to your app.
Automatic and repeatable gc tuning.
Tunemygc optimal mri ruby 2 1 garbage collection tuning.