Modscraper Modscraper Minecraft
MemorySweep logo

MemorySweep

Mod

by Tki_sor

A Mod that automatically clears memory.

Type

Mod

CurseForge Downloads

1,807,536

CurseForge ID

784959

Modrinth Downloads

145,504

Modrinth ID

3oJ7L0Iq

Last Updated

Jun 12, 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

Similar Mods

Included in Modpacks

External Resources