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 today
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)

**Nicelight Memory Fix Deep** is a memory-leak mitigation and cache-management utility for Minecraft Forge 1.20.1, **specifically tailored for heavy modpacks and marathon gaming sessions**.

In large modpacks with extensive exploration, combat, and dimension-hopping, memory leaks gradually accumulate over time. This mod keeps your game running smoothly over hours of continuous play by actively severing orphaned references that Java's Garbage Collector cannot clean up on its own.

📌 What This Mod Does:

🤝 Compatibility with Other Optimization Mods

Designed to run smoothly alongside the modern optimization stack with zero mixin conflicts:

* **ModernFix**, **FerriteCore**, **Embeddium / Rubidium**, **ServerCore**, **Noisium**, **Oculus**, and **Smooth Boot**.

  1. **Vanilla Bug Fixes**:
    * **MC-101260 Fix**: Clears player raycast crosshair pointers on world unload so old worlds can be garbage collected.
    * **MC-260605 Fix**: Cleans dead mob Brain memory references upon entity removal.
    * **LevelRenderer Patch**: Flushes the destroyingBlocks map when leaving a dimension to prevent texture leak.
    * **SoundEngine Patch**: Drains the instanceToChannel map on sound stop to stop OpenAL audio handle leaks.
    * **MapRenderer Patch**: Evicts stale held-map textures from memory when closed.
    * **Biome Temperature Cache**: Purges ThreadLocal temperature caches during cleanup.

  2. **ThreadLocal Leak Mitigation**:
    * Scans background worker threads (Forge/Netty/Minecraft) using an internal JVM Unsafe bypass to detach retained world/class objects without requiring --add-opens flags.

  3. **Safe Brain AI Cleanup (100% Epic Fight Compatible)**:
    * Sets expired mob memory targets to Optional.empty() instead of deleting map keys. This severs memory links from dead mobs while preserving complete crash-free stability with **Epic Fight** and combat animation mods.

  4. **World & Chunk Ticket Eviction**:
    * Purges stale DistanceManager tickets, evicts unloaded POI SectionStorage, and flushes cached 3D StructureTemplate NBT data.

  5. **Audio & VRAM Maintenance**:
    * Stops looping ghost sound channels and reclaims orphaned OpenAL audio buffers back to the operating system.
    * Trims BufferBuilder native memory allocations.

  6. **Non-Intrusive Heap Pressure Automation**:
    * Monitors RAM at 50% (Soft), 70% (Light), and 82% (Strong).
    * Sweeps run silently in milliseconds without calling forced System.gc() freezes during play.


⌨️ All In Commands (/nm or /nmem)

* /nm stats (or /nm) — Displays real-time used RAM, committed memory, watchdog world status, and active mixin interception counters.
* /nm sweep — **[Full Deep Clean]** Manually triggers a comprehensive purge across all 16+ cache tiers (audio, textures, chunk tickets, threadlocals, brain memories) and prints a breakdown report in chat.
* /nm scan — Runs a read-only diagnostic scan to detect suspect objects currently retained on background worker threads.
* /nm gc — Executes targeted cache cleanups and manually triggers a single JVM Garbage Collection cycle.
* /nm pressure — Evaluates current heap pressure against configured thresholds and runs the corresponding cleanup tier.
* /nm watchdog — Checks whether any unloaded dimensions or worlds are still alive in memory.
* /nm config — Prints a summary of all active configuration settings.
* /nm discover — Manually scans loaded mod jars to discover newly loaded cache classes.


⚙️ Configuration

All settings can be customized 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

4 of 4 releases match

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