Skip to content

Customizing Apache environment variables

technicalpickles edited this page Mar 13, 2012 · 2 revisions

As of revision 20e16c7042, Moonshine allows the customization of Apache's runtime environment variables, ie through /etc/apache2/envvars.

The most common uses of this would be for tuning Ruby's garabage collector. If, for example, you followed this article's recommendation, you'd add this to your config/moonshine.yml:

:apache: :envvars: RUBY_HEAP_MIN_SLOTS: 1250000 RUBY_HEAP_SLOTS_INCREMENT: 100000 RUBY_HEAP_SLOTS_GROWTH_FACTOR: 1 RUBY_GC_MALLOC_LIMIT: 30000000 RUBY_HEAP_FREE_MIN: 12500

Clone this wiki locally