Deprecate jemalloc recommendation in default Dockerfile and deployment guide (jemalloc development is dead)

Hi,

As of June 2025, the original maintainer of jemalloc released an official post stating that the project is no longer maintained (postmortem). This brings security and stability risks for new Rails apps, which currently recommend and enable jemalloc by default. Refer to the guide below:

Also, Dockerfile generated by rails new contains jemalloc:

Given jemalloc’s current status, should we deprecate or remove its installation and recommendation from the official templates and docs? Or at the very least, add a prominent warning?

Would appreciate thoughts and feedback.

Thanks.


See also Feature #14718: Use jemalloc by default? - Ruby - Ruby Issue Tracking System , where it was discussed whether Ruby should use jemalloc by default. It’s now closed, though.

3 Likes

Is there an alternative library?

I’m not so familiar with this area, but I quickly found the other memory allocators below:

However, I’ve never tried them, and there may be other allocators I’m unaware of.

It’d be helpful if anyone could provide any information here.