Apparently, the segfaults were not jemalloc's fault.

This commit is contained in:
Jeremy Kescher 2022-11-11 21:19:56 +01:00
parent 1eadfddbd2
commit 0caa35c1f9
No known key found for this signature in database
GPG key ID: 48DFE4BB15BA5940
3 changed files with 3 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=libmimalloc.so"
Environment="LD_PRELOAD=libjemalloc.so"
ExecStart=/home/mastodon/.rbenv/shims/bundle exec sidekiq -c 25
TimeoutSec=15
Restart=always

View file

@ -9,6 +9,7 @@ WorkingDirectory=/home/mastodon/live
Environment="NODE_ENV=production"
Environment="PORT=4000"
Environment="STREAMING_CLUSTER_NUM=1"
Environment="LD_PRELOAD=libjemalloc.so"
ExecStart=/usr/bin/node ./streaming
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=libmimalloc.so"
Environment="LD_PRELOAD=libjemalloc.so"
ExecStart=/home/mastodon/.rbenv/shims/bundle exec puma -C config/puma.rb
ExecReload=/bin/kill -SIGUSR1 $MAINPID
TimeoutSec=15