From 556a9de5a511bba83cfdfa8765b4525c8d01bd6d Mon Sep 17 00:00:00 2001 From: Sam Saffron Date: Thu, 14 Nov 2013 21:01:37 -0800 Subject: [PATCH] jemalloc wired properly --- standalone.template.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/standalone.template.yml b/standalone.template.yml index 6c771a9..d939caf 100644 --- a/standalone.template.yml +++ b/standalone.template.yml @@ -14,8 +14,6 @@ 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 @@ -46,7 +44,7 @@ run: sv start redis || exit 1 sv start postgres || exit 1 cd $home - exec sudo -E -u discourse bundle exec config/unicorn_launcher -E production -c config/unicorn.conf.rb + exec sudo -E -u discourse LD_PRELOAD=/usr/lib/libjemalloc.so.1 bundle exec config/unicorn_launcher -E production -c config/unicorn.conf.rb - file: path: /etc/service/sidekiq/run @@ -58,7 +56,7 @@ run: sv start redis || exit 1 sv start postgres || exit 1 cd $home - exec sudo -E -u discourse bundle exec sidekiq + exec sudo -E -u discourse LD_PRELOAD=/usr/lib/libjemalloc.so.1 bundle exec sidekiq - file: path: /etc/service/sshd/run -- 2.25.1