X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/da1115e80fdbca939aa7b2f8b2027705f1c32b24..9626c2e9e81b53134c416cca0594fad46aa2dc01:/cookbooks/passenger/templates/default/ruby.erb diff --git a/cookbooks/passenger/templates/default/ruby.erb b/cookbooks/passenger/templates/default/ruby.erb index 4d962204e..fb7575ab0 100644 --- a/cookbooks/passenger/templates/default/ruby.erb +++ b/cookbooks/passenger/templates/default/ruby.erb @@ -1,7 +1,12 @@ #!/bin/sh +<% if node[:passenger][:ruby_version].to_f < 2.1 -%> export RUBY_HEAP_MIN_SLOTS=500000 export RUBY_HEAP_FREE_MIN=100000 +<% else -%> +export RUBY_GC_HEAP_INIT_SLOTS=500000 +export RUBY_GC_HEAP_FREE_SLOTS=100000 +<% end -%> export RUBY_GC_MALLOC_LIMIT=50000000 exec /usr/bin/ruby<%= node[:passenger][:ruby_version] %> "$@"