Download AutoSystemGC — Minecraft Mods — MetaMods

AutoSystemGC

Active

Downloads

0

Last update

11 months ago

Versions

1.14.4 — 1.21.3
Client
Fabric
Control
Game optimization
Utils

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 initiated
  • broadcastOnCleanTrigger — sends server notifications about the memory cleanup process to all players
  • configVersion — system parameter; do not modify!

Configuration updates automatically.

Project members
ThatMG393

ThatMG393

Developer

Created: 18 Nov 2024

ID: 65498