Skip to main content
warningMod ErrorsAffects: All modded versions

How to Fix Mod Memory Leaks

Fix Mod Memory Leaks by using Spark profiler to identify and report the leaking mod.

Quick Fix

Use Spark profiler to identify the mod leaking memory. /spark heapdump to analyze heap usage.

Error Message

Gradual memory increase / OutOfMemoryError after extended play

How to Fix

1

Install Spark profiler

2

Run /spark heapdump and analyze with Eclipse MAT

3

Update the leaking mod

4

Restart the game periodically as a workaround

5

Report the leak to the mod developer with heap dump data

Common Causes

  • Mod not releasing references to objects
  • Event handler accumulating data
  • Texture or model cache growing unbounded

Diagnostic Steps

  1. Install Spark
  2. Play until memory grows high
  3. Take a heap dump
  4. Analyze for retained objects

FAQ

How do I know if a mod is leaking memory?

If memory usage keeps growing and never decreases during GC, there is a leak. Spark heap dump will show which objects are accumulating.

Related Errors

Need More Help?