Ruby GC Variables

The following are some helpful env vars to tweak in order to manage the GC behavior for your app:

RUBY_HEAP_MIN_SLOTS (default is 10k): Push this higher so that it does not have to ask the system for more slots.

RUBY_GC_MALLOC_LIMIT:  Bump this up.  This will trigger GC minor to be triggered. 

RUBY_GC_HEAP_FREE_MIN : THE NUMBER OF HEAP SLOTS MADE AVAILABLE AFTER GC IS RUN.
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: