Mods
Resource Packs
Data Packs
Modpacks
Shaders
Plugins
Mods Resource Packs Data Packs Plugins Shaders Modpacks
Get Modrinth App Upgrade to Modrinth+
Sign in
ModsPluginsData PacksShadersResource PacksModpacks
Sign in
Settings
MemorySweep

MemorySweep

A Mod that automatically clears memory.

27.9k
29
Optimization
AboutChangelogVersions

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.

90% of ad revenue goes to creators

Support creators and Modrinth ad-free with Modrinth+

Compatibility

Minecraft: Java Edition

1.21.x
1.20.1
1.19.2–1.19.4
1.18.2
1.16.5

Platforms

Fabric
Forge
NeoForge

Supported environments

Client-side

Links

Report issues View source

Creators

Tki-sor
Tki-sor Member

Details

Licensed MIT
Published 9 months ago
Updated 9 months ago

Modrinth is open source.

main@656c5b6

© Rinth, Inc.

Company

TermsPrivacyRulesCareers

Resources

SupportBlogDocsStatus

Interact

Discord X (Twitter) Mastodon Crowdin
Get Modrinth App Settings
NOT AN OFFICIAL MINECRAFT SERVICE. NOT APPROVED BY OR ASSOCIATED WITH MOJANG OR MICROSOFT.