Back to mods
MemoryFreeze Fix project artwork

CurseForge · Minecraft mod

MemoryFreeze Fix

Say goodbye to Minecraft freezing up! This mod Cleans and Resets high RAM usage that causes Stutters and Slows Down your PC.

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

Quick answer

Which MemoryFreeze Fix release should I use?

Updated last month
Latest stable file memoryfreeze-fix-2.0.0+26.2.jar
Game version 26.2
Loader Fabric

MemoryFreeze Fix memoryfreeze-fix-2.0.0+26.2.jar targets 26.2 with Fabric. The project page does not say whether this file belongs on the client, dedicated server, or both. All 1 required mods have matching files.

Where it goes

Is MemoryFreeze Fix 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 Fabric
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 MemoryFreeze Fix memoryfreeze-fix-2.0.0+26.2.jar need?

memoryfreeze-fix-2.0.0+26.2.jar. Change the file and its required mods may change too.

All 1 required mods have matching files

Install Cloth Config API (Fabric/Forge/NeoForge) first. We found matching files for this game-version and loader setup.

We only count dependency files that match this setup. A file for another loader does not fill the gap.

Before you install it

Add MemoryFreeze Fix without breaking your instance.

Built for MemoryFreeze Fix memoryfreeze-fix-2.0.0+26.2.jar. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use memoryfreeze-fix-2.0.0+26.2.jar. It targets 26.2 with Fabric; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    Install Cloth Config API (Fabric/Forge/NeoForge) first. We found matching files for this game-version and loader setup.

  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 memoryfreeze-fix-2.0.0+26.2.jar. It opens that exact file at the source.

About this project

What does MemoryFreeze Fix add?

MemoryFreeze Fix

Release 2.0

Forge & Neoforge versions available !

A Minecraft Mod that Cleans Memory before it reaches 100% , therefore not causing any Stuttering when the allocated memory reaches It's limit.

Author: zSouul

What it does

  • Watches what the garbage collector really does: pause times, full GCs, and how much memory is still in use after a GC. If something is wrong it tells you, for example that your heap is too small.
  • Frees memory (a GC call) only when you won't notice: on loading screens, with no world loaded (title screen, world list), on the "loading terrain" screen, while the window is unfocused, or on a server with nobody online.
  • Turns on G1's periodic GC while the game runs (if your launcher hasn't), so old garbage gets cleaned up in the background when the game is paused or idle.
  • /memoryfreeze advice suggests launcher arguments based on numbers it measured on your machine.
  • /memoryfreeze diagnose writes a heap report grouped by mod, so you can see which mod is holding memory.

Requirements

  • Fabric Loader 0.19.3 - 0.20.0
  • Compatible Version of Fabric API Optional :
  • Compatible Version of Cloth Config API (for the config screen)

Commands

These exist on the server (trim, deepclean, diagnose, reload and hud need operator level 2) and on the client with the same names, so they work in singleplayer and on any server. The client versions only affect your own game.

Command What it does
/memoryfreeze status Health check result, GC overhead, longest pause, live data, last cleanup
/memoryfreeze advice Suggested launcher arguments for your machine
/memoryfreeze trim Cleans up now if the pause would be short, otherwise waits for the next safe moment
/memoryfreeze deepclean Cleans up right now, however long the pause is
/memoryfreeze diagnose Heap report grouped by mod, saved to a file
/memoryfreeze reset Client only. Leaves and rejoins the current world or server, which frees the memory the world was holding
/memoryfreeze reload Reloads the config file
/memoryfreeze hud Turns the on-screen meter on or off

There are also three keybinds (unbound by default) under Options > Controls > MemoryFreeze Fix: deep clean, full reset and heap report. They work on the title screen too.

Config

Use the config screen or edit config/memoryfreeze-fix.json. Values outside the allowed range are corrected when the file is loaded. A config from the old 1.x version is converted automatically and the old file is kept as memoryfreeze-fix.v1.json.bak.

Option Default What it does
autoCleanupEnabled true Allow automatic cleanups (safe moments only)
cleanupMinUsedPercent 50 Skip cleanups while the heap is emptier than this
cleanupMinReclaimMB 256 Skip cleanups unless the old generation grew this much since its lowest point after a GC
cleanupCooldownSeconds 120 Minimum time between automatic cleanups (it grows if cleanups free little)
safeMomentGraceMillis 1500 How long a safe moment has to last before a cleanup starts
cleanupOnPauseMenu false Also clean up in the pause menu. This can cause a small hitch, and the periodic GC already handles a paused game
cleanupWhenUnfocused true Also clean up while the window is unfocused or minimized
gameplayPauseBudgetMs 0 Advanced. Above 0, a cleanup may also run during gameplay if the heap is nearly full and the expected pause is no longer than this
gameplayPressurePercent 92 Heap percentage where the budget above applies
deepCleanMaxPasses 1 GC passes for a manual deep clean
runtimeTuningEnabled true Turn on G1's periodic GC while the game runs
g1PeriodicGcIntervalSeconds 15 Seconds without a GC before G1 starts a background cycle
healthAdviceEnabled true Show a chat message when the health check finds a problem
undersizedLivePercent 70 If more than this share of -Xmx is still live after a full GC, the heap is too small
longPauseMs 250 A GC pause at least this long counts as a long pause
autoDiagnoseEnabled true Write a heap report on its own (safe moments only) when the heap is too small or a leak is suspected
autoDiagnoseAfterSeconds 120 How long the problem has to last first
autoDiagnoseCooldownSeconds 900 Minimum time between automatic reports
pollIntervalMillis 1000 How often the watchdog checks things
hudEnabled false Show the memory meter in the top left
hudDetails true Also show GC overhead, longest pause and live data
chatNotifications true Show chat messages for important events. Results of commands you run are always shown
verboseChat false Also show a message for every automatic cleanup
logJvmAdviceOnStartup true Log launcher argument suggestions on startup if your setup looks off

Things to know

  • A mod can't do more than a GC call can. If a cleanup frees little, the memory is really in use, either by the world or by another mod. In that case use /memoryfreeze reset, give the game more memory, or look at what the heap report shows.
  • A forced GC stops the game under G1 whenever it runs. That is why automatic ones are limited to moments you won't notice. If you want almost no GC pauses at all, use Generational ZGC. That is a launcher setting, /memoryfreeze advice shows the flags for your Java version.
  • If your launcher passes -XX:+DisableExplicitGC, GC calls do nothing. The mod notices this and tells you.
  • The mod needs the jdk.management module for GC events and the runtime tuning. The Java runtimes that come with Minecraft have it. Without it the mod falls back to rough polling and skips the tuning.

Project description from CurseForge.

Pick your setup

MemoryFreeze Fix by Minecraft version and loader

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

43 available setups

Showing the newest 12 of 15 game versions. Older files are in the list below.

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

Recent files

MemoryFreeze Fix versions and loaders

50 of 50 releases match

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