Use mimalloc instead of jemalloc

This commit is contained in:
Jeremy Kescher 2022-10-29 23:41:37 +02:00
parent db5e2e5caf
commit 6067b452ae
No known key found for this signature in database
GPG key ID: 48DFE4BB15BA5940
2 changed files with 2 additions and 2 deletions

View file

@ -9,7 +9,7 @@ WorkingDirectory=/home/mastodon/live
Environment="RAILS_ENV=production"
Environment="DB_POOL=25"
Environment="MALLOC_ARENA_MAX=2"
Environment="LD_PRELOAD=libjemalloc.so"
Environment="LD_PRELOAD=libmimalloc.so"
ExecStart=/home/mastodon/.rbenv/shims/bundle exec sidekiq -c 25
TimeoutSec=15
Restart=always

View file

@ -8,7 +8,7 @@ User=mastodon
WorkingDirectory=/home/mastodon/live
Environment="RAILS_ENV=production"
Environment="PORT=3000"
Environment="LD_PRELOAD=libjemalloc.so"
Environment="LD_PRELOAD=libmimalloc.so"
ExecStart=/home/mastodon/.rbenv/shims/bundle exec puma -C config/puma.rb
ExecReload=/bin/kill -SIGUSR1 $MAINPID
TimeoutSec=15