CurseForge · Minecraft mod
MemGuard
Reduces RAM usage in large modpacks and servers by deduplicating NBT strings and monitoring memory usage, without forced GC freezes.
Quick answer
Which MemGuard release matches Fabric?
MemGuardFabric v1.0.1 targets 1.21, 1.21.8, 1.21.5 with Fabric. 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 MemGuard required on the client, server, or both?
The project page does not say whether this file belongs on the client, dedicated server, or both.
The source does not explicitly classify this release as client-only or server-only.
What else does MemGuardFabric v1.0.1 need?
MemGuardFabric v1.0.1 on Fabric. Every mod below is checked against that same setup.
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 MemGuard without breaking your instance.
Built for MemGuardFabric v1.0.1 on Fabric. Pick another file and the loader, install side or required mods may change.
- 01
Stick to this file
Use MemGuardFabric v1.0.1. It targets 1.21, 1.21.8, 1.21.5 with Fabric; another release may have different loader, side or dependency requirements.
- 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.
- 03
Put it on the correct side
The project page does not say whether this file belongs on the client, dedicated server, or both.
- 04
Pick the file you checked
Use the “Get this file” button beside MemGuardFabric v1.0.1. It opens that exact file at the source.
About this project
What does MemGuard add?
MemGuard
Lightweight memory helper for modded Minecraft.
Deduplicates repeated NBT strings and keeps an eye on your heap — without ever freezing your game.
🆕 Forge v1.0.5 — no more lag spikes
Older Forge builds (1.0.3 and earlier) forced a full garbage collection every 5 minutes and after every texture atlas upload. In big modpacks that meant a short freeze every few minutes. Version 1.0.5 removes every forced GC: tested in a 364-mod pack, the 609 ms freeze every 5 minutes is gone. If you use MemGuard on Forge, please update.
What MemGuard Does
| Feature | Description |
|---|---|
| NBT String Dedup | Short, repeated NBT strings (item ids, keys, enum names) share one instance instead of being stored thousands of times. Lock-free and size-limited, so it never slows other threads down. |
| Memory Monitor | Writes a short memory status to the log and warns when heap usage gets risky, so you know when a pack needs more RAM or a lower view distance. |
| No Forced GC | MemGuard never calls System.gc(). The JVM's own garbage collector already runs at the right moments. |
MemGuard is a helper, not a miracle: it does not promise specific FPS, MSPT or RAM numbers. For memory leaks, pair it with mods like AllTheLeaks or FerriteCore.
Supported Versions
| Loader | Minecraft | Java | Latest build |
|---|---|---|---|
| Forge | 1.20 – 1.20.6 | 17+ | v1.0.5 |
| NeoForge | 1.21.x | 21+ | v1.0.4 |
| Fabric | 1.21.x | 21+ | v1.0.1 (update with the same fix coming soon) |
Check the Files tab for the exact build per version.
Compatibility Notes
- Works alongside FerriteCore and AllTheLeaks.
- Safe to run with
-XX:+DisableExplicitGC(common in server packs). - If logs mention missing Create classes, check that Create and its addons are on the same update line (Update 5 with Update 5 addons, Update 6 with Update 6 addons). That is not caused by MemGuard.
Quick Install
- Install the loader for your Minecraft version.
- Put the MemGuard jar for your loader in the
modsfolder. - Start the game and look for
[MemGuard]lines inlatest.log.
Support the Project
If MemGuard helps your pack, consider leaving a tip — it keeps the coffee ☕ flowing and the fixes coming!
Found a problem? Leave a comment with your latest.log — every report helps. 💙
Project description from CurseForge.
Pick your setup
MemGuard by Minecraft version and loader
Choose the version and loader you play, then open the matching release.
1.21.10
2 loader builds1.21.9
2 loader builds1.21.8
2 loader builds1.21.7
2 loader builds1.21.6
2 loader builds1.21.5
2 loader builds1.21.4
2 loader builds1.21.3
2 loader builds1.21.2
2 loader builds1.21.1
2 loader builds1.21
2 loader buildsShowing the newest 12 of 19 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
MemGuard versions and loaders
MemGuardFabric v1.0.1
memguard-1.0.1.jar
19 Mar 2026
MemGuardFabric
memorymod-1.0.0.jar
21 Feb 2026
Looking for an older file? The official CurseForge project page is in Resources.