How can I use jemalloc with my application?

Jemalloc is an alternative memory allocator that can be significantly more efficient than the default.

Written by Chris Oliver
Updated over a week ago
libjemalloc is installed by default on servers configured since October 10th, 2023. If your server was last configured before that date, you'll want to update your server to the latest configuration.

To enable Jemalloc, add the following environment variable:

Was this article helpful?