CurseForge · Minecraft mod
MemorySweep
A Mod that automatically clears memory.
Quick answer
Which MemorySweep release matches 1.17.1 Forge?
MemorySweep 3.0.0 (Universal) targets 1.17.1, 1.16.5, 1.19.4 with Fabric, Forge, NeoForge. 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 MemorySweep 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 MemorySweep 3.0.0 (Universal) need?
MemorySweep 3.0.0 (Universal) on 1.17.1 Forge. 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 3.0.0 (Universal) on 1.17.1 Forge. Pick another file and the loader, install side or required mods may change.
- 01
Stick to this file
Use MemorySweep 3.0.0 (Universal). It targets 1.17.1, 1.16.5, 1.19.4 with Fabric, Forge, 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 this file belongs on the client, dedicated server, or both.
- 04
Pick the file you checked
Use the “Get this file” button beside MemorySweep 3.0.0 (Universal). 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.
26.3
3 loader builds26.2
3 loader builds26.1.2
3 loader builds1.21.1
3 loader builds1.20.4
3 loader builds1.20.1
3 loader builds1.19.4
3 loader builds1.19.3
1 loader build1.19.2
1 loader build1.18.2
3 loader builds1.17.1
3 loader builds1.16.5
3 loader buildsCheck the dependencies, then try the file in a copied instance before changing a world you care about.
Recent files
MemorySweep versions and loaders
MemorySweep 3.0.0 (Universal)
memorysweep-universal-3.0.0.jar
7 Oct 2026
Looking for an older file? The official CurseForge project page is in Resources.