
AutoSystemGC
This modification automatically executes System.gc() calls to free up memory on your Minecraft server and client!
System.gc() merely informs the Java Virtual Machine to make an effort towards recycling unused objects. Therefore, sometimes calling System.gc() may not result in memory being freed.
Management Commands
/auto_system_gc_reload
— reloads the configuration and the modification itself/auto_system_gc_trigger
— manually triggers memory cleanup/autosystemgc
— main command/agc
— abbreviated version of the main command
Configuration Settings
Default Settings:
{
"configVersion": 1,
"cleanInterval": -1,
"memoryCheckInterval": 2,
"cleanThresholdPercent": 70.0,
"broadcastOnCleanTrigger": false,
"logOnCleanTrigger": true
}
Detailed Explanations:
cleanInterval
— frequency of automatic memory cleanup (values greater than 30 activate the function, lower values deactivate it; specified in seconds)cleanThresholdPercent
— memory usage threshold that triggers cleanup when reached (range 0-100, values below 30 deactivate the function)memoryCheckInterval
— interval for monitoring memory usage (values must be positive; specified in seconds)logOnCleanTrigger
— keeps logs when the memory cleanup process is initiatedbroadcastOnCleanTrigger
— sends server notifications about the memory cleanup process to all playersconfigVersion
— system parameter; do not modify!
Configuration updates automatically.