Last active
August 29, 2015 14:01
-
-
Save mperham/09b0d435c708dd0ddcbb to your computer and use it in GitHub Desktop.
Ruby 2.1.2 memory bloat/leak
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> pp ENV.select {|x| x =~ /^RUBY/ } | |
{"RUBY_GC_HEAP_GROWTH_FACTOR"=>"1.3", | |
"RUBY_GC_HEAP_OLDOBJECT_LIMIT_FACTOR"=>"1.3", | |
"RUBY_GC_HEAP_INIT_SLOTS"=>"600000", | |
"RUBY_GC_MALLOC_LIMIT"=>"90000000", | |
"RUBYOPT"=>"-rbundler/setup", | |
"RUBYLIB"=> | |
"/usr/local/rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.6.2/lib"} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
We have serious memory bloat/leakage in our production daemons. Sidekiq starts around | |
250MB and balloons up to 2GB over the course of 12-24 hours. Puma starts a master and | |
10 workers, starting about 3GB total, before ballooning up to 30GB over the course of | |
12-24 hours. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here's a list of GC params available in 2.1: https://github.com/ruby/ruby/blob/ruby_2_1/gc.c#L5691-L5720