AdaptiveGC is for smarter garbage collection (GC) management.
AdaptiveGC is a plugin for automatic garbage collection (GC) management in PocketMine-MP servers. It dynamically monitors server conditions and decides whether to run the GC based on various configurable factors.
The plugin supports the following configuration options in config.yml
:
#Will only run gc when tick used percentage is lower or equal to given value (default 10).
trigger-percentage: 10
#Will cancel gc if gc may exceed server tick time.
avoid-time-exceed: true
#Will only run gc when player count is 0 (default true).
trigger-no-player: true
#Will run gc unconditionally if root count exceeds the given value (default 500000).
force-root-count: 500000
#Will skip gc if root count increment is lower than the given ratio.
gc-skip-threshold-ratio: 0.01
#Prediction EMA(Exponential Moving Average) smoothing factor (default 0.3).
#The smoothing factor determines the weight given to the most recent data points.
#It controls how sensitive the EMA is to recent changes in the data.
smoothing-factor: 0.5
AdaptiveGC runs automatically once installed and enabled. It monitors server tick timing and garbage collection metrics to make informed decisions about when to perform GC operations.
config.yml
is correctly configured.This plugin is licensed under the MIT License. See the LICENSE file for details.
Version: 0.0.2
Downloads: 277
Updated: 7/26/2024
Supported API versions: 5.0.0 to 5.27.1
Categories: General, Miscellaneous, Mechanics
License: MIT