Back to mods
MemorySweep project artwork

CurseForge · Minecraft mod

MemorySweep

A Mod that automatically clears memory.

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which MemorySweep release matches 1.21.1 NeoForge?

Updated 1 year ago
Best match for your filters MemorySweep-1.21.1-neoforge-2.0.3-fix.jar
Game version 1.21.1
Loader NeoForge

MemorySweep-1.21.1-neoforge-2.0.3-fix.jar targets 1.21.1 with NeoForge. The project page does not say whether it belongs on the client. The project page does not say whether it belongs on the dedicated server. 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 it belongs on the client. The project page does not say whether it belongs on the dedicated server.

Client Source doesn’t say
Dedicated server Source doesn’t say
Loader for this release NeoForge
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

The source does not explicitly classify this release as client-only or server-only.

What else does MemorySweep-1.21.1-neoforge-2.0.3-fix.jar need?

MemorySweep-1.21.1-neoforge-2.0.3-fix.jar on 1.21.1 NeoForge. Every mod below is checked against that same setup.

All 1 required mods have matching files

Install Architectury API first. We found matching files for this game-version and loader setup.

Architectury API Needed by MemorySweep-1.21.1-neoforge-2.0.3-fix.jar
required
Matching file found Matched file: [NeoForge 1.21] v13.0.11

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-1.21.1-neoforge-2.0.3-fix.jar on 1.21.1 NeoForge. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use MemorySweep-1.21.1-neoforge-2.0.3-fix.jar. It targets 1.21.1 with NeoForge; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    Install Architectury API first. We found matching files for this game-version and loader setup.

  3. 03

    Put it on the correct side

    The project page does not say whether it belongs on the client. The project page does not say whether it belongs on the dedicated server.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside MemorySweep-1.21.1-neoforge-2.0.3-fix.jar. 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

If you have suggestions you can comment or Issues.

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.

9 available setups

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

MemorySweep versions and loaders

5 of 39 releases match
Clear filters

Looking for an older file? The official CurseForge project page is in Resources.