SleepyCPU - A new hibernation plugin! With folia support!
SpigotMCReduces server cpu usage when the server is empty by introducing intentional delays
57 downloads
latest v1.0 SpigotMC
SleepyCPU
Reduce server CPU usage automatically when your Minecraft server is empty.
SleepyCPU detects when no players are online and temporarily slows down server activity. It optionally unloads chunks and nudges the JVM to free memory. As soon as a player joins, normal operation resumes.
Features
- Automatically enters a low-CPU mode when the server is empty
- Configurable delay between server ticks while idle (sleepTicks)
- Optional chunk unloading (unloadChunks) with save-on-unload toggle
- Configurable cleanup interval to control how often chunk unload + GC occurs
- Lightweight: no dependencies and single permission node
When the player count reaches 0, SleepyCPU:
- Saves all worlds safely using region-aware scheduling
- Sleeps between tick cycles by a configurable number of ticks
- Periodically (configurable interval) unloads chunks per world and triggers a GC hint
Configuration
- Location: server-root/sleepycpu.yml
- Keys:
- settings.enabled: Master switch for low-CPU mode (true/false)
- settings.sleepTicks: Delay between idle cycles in ticks (1 tick = 50ms)
- settings.unloadChunks: Unload chunks while idle (true/false)
- settings.saveChunksOnUnload: Save chunks when unloading (true/false)
- settings.cleanupIntervalTicks: Idle cycles between chunk unload + GC
- After editing, run /sleepycpu reload or restart the server
- /sleepycpu help — Show command info
- /sleepycpu toggle — Enable/disable low-CPU mode
- /sleepycpu status — Display current status and settings
- /sleepycpu reload — Reload configuration from disk
- /sleepycpu delay <ticks> — Set sleepTicks
- /sleepycpu cleanupinterval <ticks> — Set cleanupIntervalTicks
- /sleepycpu unloadchunks <true|false> — Toggle unloadChunks
- /sleepycpu saveonunload <true|false> — Toggle saveChunksOnUnload
Permissions
- sleepycpu.admin — Access to all SleepyCPU commands (default: OP)
Comments 0
No comments yet. Be the first to share your thoughts.