I am a Heroku buildpack that installs jemalloc into a dyno slug.
To use jemalloc with your app, either prefix commands with jemalloc.sh <cmd>
or set LD_PRELOAD=/app/vendor/jemalloc/lib/libjemalloc.so.1
in your
environment (it will then apply to all commands run).
Example, in your Procfile:
web: jemalloc.sh bundle exec puma -C config/puma.rb
Heroku now supports using multiple buildpacks for an app.
heroku buildpacks:add --index 1 https://github.com/mojodna/heroku-buildpack-jemalloc.git
git push heroku master
This uses Docker to build against Heroku stack-image-like images.
make
Artifacts will be dropped in dist/
. See Dockerfile
s for build options.