MemoryLeakFix [1.18-1.20.X] icon

MemoryLeakFix [1.18-1.20.X] -----

No bloat, All focus on preformance ☕️



MemoryLeakFix is a plugin for Minecraft servers that helps keep track of and manage RAM and CPU usage. It helps to prevent server crashes and slowdowns by watching how much memory and CPU power is being used and taking action when necessary.

Features:

- Monitor RAM and CPU: Keeps an eye on how much memory and CPU power your server is using.
- Automatic Memory Cleanup: Runs the garbage collector when memory usage gets too high to free up unused memory.
- CPU Load Alerts: Warns you when CPU usage gets too high.
- Background Usage Logging: Optionally logs detailed RAM and CPU usage information to the console.
- Easy Configuration: Change settings easily through the config.yml file.
- Colored Console Messages: Makes important information easy to spot in the console.
https://discord.gg/cErUb8HxA9

Configuration:

- ram-threshold-mb: Set the maximum RAM usage in megabytes (MB) before the plugin cleans up memory. Default: 500 MB.
- cpu-threshold-percent: Set the maximum CPU load percentage before the plugin issues a warning. Default: 80%.
- check-interval: Set how often (in seconds) the plugin checks resource usage. Default: 60 seconds.
- background-spy: Enable (true) or disable (false) detailed logging of RAM and CPU usage. Default: false.

Usage:

1. Install: Download the plugin and put it in your server's plugins folder.
2. Configure: Change settings in the config.yml file to fit your needs.
3. Start: Run your server to start monitoring RAM and CPU usage. The plugin will automatically clean up memory, warn about high CPU usage, and log background usage if enabled.

MemoryLeakFix helps keep your server running smoothly and efficiently, making sure your players have a better experience.

Example Configuration (config.yml):
Code (YAML):

ram-threshold-mb
: 500   # 500 MB
cpu-threshold-percent
: 80   # 80%
check-interval
: 60   # 60 seconds
background-spy
: false   # Set to true to enable background usage logging

Example Log:

When background-spy is enabled, the plugin logs detailed information about memory and CPU usage:

Code (Text):
[MemoryLeakFix] Used Memory: 500 MB
[MemoryLeakFix] Max Memory: 1024 MB
[MemoryLeakFix] CPU Load: 75.0%
[MemoryLeakFix] Background Spy - Used Memory: 500 MB
[MemoryLeakFix] Background Spy - Max Memory: 1024 MB
[MemoryLeakFix] Background Spy - CPU Load: 75.0%

Using MemoryLeakFix helps ensure your Minecraft server stays fast and stable, Made with love. For minehut :)
Resource Information
Author:
----------
Total Downloads: 231
First Release: Jun 22, 2024
Last Update: Jun 22, 2024
Category: ---------------
All-Time Rating:
2 ratings
Find more info at discord.gg...
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings