跳到正文

Watchdog

作者:IAteMinecraf

A mod to automatically stop Servers if memory usage gets too high

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

Watchdog: Save my Server!


Does your Server keep running out of memory and becoming sluggish?
Do you need a mod that automatically shuts your Server down when memory gets too high
and is highly configurable?

Well look no further!


Watchdog is a mod that allows you to automatically stop your Server.
Once the given statistic has been reached, Watchdog will start a countdown (or quit immediately if Start Time is set to 0)

Configuration options:

  • Timings
    • Start Time
      • How long the countdown timer will take before stopping the server
      • Default: 60, min: 0
      • Unit: Seconds
    • Averaging Window
      • How long the Server must stay at a given percent/amount before starting the countdown
      • Default: 30, min: 1
      • Unit: Seconds
  • Memory Values
    • Type
      • Whether to use Max Memory Percent or Amount
      • Default: PERCENT, other: AMOUNT
      • Unit: None
    • Max Memory Usage (Percent)
      • The maximum amount of memory the Server process is allowed to use before shutting down
      • Default: 90, min: 0, max: 100
      • Unit: Percent
    • Max Memory Usage (Amount)
      • The maximum amount of memory the Server process is allowed to use before shutting down
      • Default: 0, min: 0
      • Unit: Gigabytes

This mod is entirely made by me, Icon and All!
You may use this mod in modpacks (although probably only put it in server packs)


If you are wondering why Watchdog does not restart the server, it is because (from what I can figure out), It just is not feasable to restart the server from within the mod.

This mod is meant for situations where your wrapper script restarts the server, or when you are using a service like Pterodactyl

常见问题

Watchdog 支持哪些 Minecraft 版本?

Watchdog 支持 Minecraft Java 版 1.20.1,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

Watchdog 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分

IAteMinecraf 的其他作品

查看全部 →