MemorySweep
Modby Tki_sor
A Mod that automatically clears memory.
Type
Mod
CurseForge Downloads
2,421,572
CurseForge ID
Modrinth Downloads
160,783
Modrinth ID
Last Updated
Nov 6, 2026
Description
This mod can call System.gc() periodically to clean up your memory.
Also, it adds the /memorysweep command 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 90%)
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
If you have suggestions you can comment or Issues.
Compatibility
Mod Loaders
Game Versions
Recommended Gear
AffiliateHardware and extras that pair well with this mod.
As an Amazon Associate I earn from qualifying purchases.
Similar Mods
Mob Spawner Control
Allows modpack makers to customize vanilla mob spawners behaviour.
I18nUpdateMod
A Mod For Chinese Player
SimpleHarvest
Right click crop harvesting
Enhanced Block Entities
Reduce block entity FPS lag with almost no compromises, and improve their visuals
Mob Sunscreen
Stop Zombies and Skeletons from Burning in the Sun!
Create Jetpack
Upgrade your backtank and utilize the pressurized air to fly
Included in Modpacks (54)
Show fewer
The Clash of Epochs
Pix Android Boost
Pix Vulka Optimizations
Pillcraft