AllTheLeaks (Memory Leak Fix)

A Forge / NeoForge optimization mod aimed at mitigating memory leaks. Distributed on CurseForge only.

📖 Introduction

AllTheLeaks is an optimization mod by Uncandango, distributed on CurseForge, aimed — as the name says — at Minecraft's memory leak problems. It supports Forge and NeoForge.

What a memory leak is here — it's when Java's garbage collector can't reclaim objects the game no longer uses, because something is still holding a reference to them. In Minecraft this typically happens when a world, dimension, or chunk unloads but something somewhere never lets go. You won't notice it in a single session; but leave the same instance running for hours, or a server running for days, and available heap steadily shrinks until you hit freezes or a crash.

The mod's purpose is to reduce that. For exactly which leaks it handles and how, the CurseForge mod page is the authoritative source — no other public documentation or repository is verifiable.

🕒 When to Use This Mod

It matters when you keep a world alive for a long time, or run a server continuously for days. In a short few-hour session there simply isn't enough time for leaks to accumulate, so nothing will look different.

📦 Where It Matters Most

Large modpacks and long-running multiplayer servers are the environments where this class of tool matters. The more mods you stack, the higher the odds that one of them is holding onto a world or chunk reference it shouldn't.

🎮 How It Changes Your Playthrough

Like any optimization mod that's doing its job, you don't notice it while playing. The only thing you'd feel is an instance that's been running for hours still behaving roughly like it did on launch.

🚀 Getting Started — First 30 Minutes

AllTheLeaks is an install-and-leave utility. There's no in-game progression to it.

Step 1 — Check for a duplicate install

  1. Open your instance's mods folder
  2. Search for it — it may already be bundled
  3. If not, grab the CurseForge build matching your modpack's Minecraft version and loader (Forge / NeoForge)

Step 2 — Take a baseline measurement

An optimization mod only means anything if you compare before and after — and memory leaks in particular only reveal themselves over time, so you can't judge by feel.

  • Use a profiler like Spark to record heap usage over a long session
  • Record again under the same conditions after installing
  • Compare whether usage keeps climbing over time, or drops back down after garbage collection

Step 3 — If the problem persists

If a specific mod is the root cause, a mitigation mod can only do so much. Check the heap profile to see which classes are being retained, and report it on that mod's issue tracker — that's ultimately the only real fix.

💡 Gameplay Tips

  • Check whether your modpack already ships it. Search your instance's mods folder or look at the in-game mod list — large packs often bundle a tool of this kind already.
  • You need a profiler to actually track memory. Something like Spark lets you watch heap usage over time, which is the only way to tell whether a problem improved or was never there to begin with.

⚠️ Common Confusing Points

  • • You won't see anything in a short session — memory leaks accumulate over time, and a few hours simply isn't long enough for them to build up. "I can't tell any difference" is the normal reaction.
  • • A mitigation mod doesn't eliminate every leak — if the root cause lives in another mod's code, it isn't fully solved until that mod is fixed.

❓ FAQ

I installed it and can't feel any difference.

Memory leaks are a problem that accumulates over time. In a few-hour session there isn't enough time for one to build up, so nothing will look different. And if your modpack didn't have a serious leak to begin with, seeing no improvement is the correct outcome. To actually verify, compare heap usage over a long session with a profiler like Spark.

Can I run it alongside other optimization mods?

Optimization mods generally target different domains — rendering, game logic, memory — so people commonly run several. That said, how a particular combination behaves depends on your setup, so adding them one at a time and confirming stability makes it far easier to identify the culprit if something breaks.

📦 Modpacks With This Mod

🔗 Related Mods