Modscraper Modscraper Minecraft
MemorySweep logo

MemorySweep

Mod

by Tki_sor

A Mod that automatically clears memory.

Type

Mod

CurseForge Downloads

2,421,572

CurseForge ID

784959

Modrinth Downloads

160,783

Modrinth ID

3oJ7L0Iq

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

Fabric Forge Neoforge

Game Versions

1.16.5 1.18.2 1.19.2 1.19.3 1.19.4 1.20.1 1.21 1.21.1

Recommended Gear

Affiliate

Hardware and extras that pair well with this mod.

As an Amazon Associate I earn from qualifying purchases.

Similar Mods

Included in Modpacks (54)

Show fewer
DarkRPG - RPG with Vampires, Dragons, Magic, Quests, Adventure DarkRPG - RPG with Vampires, Dragons, Magic, Quests, Adventure MineField Mods MineField Mods The Everlasting Fog [The Horrors Cave Dweller, Herobrine, & More] The Everlasting Fog [The Horrors Cave Dweller, Herobrine, & More] Vagrant Saga - RPG Survival Adventure Vagrant Saga - RPG Survival Adventure Project -  Arcane Frontier Project - Arcane Frontier Cookiemon - Pokemon Cobblemon RPG & Cookies Cookiemon - Pokemon Cobblemon RPG & Cookies Tempest Protocol Tempest Protocol Werewolves VS Vampires SMP Werewolves VS Vampires SMP World Terra World Terra Adventure Life - Legacy Adventure Life - Legacy Danny's AOT - Titan Chronicles Danny's AOT - Titan Chronicles Lost_Civilization:Wilds Lost_Civilization:Wilds Builder's Paradise - Enhanced Edition (BPEE) Builder's Paradise - Enhanced Edition (BPEE) TechRPG - RPG with Tech, Magic, Create, Space Exploration TechRPG - RPG with Tech, Magic, Create, Space Exploration Cobblemon - RPG Edition | Cobblemon & RPG [Cobblemon 1.7.3] Cobblemon - RPG Edition | Cobblemon & RPG [Cobblemon 1.7.3] Creepy & Scary RPG Creepy & Scary RPG The Clash of Epochs The Clash of Epochs Steller: The Rise of the Kingdom Steller: The Rise of the Kingdom Z Apocalypse - A Modern Zombie Apocalypse Z Apocalypse - A Modern Zombie Apocalypse Better VR Better VR It Takes a Journey It Takes a Journey Pix Android Boost Pix Android Boost Boosted FPS RPG (Performance Optimized) Boosted FPS RPG (Performance Optimized) Minenufactory Minenufactory ForgottenWinter_legacy ForgottenWinter_legacy ReNightmares Official Server Pack ReNightmares Official Server Pack Haunted Hurricane - Lokolow 100 Dias no Fim do Mundo Haunted Hurricane - Lokolow 100 Dias no Fim do Mundo Mine Piece: The Ultimate Journey Mine Piece: The Ultimate Journey Project Infinity - Infinite possibilities, one world Project Infinity - Infinite possibilities, one world InsaneCraft S2 (Fan Made) InsaneCraft S2 (Fan Made) Apocalipse Light - A Zombie Apocalypse Survival Apocalipse Light - A Zombie Apocalypse Survival InfinityCraft Ultra InfinityCraft Ultra Aruori Aruori Faith in the Backrooms Faith in the Backrooms Gearspack Gearspack GR's RPG: medieval fantasy GR's RPG: medieval fantasy NonsenseCraft - Tensura NonsenseCraft - Tensura LoafCraft's Anime Adventures! LoafCraft's Anime Adventures! MysticCraft Divivded Kingdoms MysticCraft Divivded Kingdoms FOG'S Zombie Apokalypse FOG'S Zombie Apokalypse The aether of create The aether of create The Ultimate Limitless - TUL 2 The Ultimate Limitless - TUL 2 Blighted Dreams Blighted Dreams Create Physic's - A Create Focused Create Physic's - A Create Focused Kreyc's Waterworld Kreyc's Waterworld Pixelmon Adventures   ( Server Pack ) Pixelmon Adventures ( Server Pack ) Create Boundary Engineer Create Boundary Engineer Origins Of Cybertron Official Server Origins Of Cybertron Official Server BluePrint SMP BluePrint SMP Pix Vulka Optimizations Pix Vulka Optimizations Silver's Cobblemon Silver's Cobblemon Berzerkish Horror RPG Berzerkish Horror RPG Pillcraft Pillcraft Cobbled RPG Cobbled RPG

External Resources