This Heroku buildpack installs jemalloc into a dyno slug.
The current version is built with the Heroku-16 stack. There is a branch built with the public beta of Heroku-18, which will be merged to master when Heroku-18 becomes the new default stack. Older stacks are not supported, though in theory and experience they should run this buildpack just fine.
If you have other needs, such as...
LD_PRELOADenvironment variable for something else
...then you should use one of these instead:
heroku buildpacks:add --index 1 https://github.com/brian-kephart/heroku-buildpack-jemalloc.git git push heroku master
This uses Docker to build against a Heroku stack image. Make sure you have Docker running before building, then run:
Artifacts will be dropped in
Dockerfiles for build options.
Copy the snippet above into CLI.