Home›Java›Mods›MemoryGuard
MemoryGuard
ModsJava

MemoryGuard

Java mod listed for Minecraft 1.20–26.x. Downloads from the MC Java Mods app on Android.

by JonathanYang · on Modrinth

⬇ Download on Modrinth

MemoryGuard

Automatically warns players and safely shuts down your Minecraft server when memory runs low, helping reduce the risk of world-file corruption caused by crashes.

MemoryGuard regularly monitors JVM heap memory and available host or container memory. When either falls below the configured threshold, the plugin broadcasts a warning and starts a countdown before shutting down the server normally, giving world data a chance to be saved.

Features

Commands

These commands are restricted to server operators by default.

Installation and Configuration

Place the plugin JAR in your server’s plugins folder and restart the server. On first startup, the configuration file is created at plugins/MemoryGuard/config.yml.

The default memory threshold is 1.5 GB, the check interval is 30 seconds, and the shutdown countdown is 10 seconds. Adjust these values in the configuration file. Set language to en or zh to choose the message language, then run /memoryguard reload to apply the changes.

MemoryGuard shuts the server down normally, but it cannot restart Minecraft by itself. To restart automatically, enable restart-after-stop in your server hosting panel or startup script.

Compatibility

Compiled against the Paper API and intended for Paper and Purpur 1.20–26.3. Other Bukkit/Paper-based server software may work, but has not been individually tested and is not guaranteed to be compatible.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

File checked by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more