Bladeren bron

Use libjemalloc

tags/v1.0.0
Benjamin Neff 6 jaren geleden
bovenliggende
commit
3583f52d64
No account linked to committer's email address
3 gewijzigde bestanden met toevoegingen van 4 en 0 verwijderingen
  1. +1
    -0
      diaspora/files/diaspora-sidekiq.service
  2. +1
    -0
      diaspora/files/diaspora-web.service
  3. +2
    -0
      diaspora/map.jinja

+ 1
- 0
diaspora/files/diaspora-sidekiq.service Bestand weergeven

@@ -6,6 +6,7 @@ StopWhenUnneeded=true
[Service]
User={{ diaspora.user.username }}
Environment=RAILS_ENV={{ diaspora.configuration.server.rails_environment }}
Environment=LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libjemalloc.so.1
WorkingDirectory={{ diaspora.install_path }}
ExecStart=/bin/bash -lc "bin/bundle exec sidekiq"
Restart=always

+ 1
- 0
diaspora/files/diaspora-web.service Bestand weergeven

@@ -6,6 +6,7 @@ StopWhenUnneeded=true
[Service]
User={{ diaspora.user.username }}
Environment=RAILS_ENV={{ diaspora.configuration.server.rails_environment }}
Environment=LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libjemalloc.so.1
WorkingDirectory={{ diaspora.install_path }}
PIDFile={{ diaspora.install_path }}/tmp/pids/web.pid
ExecStart=/bin/bash -lc "bin/bundle exec unicorn -c config/unicorn.rb -E {{ diaspora.configuration.server.rails_environment }}"

+ 2
- 0
diaspora/map.jinja Bestand weergeven

@@ -17,6 +17,7 @@
'libmagickwand-dev',
'ghostscript',
'nodejs',
'libjemalloc1',
],
'postgresql_package': 'libpq-dev',
'mysql_package' : 'libmariadbclient-dev',
@@ -69,6 +70,7 @@
'imagemagick',
'libmagickwand-dev',
'nodejs',
'libjemalloc1',
],
'mysql_package' : 'libmysqlclient-dev',
},

Laden…
Annuleren
Opslaan