Friday, March 28, 2014

Ruby 2.1 and Garbage Collection issue and memory bloats in production unicorn and Phusion passenger

Are you working with Unicorn and getting memory leak issues with ruby 2.1 . A better explained scenario on memory allocation on heap with huge strings ,array and hashes in Ruby 2.1 by this author himself here :

 http://www.atdot.net/~ko1/activities/rubyconf2013-ko1_pub.pdf 

Whats the problem?

in his blog :
http://www.omniref.com/blog/blog/2014/03/27/ruby-garbage-collection-still-not-ready-for-production/

Well not sure about unicorn solution but Aman Gupta has a solution for Phusion Passenger.
as announced an Out-Of-Band garbage collector for Ruby 2.1.

Here is the Phusion Passenger blog on that one and usage.