← Назад к ресурсам

AutoSystemGC

Automatically calls System.gc() to free-up memory on your server and client.

Modrinth management optimization utility

Описание

![Requires FabricAPI](https://img.shields.io/badge/requires_fabric_api-black?style=for-the-badge&logo=data%3Aimage%2Fsvg%2Bxml%3Bbase64%2CPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMiIgaGVpZ2h0PSIzMiI%2BPHBhdGggZmlsbD0iIzhEODU3MyIgZD0iTTE3IDJoMnYyaDJ2MmgydjJoMnYyaDJ2MmgydjRoLTJ2MmgtNHYyaC0ydjJoLTJ2MmgtMnY0aC0ydjJoLTR2LTJIOXYtMkg3di0ySDV2LTJIM3YtNGgydi0yaDJ2LTJoMnYtMmgydi0yaDJWOGgyVjRoMnoiLz48cGF0aCBmaWxsPSIjQjJBODkyIiBkPSJNMTMgOGg0djJoMnYyaDJ2MmgtNHYyaDJ2NGgtMnYtMmgtNHYyaDJ2Nkg3di0ySDV2LTJIM3YtNGgydi0yaDJ2LTJoMnYtMmgydi0yaDJ6Ii8%2BPHBhdGggZmlsbD0iIzlEOTU4MSIgZD0iTTE3IDE0aDZ2NmgtMnYyaC0ydjJoLTJ2NGgtMnYyaC00di0ySDl2LTJoNnYtNmgtMnYtMmg0djJoMnYtNGgtMnoiLz48cGF0aCBmaWxsPSIjNDEzQzMyIiBkPSJNMjUgMTBoMnYyaDJ2NGgtMnYyaC00di00aDJ6Ii8%2BPHBhdGggZmlsbD0iIzQ2NDEzNiIgZD0iTTE1IDI0aDJ2NGgtMnYyaC00di0ySDl2LTJoNnoiLz48cGF0aCBmaWxsPSIjODA3OTY5IiBkPSJNNSAyMmg2djJoMnYySDd2LTJINXoiLz48cGF0aCBmaWxsPSIjQTlBMDhDIiBkPSJNMTMgMThoNHYyaDJ2NGgtNHYtNGgtMnoiLz48cGF0aCBmaWxsPSIjREJEMEI0IiBkPSJNMTUgOGgydjJoMnYyaDJ2MmgtNHYtMmgtMnoiLz48cGF0aCBmaWxsPSIjNTg1MzQ1IiBkPSJNMTcgMmgydjJoMnYyaC00djJoLTJWNGgyeiIvPjwvc3ZnPg%3D%3D&labelColor=%23dcd4b4&color=%233c342c&link=modrinth.com%2Fmod%2Ffabric-api) ![Modrinth Downloads](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fapi.modrinth.com%2Fv2%2Fproject%2Fautosystemgc&query=downloads&suffix=%20&style=for-the-badge&logo=modrinth&logoColor=10DD10&logoSize=auto&label=Modrinth%20Downloads&labelColor=101010&color=242424) # 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: ```json { "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! Bonus The config reloads automatically 😉