Memory Management System
- Smart Garbage Collection: Automatically runs GC when memory usage exceeds 80% (configurable).
- Entity Cleanup: Safely removes temporary entities such as XP orbs, projectiles, and old dropped items.
- Auto-Save: Automatically saves important data before entity hibernation.
Enhanced Commands
/hibernate
– Toggle hibernation/hibernate status
– Show detailed hibernation status/hibernate memory
– Display real-time RAM usage/hibernate gc
– Manually trigger garbage collection
Resource Usage Reduction
- CPU: Still reduces usage by 85–95% when no players are online
- RAM: Now reduces memory usage by an additional 20–50% during hibernation
Safety & Stability
- Only removes safe, temporary entities — no valuable or persistent data is affected.
- Automatically saves before entity suspension.
- Includes detailed logging for monitoring and debugging.