better memory allocator
[discourse_docker.git] / standalone.template.yml
index 6c70fe4e964301f6fce425dd309d772f438018d2..6c771a945722d2b4c01bb9f6e287d21f6c7cc46f 100644 (file)
@@ -14,6 +14,8 @@ env:
   UNICORN_WORKERS: 3
   # slightly less aggressive than "recommendation" but works fine with oobgc
   RUBY_GC_MALLOC_LIMIT: 25000000
+  # way more efficient allocator
+  LD_PRELOAD: /usr/lib/libjemalloc.so.1
 
 params:
   # SSH key is required for remote access into the container