RamManager

RamManager

RamManager is a lightweight Spigot/Paper plugin that automatically monitors server memory usage and triggers garbage collection when RAM usage exceeds a configurable threshold, preventing lag and out-of-memory issues.

10 downloads

Keep your server running smoothly without manual intervention.

RamManager is a simple yet powerful plugin designed to help server administrators monitor and manage Java heap memory usage in real-time. It runs in the background, checks RAM consumption at configurable intervals, and automatically triggers garbage collection when usage goes above a safe limit โ€“ all without affecting gameplay performance.


โœจ Features

ยท ๐Ÿ” Automatic RAM Monitoring โ€“ Checks memory usage every X ticks (configurable). ยท ๐Ÿงน Auto Cleanup โ€“ Triggers System.gc() when usage exceeds a defined threshold (default: 85%). ยท โš™๏ธ Fully Configurable โ€“ Adjust check intervals and threshold via config.yml. ยท ๐Ÿ“Š Real-time Info Command โ€“ Check current memory usage anytime with /rammanager info. ยท ๐Ÿ”„ Reload Support โ€“ Reload config without restarting the server. ยท ๐Ÿงช Manual GC โ€“ Force garbage collection on demand with /rammanager gc. ยท ๐Ÿชถ Lightweight โ€“ Minimal overhead, no extra dependencies. ยท ๐ŸŒ Multi-Version Support โ€“ Works on Spigot/Paper 1.17 โ€“ 1.21+.


๐Ÿ“ฆ Commands

Command Permission Description /rammanager rammanager.admin Shows help menu. /rammanager info rammanager.admin Displays current RAM usage percentage and MB used/total. /rammanager reload rammanager.admin Reloads the config file. /rammanager gc rammanager.admin Forces an immediate garbage collection cycle.