Back to mods
Memory Leak project artwork

Modrinth · Minecraft mod

Memory Leak

A server side administrator and developer tool to intentionally cause controlled memory leaks. Perfect for stress testing servers, testing memory monitoring tools, or simulating memory pressure scenarios.

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

Quick answer

Which Memory Leak release matches 26.3?

Updated 6 days ago
Best match for your filters 2.1.0+velocity
Game version 1.7.2, 1.7.3, 1.7.4
Loader velocity

Memory Leak 2.1.0+velocity targets 1.7.2, 1.7.3, 1.7.4 with velocity. The project page does not say whether this file belongs on the client, dedicated server, or both. No extra mods listed for this file.

Where it goes

Is Memory Leak required on the client, server, or both?

The project page does not say whether this file belongs on the client, dedicated server, or both.

Client Source doesn’t say
Dedicated server Source doesn’t say
Loader for this release velocity
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 Memory Leak 2.1.0+velocity need?

2.1.0+velocity on 26.3. Every mod below is checked against that same setup.

No extra mods listed for this file

This file does not list any required mods. Do not add a library just because a different file uses it.

This file does not list any required or optional mods.

Before you install it

Add Memory Leak without breaking your instance.

Built for Memory Leak 2.1.0+velocity on 26.3. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use 2.1.0+velocity. It targets 1.7.2, 1.7.3, 1.7.4 with velocity; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    This file does not list any required mods. Do not add a library just because a different file uses it.

  3. 03

    Put it on the correct side

    The project page does not say whether this file belongs on the client, dedicated server, or both.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside 2.1.0+velocity. It opens that exact file at the source.

About this project

What does Memory Leak add?

Memory Leak

Memory Leak is a Minecraft server mod for generating controlled memory pressure. It allocates memory over a set number of server ticks and shows progress in a boss bar for administrators.

Use it on test servers. Excessive allocations can crash a server.

Supported Minecraft versions

Minecraft Fabric and Quilt NeoForge Forge Java
1.20.1 Yes Yes 17
1.21.1 Yes Yes 21
1.21.10 Yes Yes 21
1.21.11 Yes Yes 21
26.1.1, 26.1.2, 26.2 Yes Yes 25
26.3 Yes Yes 25

Download the jar for your Minecraft version and loader from Modrinth and place it in the server's mods directory. On Fabric and Quilt, also install Fabric API for your Minecraft version. Clients can join without Memory Leak installed. For Minecraft 26.1.1 and 26.2, use the 26.1.2 jar.

Commands

The commands require level 4 operator access or Minecraft's equivalent administrator permission.

Command Description
/leak start <MB> <seconds> Allocate 1 to 10,000 MB over 1 to 3,600 seconds.
/leak stop Stop allocating and keep the leaked memory.
/leak clear Stop allocating and release all leaked memory.
/leak status Show the current progress or total leaked memory.

Build the mods

Set JAVA_HOME to a JDK 25 installation and run ./gradlew buildAll from the repository root. On Windows use .\gradlew.bat buildAll. Gradle finds or downloads the JDKs required by the individual nodes. The task runs the core tests and writes each mod jar to versions/<node>/build/libs/ and each plugin jar to <platform>/build/libs/.

To build one jar, run ./gradlew :<node>:assemble, for example ./gradlew :1.20.1-forge:assemble.

Add a Minecraft version

  1. Copy an existing loader's versions/<minecraft>-<loader>/gradle.properties into a new node directory. Set the Minecraft, Java, loader, and API versions.
  2. Set minecraft_versions to the comma-separated Minecraft releases you plan to verify. This list controls loader metadata and Modrinth game versions. Supply fabric_api_version_<minecraft> or loader_version_<minecraft> if a second release uses a different runtime dependency.
  3. Make Minecraft or loader API changes in src/main/java/com/hezaerd/memoryleak/MemoryLeak.java using Stonecutter conditions. Keep allocation and command replies in core/.
  4. Build the matrix and smoke-test the new node and every release in its list.

Run dedicated server smoke tests

Set JAVA_HOME_17, JAVA_HOME_21, and JAVA_HOME_25 to the corresponding JDK directories and build the jars. Run the script with Python 3.10 or later. Passing --accept-eula accepts the Minecraft EULA for the test servers.

python scripts/smoke-mods.py --accept-eula
python scripts/smoke-mods.py --accept-eula 1.20.1-forge

The script uses throwaway server directories under .smoke/. It leaves the console and installer logs there for inspection.

Server plugins

Build once per platform. Copy the matching jar to the server's plugin directory.

Platform Jar in the module's build/libs directory Compatibility Install in
Bukkit, Spigot, Paper, Purpur, Folia memory-leak-bukkit-<version>.jar Minecraft 1.13.2 through 26.3, where the platform has a release plugins/
Velocity memory-leak-velocity-<version>.jar Velocity 3.5.1 and 4.3.1 plugins/
BungeeCord, Waterfall memory-leak-bungee-<version>.jar BungeeCord build 2111 and Waterfall final build 615 plugins/
Sponge memory-leak-sponge-<version>.jar SpongeAPI 17 on Minecraft 1.21.10 mods/

The command and boss bar use the memoryleak.admin permission. Bukkit and Sponge grant access to operators by default. Proxies have no Minecraft operator list. The proxy console has access by default, and player access requires the proxy permission. BungeeCord and Waterfall have no boss bar API.

The Bukkit jar uses the Bukkit scheduler on Bukkit-derived servers and selects Folia's global region scheduler at runtime. Reflection keeps the jar compatible with the Spigot 1.13.2 API. The smoke test covers Paper at both ends of the range and recent Folia and Purpur. Spigot and CraftBukkit require BuildTools, so their compatibility is based on the Bukkit API exercised on Paper and Purpur. Waterfall is end-of-life. Proxy Modrinth game tags describe the tested builds' client protocol support. The BungeeCord and Waterfall listing uses their shared range through 26.2.

Build and smoke-test the plugins

Set JAVA_HOME to JDK 25. Use Python 3.8 or newer. Run these commands in Windows PowerShell.

.\gradlew.bat --configure-on-demand :core:test :bukkit:build :velocity:build :bungee:build :sponge:build
$java8 = .\gradlew.bat --configure-on-demand -q :bukkit:printJava8
python scripts/smoke-plugins.py --java8 $java8 --java21 "$env:JAVA21_HOME/bin/java.exe" --java25 "$env:JAVA_HOME/bin/java.exe"

Set JAVA21_HOME to a Java 21 installation before running the smoke test. The Gradle task provisions Java 8 through Foojay for Paper 1.13.2. Pass server names to run a subset, or use --help to list the names. Each run accepts the EULA for its fresh server directory under build/smoke-plugins/ and saves the console log there.

License

Memory Leak is licensed under the MIT License.

Project description from Modrinth.

Pick your setup

Memory Leak by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

108 available setups

Showing the newest 12 of 84 game versions. Older files are in the list below.

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

Recent files

Memory Leak versions and loaders

4 of 21 releases match
Clear filters

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