AutoSystemGC
ModAutomatically calls System.gc() to free-up memory on your server and client.
Type
Mod
Modrinth Downloads
3,897
Modrinth ID
hRqAE3d4
Last Updated
Aug 29, 2026
Description
AutoSystemGC
This mod will automatically call System.gc() to free-up memory on your server and client!
Note:
System.gc() just tells the JVM to expend effort toward recycling unused objects. So sometimes System.gc() doesn't free memory.
Commands
- /agc - the main command (alias)
- /autosystemgc - the main command
- /autosystemgc trigger - manually trigger memory cleanup
- /autosystemgc reload - reloads the config as well as the mod
Config
Default config:
{ "cleanInterval": -1, "cleanThresholdPercent": 70.0, "memoryCheckInterval": 2, "logOnCleanTrigger": true, "broadcastOnCleanTrigger": false, "configVersion": 1 }Details:
- cleanInterval : scheduled memory cleanup (accepts numbers greater than 30, below that just disables the scheduled memory cleanup) (time unit is in seconds)
- cleanThresholdPercent : the target memory threshold which then triggers a memory cleanup (accepts floats in a range of 0 to 100, value lower than 30 just disables this)
- memoryCheckInterval : intervals for when to check memory usage percent (accepts numbers higher than 0) (time unit is in seconds)
- logOnCleanTrigger : logs cleanup details when a memory cleanup is triggered
- broadcastOnCleanTrigger : sends a server-wide message of the cleanup details when a memory cleanup is triggered
- configVersion : this is an internal value. DO NOT CHANGE!
Compatibility
Mod Loaders
Game Versions
Recommended Gear
AffiliateHardware and extras that pair well with this mod.
As an Amazon Associate I earn from qualifying purchases.
Similar Mods
Manhunt: Fabric
Dream's Minecraft manhunt, built from the ground up for the Fabric Mod Loader.
Tensura: Magic Growth
A Tensura add-on mod that introduces magic ore mother rocks, magic ore crystal growth, and magic-rich geodes driven by c...
Witches of Origins
This mod aims to bring a variety of magical origins revolving Witches and their spells, gadgets and other perks. Made wi...
Exotic Matter Library
Model Library for Fabric
Unique Weaponry
Unique Weaponry adds new weapons to the game
Easy Villager Trade Reroll
Mod to get desired enchantment book trade from librarian villager, reroll works almost instantly