heroku-buildpack-jemalloc

by generalassembly

GitHub Readme.md

heroku-buildpack-jemalloc

I am a Heroku buildpack that installs jemalloc into a dyno slug.

Using

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

Composed

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

Building

This uses Docker to build against Heroku stack-image-like images.

make

Artifacts will be dropped in dist/. See Dockerfiles for build options.