From: Sam Date: Thu, 20 Oct 2016 23:29:49 +0000 (+1100) Subject: conserve memory X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=5d1848f5ceec88ff847d853a0c9fc929ed693b47;p=discourse_docker.git conserve memory --- 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: