From 5d1848f5ceec88ff847d853a0c9fc929ed693b47 Mon Sep 17 00:00:00 2001 From: Sam Date: Fri, 21 Oct 2016 10:29:49 +1100 Subject: [PATCH] conserve memory --- templates/web.template.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/templates/web.template.yml b/templates/web.template.yml index aec8839..c4036b9 100644 --- a/templates/web.template.yml +++ b/templates/web.template.yml @@ -6,6 +6,10 @@ env: # this gives us very good cache coverage, 96 -> 99 # in practice it is 1-2% perf improvement RUBY_GLOBAL_METHOD_CACHE_SIZE: 131072 + # stop heap doubling in size so aggressively, this conserves memory + RUBY_GC_HEAP_GROWTH_MAX_SLOTS: 40000 + RUBY_GC_HEAP_INIT_SLOTS: 400000 + RUBY_GC_HEAP_OLDOBJECT_LIMIT_FACTOR: 1.5 DISCOURSE_DB_SOCKET: /var/run/postgresql DISCOURSE_DB_HOST: -- 2.25.1