Hacker ApprovedDepartments

jemalloc

Hacker Approved

The most recommended of 4 memory allocators

Recommended as a drop-in malloc replacement that cuts memory use in long-running programs. Critics say it is a black box and trails newer allocators in multithreaded speed.

Recommended as a drop-in malloc replacement that cuts memory use in long-running programs. Critics say it is a black box and trails newer allocators in multithreaded speed.

45 people gave an opinion

recommend it
34
criticize it
11
approval share
76%
Each figure is one person. RecommendsCriticizes

Recommended in 6 of 13 months

  1. November 2025: recommended
  2. December 2025: not recommended
  3. January 2026: not recommended
  4. February 2026: recommended
  5. March 2026: recommended
  6. April 2026: not recommended
  7. May 2026: not recommended
  8. June 2026: recommended
  9. July 2026: not recommended
  10. August 2026: recommended
  11. September 2026: recommended
  12. October 2026: not recommended
  13. November 2026: not recommended (month in progress)

Owned for 8 years

Median of the 3 owners who said how long they have had it.

Each square is one year.

Why it carries the badge

  • 34 people recommend itNeeds 10 or more, met.
  • 3.1 recommenders for every criticNeeds 2 to 1 or better, met.
  • Recommended in 6 of 13 monthsNeeds 4 or more, met.

The same three rules apply to every product, and the badge can’t be bought. How the badge works

What people say about it

The reasons people give, with the number of comments that give each one. Open a reason to read what they said.

Why people recommend it

Each mark is one comment

  • Cuts memory use sharply

    “With jemalloc's reliable memory return settings, those problems disappear.”

    Comment from 18 Sep 2026 in “Jemalloc 5.4.0”

    “jemalloc consistently used only about half of RAM as opposed to tcmalloc”

    Comment from 17 Mar 2026 in “Jemalloc un-abandoned by Meta”

    “Switched to jemalloc and instantly memory stayed well below 1GB.”

    Comment from 18 Sep 2026 in “Jemalloc 5.4.0”
  • Stable for long-running processes

    “jemalloc seems to fragment and leak the least for processes running for months”

    Comment from 16 Mar 2026 in “Jemalloc un-abandoned by Meta”

    “jemalloc saved my icinga2 installation that kept exploding in memory usage”

    Comment from 17 Mar 2026 in “Jemalloc un-abandoned by Meta”

    “I've found jemalloc works best for long running libvips processes”

    Comment from 1 Aug 2026 in “RipGrep musl binaries occasionally segfault during very-large searches”
  • Strong multithreaded allocation performance

    “We used jemalloc for a while which helped since it allocates memory better for multithreaded applications”

    Comment from 19 Feb 2026 in “Bridging Elixir and Python with Oban”

    “It always holds up in benchmarks against any new flavor of the month malloc that comes out.”

    Comment from 16 Mar 2026 in “Jemalloc un-abandoned by Meta”
  • Widely used, default on FreeBSD

    “jemalloc has been the FreeBSD (released) default malloc implementation for the last 18.”

    Comment from 28 Aug 2026 in “Don't use musl if you care about performance”

    “jemalloc is widely used and that’s why it makes sense to be aware of it”

    Comment from 18 Sep 2026 in “Jemalloc 5.4.0”

What people warn about

Each mark is one comment

  • Large code size and complexity

    “something like jemalloc generates 10x as much code as the rest of your app”

    Comment from 4 May 2026 in “Embedded Rust or C Firmware? Lessons from an Industrial Microcontroller Use Case”

    “contrast to e.g. the complexity of jemalloc”

    Comment from 12 Jul 2026 in “Understanding the Odin Programming Language”
  • Lacks memory protections

    “considering it OK to leak memory contents across a process boundary because it's within a cgroup sounds wild”

    Comment from 17 Mar 2026 in “Jemalloc un-abandoned by Meta”

    “Using an allocator without memory protections in 2026”

    Comment from 16 Mar 2026 in “Jemalloc un-abandoned by Meta”

Other memory allocators people recommend

The three most recommended other memory allocators, with the same counts for each, so you can compare like for like. The tick on each bar marks the 2 to 1 line the badge needs.

jemalloc compared with 3 alternatives
ProductRecommendCriticizeApprovalMonthsOwnedBadge
jemallocThis page341176%68 yrs3 ownersApproved
mimalloc22776%9—Approved
Bumpalo Rust crate8280%5——
tcmalloc7464%4——
See all 4 memory allocators, ranked

What people said

40 of the 51 comments that mention it, newest first. Each links to the original comment.

“plugging in mimalloc or jemalloc will be much less work, and much less error prone”

RecommendsComment from 19 Sep 2026 in “What Zig felt like, coming from Rust”

“with jemalloc its been dead stable for years”

RecommendsComment from 18 Sep 2026 in “Jemalloc 5.4.0”

“drastically reduces memory usage for the same workloads”

RecommendsComment from 18 Sep 2026 in “Jemalloc 5.4.0”

“Nice to see jemalloc active again.”

RecommendsComment from 18 Sep 2026 in “Jemalloc 5.4.0”

“because it has per-thread allocation counters”

RecommendsComment from 18 Sep 2026 in “Jemalloc 5.4.0”

“with jemalloc it no longer actually matters”

RecommendsComment from 18 Sep 2026 in “Jemalloc 5.4.0”

“Switched to jemalloc and instantly memory stayed well below 1GB.”

RecommendsComment from 18 Sep 2026 in “Jemalloc 5.4.0”

“the runtimes belonging to all or at least most of those languages perform a lot better with jemalloc than with the system default”

RecommendsComment from 18 Sep 2026 in “Jemalloc 5.4.0”

“memory dropped from 8gib to under 1gib”

RecommendsComment from 18 Sep 2026 in “Jemalloc 5.4.0”

“With jemalloc's reliable memory return settings, those problems disappear.”

RecommendsComment from 18 Sep 2026 in “Jemalloc 5.4.0”

“Changing the malloc to jemalloc solved the issue, even though initially it was done for its debugging capabilities.”

RecommendsComment from 18 Sep 2026 in “Jemalloc 5.4.0”

“We would not be able to run our workloads without Jemalloc.”

RecommendsComment from 18 Sep 2026 in “Jemalloc 5.4.0”

“It makes a huge difference for Ruby on Rails Apps.”

RecommendsComment from 18 Sep 2026 in “Jemalloc 5.4.0”

“I benefit from jemalloc in my stack (RoR)”

RecommendsComment from 18 Sep 2026 in “Jemalloc 5.4.0”

“jemalloc is widely used and that’s why it makes sense to be aware of it”

RecommendsComment from 18 Sep 2026 in “Jemalloc 5.4.0”

“because it was using way less memory”

RecommendsComment from 18 Sep 2026 in “Comparison of Malloc() Algorithms”

“ended up using jemalloc after a few patches and bug fixes”

RecommendsComment from 17 Sep 2026 in “Comparison of Malloc() Algorithms”

“jemalloc has been the FreeBSD (released) default malloc implementation for the last 18.”

RecommendsComment from 28 Aug 2026 in “Don't use musl if you care about performance”

“I've found jemalloc works best for long running libvips processes”

RecommendsComment from 1 Aug 2026 in “RipGrep musl binaries occasionally segfault during very-large searches”

“contrast to e.g. the complexity of jemalloc”

CriticizesComment from 12 Jul 2026 in “Understanding the Odin Programming Language”

“big general-purpose allocators like jemalloc or mimalloc are usually a bandaid to somewhat salvage a failed memory management strategy”

CriticizesComment from 13 Jun 2026 in “Orthodox C++”

“the common solution is to use tcmalloc or jemalloc which hasnt these problems?”

RecommendsComment from 6 Jun 2026 in “Lambda isn't leaking memory, your metrics are lying to you”

“something like jemalloc generates 10x as much code as the rest of your app”

CriticizesComment from 4 May 2026 in “Embedded Rust or C Firmware? Lessons from an Industrial Microcontroller Use Case”

“Standard options like jemalloc and mimalloc are incredibly fast, but they act as black boxes.”

MixedComment from 25 Mar 2026 in “A single-file C allocator with explicit heaps and tuning knobs”

“jemalloc consistently used only about half of RAM as opposed to tcmalloc”

RecommendsComment from 17 Mar 2026 in “Jemalloc un-abandoned by Meta”

“Glad to see the commitment towards important non-LLM projects!”

RecommendsComment from 17 Mar 2026 in “Jemalloc un-abandoned by Meta”

“jemalloc saved my icinga2 installation that kept exploding in memory usage”

RecommendsComment from 17 Mar 2026 in “Jemalloc un-abandoned by Meta”

“because jemalloc got much better”

RecommendsComment from 17 Mar 2026 in “Jemalloc un-abandoned by Meta”

“Stuck with battle hardened jemalloc for now.”

RecommendsComment from 17 Mar 2026 in “Jemalloc un-abandoned by Meta”

“saw 15-20% memory reduction in our Python services”

RecommendsComment from 17 Mar 2026 in “Jemalloc un-abandoned by Meta”

“considering it OK to leak memory contents across a process boundary because it's within a cgroup sounds wild”

CriticizesComment from 17 Mar 2026 in “Jemalloc un-abandoned by Meta”

“Using an allocator without memory protections in 2026”

CriticizesComment from 16 Mar 2026 in “Jemalloc un-abandoned by Meta”

“If you changed from glibc to jemalloc and that solved your issues”

RecommendsComment from 16 Mar 2026 in “Jemalloc un-abandoned by Meta”

“It did saved us a lot of AWS costs”

RecommendsComment from 16 Mar 2026 in “Jemalloc un-abandoned by Meta”

“jemalloc seems to fragment and leak the least for processes running for months”

RecommendsComment from 16 Mar 2026 in “Jemalloc un-abandoned by Meta”

“It still beat mimalloc when I checked 4-5 years ago.”

RecommendsComment from 16 Mar 2026 in “Jemalloc un-abandoned by Meta”

“It always holds up in benchmarks against any new flavor of the month malloc that comes out.”

RecommendsComment from 16 Mar 2026 in “Jemalloc un-abandoned by Meta”

“We used jemalloc for a while which helped since it allocates memory better for multithreaded applications”

RecommendsComment from 19 Feb 2026 in “Bridging Elixir and Python with Oban”

“modern allocators like mimalloc or jemalloc easily outperformed modern GCs of Java”

RecommendsComment from 17 Nov 2025 in “Garbage collection is useful”

“We had good results using jemalloc this way.”

RecommendsComment from 6 Nov 2025 in “How often does Python allocate?”

Counts come from 1,795,640 Hacker News comments, November 2025 to November 2026. How we count. Report a mistake.