AutoSystemGC
作者:ThatMG393
Automatically calls System.gc() to free-up memory on your server and client.
介绍
中文介绍正在准备中,下面暂时显示原文。
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 triggeredbroadcastOnCleanTrigger: sends a server-wide message of the cleanup details when a memory cleanup is triggeredconfigVersion: this is an internal value. DO NOT CHANGE!
Bonus
The config reloads automatically 😉
常见问题
AutoSystemGC 支持哪些 Minecraft 版本?
AutoSystemGC 支持 Minecraft Java 版 1.14.4–1.21.3,共 31 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。
AutoSystemGC 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端 / 服务端。
ThatMG393 的其他作品
查看全部 →TPA4Fabric
by ThatMG393
A simple TPA mod for Fabric
3,368
1 年前
Modrinth
LowExposure
by ThatMG393
A post-processing shader that applies a low exposure effect to your game. (completely customizable!)
791
1 年前
Modrinth
SpawnerLoader9000
by ThatMG393
Loads your spawner even if you're far away.
551
1 年前
Modrinth
UsefulHUDs
by ThatMG393
Just some useful huds for Minecraft
413
2 年前
Modrinth
评论
登录后评论和评分