public
Last active

  • Download Gist
gistfile1.txt
1 2 3 4 5 6 7 8 9
UNICORN_CONF="/data/<%= @app %>/shared/config/unicorn_custom.rb"
 
# GC Tuning
RUBY_GC_MALLOC_LIMIT=60000000;export RUBY_GC_MALLOC_LIMIT
# Set the malloc to 60mb
RUBY_HEAP_MIN_SLOTS=3500000;export RUBY_HEAP_MIN_SLOTS
# Rails in general takes 250k slots by default.
RUBY_HEAP_SLOTS_GROWTH_FACTOR=3;export RUBY_HEAP_SLOTS_GROWTH_FACTOR
RUBY_HEAP_SLOTS_INCREMENT=250000;export RUBY_HEAP_SLOTS_INCREMENT

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.