Back to mods
nicelight_memoryfix project artwork

CurseForge · Minecraft mod

nicelight_memoryfix

Reduces memory buildup and potential leaks in large Forge 1.20.1 modpacks through automatic heap-pressure cleanup, targeted cache clearing, unload hooks, and diagnostic tools.

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which nicelight_memoryfix release should I use?

Updated 2 months ago
Latest stable file nicelight_memoryfix_deep-1_7_2-pure-mixin-engine.jar
Game version 1.20.1, 1.20
Loader Forge

nicelight_memoryfix_deep-1_7_2-pure-mixin-engine.jar targets 1.20.1, 1.20 with Forge. The project page does not say whether this file belongs on the client, dedicated server, or both. No extra mods listed for this file.

Where it goes

Is nicelight_memoryfix required on the client, server, or both?

The project page does not say whether this file belongs on the client, dedicated server, or both.

Client Source doesn’t say
Dedicated server Source doesn’t say
Loader for this release Forge
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

The source does not explicitly classify this release as client-only or server-only.

What else does nicelight_memoryfix_deep-1_7_2-pure-mixin-engine.jar need?

nicelight_memoryfix_deep-1_7_2-pure-mixin-engine.jar. Change the file and its required mods may change too.

No extra mods listed for this file

This file does not list any required mods. Do not add a library just because a different file uses it.

This file does not list any required or optional mods.

Before you install it

Add nicelight_memoryfix without breaking your instance.

Built for nicelight_memoryfix_deep-1_7_2-pure-mixin-engine.jar. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use nicelight_memoryfix_deep-1_7_2-pure-mixin-engine.jar. It targets 1.20.1, 1.20 with Forge; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    This file does not list any required mods. Do not add a library just because a different file uses it.

  3. 03

    Put it on the correct side

    The project page does not say whether this file belongs on the client, dedicated server, or both.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside nicelight_memoryfix_deep-1_7_2-pure-mixin-engine.jar. It opens that exact file at the source.

About this project

What does nicelight_memoryfix add?

Nicelight Memory Fix Deep

Forge 1.20.1 Memory Leak Mitigation Epic Fight Safe Non-Intrusive Sweeps

Low-overhead memory-leak mitigation and deep cache-management utility tailored for heavy modpacks and marathon sessions.


Overview

In large modpacks with extensive exploration, high-intensity combat, and continuous dimension-hopping, retained object references gradually accumulate over time. Nicelight Memory Fix Deep prevents progressive performance degradation and out-of-memory crashes by actively severing orphaned references that standard Java Garbage Collection (GC) cannot reclaim on its own.


Compatibility

Engineered to run seamlessly alongside the modern Forge optimization ecosystem with zero mixin conflicts:

  • Fully Compatible: ModernFix, FerriteCore, Embeddium / Rubidium, ServerCore, Noisium, Oculus, and Smooth Boot.
  • Combat Animation Safe: Zero desync or null pointer issues when paired with Epic Fight or heavy combat animation frameworks.

Core Architectural Features

1. Upstream Vanilla Bug Fixes

  • MC-101260 Fix: Clears player raycast crosshair pointers on world unload, allowing discarded worlds to be safely reclaimed by the garbage collector.
  • MC-260605 Fix: Cleans dead mob Brain memory references immediately upon entity removal.
  • LevelRenderer Patch: Flushes the destroyingBlocks map upon leaving a dimension, preventing cross-dimension texture retention leaks.
  • SoundEngine Patch: Drains the instanceToChannel map on sound termination, stopping OpenAL audio handle exhaustion.
  • MapRenderer Patch: Evicts stale held-map textures from client heap space when closed.
  • Biome Temperature Cache: Purges thread-local temperature caches during routine cleanups.

2. ThreadLocal Leak Mitigation

  • Scans background worker threads (Forge, Netty, Minecraft) via an internal JVM Unsafe accessor to detach retained world and classloader references without requiring --add-opens JVM startup flags.

3. Crash-Free Brain AI Cleanup (Epic Fight Compatible)

  • Modifies expired mob memory targets to Optional.empty() instead of stripping map keys entirely. This effectively severs memory links from dead mobs while preserving 100% crash-free stability with Epic Fight and third-party entity AI routines.

4. World & Chunk Ticket Eviction

  • Purges stale DistanceManager tickets, unloads abandoned POI SectionStorage, and flushes cached 3D StructureTemplate NBT payloads from memory.

5. Audio & Native VRAM Maintenance

  • Terminates looping ghost sound channels and reclaims orphaned OpenAL audio buffers back to the operating system.
  • Trims native direct-memory allocations inside BufferBuilder.

6. Non-Intrusive Heap Pressure Automation

  • Monitors heap consumption across three dynamic thresholds: 50% (Soft), 70% (Light), and 82% (Strong).
  • Sweeps execute asynchronously in single-digit milliseconds without triggering stop-the-world System.gc() pauses during active gameplay.

Commands Reference (/nm or /nmem)

Command Description
/nm stats (or /nm) Displays real-time used heap, committed memory, watchdog world status, and active mixin counters.
/nm sweep [Full Deep Clean] Triggers an exhaustive purge across all 16+ cache tiers (audio, textures, tickets, thread locals, brain states) and outputs a diagnostic breakdown.
/nm scan Runs a non-destructive diagnostic scan to inspect objects currently retained on background worker threads.
/nm gc Executes targeted cache cleanups followed by a single manual JVM garbage collection cycle.
/nm pressure Evaluates current heap pressure against configured thresholds and executes the corresponding mitigation tier.
/nm watchdog Checks whether any unloaded dimensions or worlds remain retained in memory.
/nm config Prints an overview of active runtime configuration values.
/nm discover Scans loaded mod JARs to identify newly registered cache classes.

Configuration

All memory thresholds, sweep intervals, and subsystem hooks can be configured in:

config/nicelight_memoryfix_deep.json

Project description from CurseForge.

Pick your setup

nicelight_memoryfix by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

2 available setups

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

nicelight_memoryfix versions and loaders

6 of 6 releases match

Looking for an older file? The official CurseForge project page is in Resources.