CurseForge · Minecraft mod
MemorySweep
A Mod that automatically clears memory.
Quick answer
Which MemorySweep release matches 1.21.1 NeoForge?
MemorySweep-1.21.1-neoforge-2.0.3-fix.jar targets 1.21.1 with NeoForge. The project page does not say whether it belongs on the client. The project page does not say whether it belongs on the dedicated server. All 1 required mods have matching files.
Where it goes
Is MemorySweep required on the client, server, or both?
The project page does not say whether it belongs on the client. The project page does not say whether it belongs on the dedicated server.
The source does not explicitly classify this release as client-only or server-only.
What else does MemorySweep-1.21.1-neoforge-2.0.3-fix.jar need?
MemorySweep-1.21.1-neoforge-2.0.3-fix.jar on 1.21.1 NeoForge. Every mod below is checked against that same setup.
Install Architectury API 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 MemorySweep without breaking your instance.
Built for MemorySweep-1.21.1-neoforge-2.0.3-fix.jar on 1.21.1 NeoForge. Pick another file and the loader, install side or required mods may change.
- 01
Stick to this file
Use MemorySweep-1.21.1-neoforge-2.0.3-fix.jar. It targets 1.21.1 with NeoForge; another release may have different loader, side or dependency requirements.
- 02
Bring the mods it needs
Install Architectury API first. We found matching files for this game-version and loader setup.
- 03
Put it on the correct side
The project page does not say whether it belongs on the client. The project page does not say whether it belongs on the dedicated server.
- 04
Pick the file you checked
Use the “Get this file” button beside MemorySweep-1.21.1-neoforge-2.0.3-fix.jar. It opens that exact file at the source.
About this project
What does MemorySweep add?
This mod can call System.gc() periodically to clean up your memory.
It also adds the /memorysweep_c and /memorysweep_s commands to manually clean memory.
The default time interval of cleaning memory is 15 minutes, and you can modify it in the configuration file.
Memory can also be cleaned up by memory usage.(Default 75%)
If there is lag during garbage collection, please add the JVM parameter -XX:+ExplicitGCInvokesConcurrent
Of course, I also recommend trying out ZGC, which is newly added in Java 11 and does not require the parameters mentioned above:
-XX:+UnlockExperimentalVMOptions -XX:+UseZGC
Please do not use any other GC concurrently with ZGC and do not add -UseAdaptiveSizePolicy
Project description from CurseForge.
Pick your setup
MemorySweep by Minecraft version and loader
Choose the version and loader you play, then open the matching release.
1.21.1
2 loader builds1.20.1
2 loader builds1.19.4
1 loader build1.19.3
1 loader build1.19.2
1 loader build1.18.2
1 loader build1.16.5
1 loader buildCheck the dependencies, then try the file in a copied instance before changing a world you care about.
Recent files
MemorySweep versions and loaders
MemorySweep-1.21.1-neoforge-2.0.3-fix.jar
23 Jun 2025
MemorySweep-1.21.1-neoforge-2.0.3.jar
22 Jun 2025
memorysweep-1.21.1-1.1.2-fix-neoforge.jar
28 Nov 2024
memorysweep-1.21.1-1.1.2-neoforge.jar
16 Sept 2024
memorysweep-1.21.1-1.1.1-neoforge.jar
11 Sept 2024
Looking for an older file? The official CurseForge project page is in Resources.