Skip to content

Instantly share code, notes, and snippets.

@rubymerchant
Created June 2, 2011 23:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rubymerchant/1005562 to your computer and use it in GitHub Desktop.
Save rubymerchant/1005562 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment