Hibernate 2.0.0

Reduce CPU usage when no players are online. (For small, home-hosted servers)

  1. woutwoot
    Tested Minecraft Versions:
    • 1.8
    • 1.9
    • 1.10
    • 1.11
    • 1.12
    • 1.13
    • 1.14
    • 1.15
    • 1.16
    Hibernate is a very simple plugin I use in all my servers. It will reduce CPU usage to about 0-1% when no players are online on the server. This can be used for a lot of purposes.
    [​IMG]
    Note that this plugin will only be useful for small servers that tend to be empty at night or during schooldays. If you've got 500 players, the plugin will never "enable" and will not make any difference.

    Features
    • Save electricity (if you host the server)
    • Let other software use the CPU when no one is playing Minecraft.
    • Allow more servers to run on your machine
    • Works for all versions of Craftbukkit or Spigot
    • Very lightweight plugin. Does not cause any lag at all.
    • ...
    How does this work?
    The plugin will intentionally "lag" your server while no players are connected. You can see it as freezing the server. It'll make it dormant until a player connects.

    Command (since version 1.02)
    You can use /hibernate to toggle the plugin off (and on again) this may be useful in situations where you have to generate a world while no players are online or something similar. Does not save over reload/restart! Enabled by default.
    You have to be OP or have this permission to use the command:
    hibernate.toggle

    Caveats

    • The first player to join the server while it is hibernating might have to try to connect twice. In most cases this is not needed, but it is possible
    • Since Hibernate "freezes" the server, plugins like Dynmap will stop working when no players are connected (for Dynmap specifically an advanced workaround could be to not use the built in webserver, but use your own)
    • Hibernate does not help if your server is never empty
    • Because of the hibernation, can't keep up messages might show up in your console.
    • While the server is hibernating, your TPS will go down (intentionally). If you have plugins that monitor TPS, these might report issues during hibernation and for a few minutes after due to them using averages of the past X minutes.

    Example
    Server with no players online, without Hibernate: [​IMG]

    Server with no players online and Hibernate installed: [​IMG]

Recent Reviews

  1. yo_louk
    yo_louk
    5/5,
    Version: 2.0.0
    Ideal plugin for my small, self-hosted server. I've used it for over a year and it works as intended. Initially I was looking for a plugin that could stop time when no one was online, but cutting back on TPS and CPU usage really made me choose this plugin.
  2. TechnicallyCoded
    TechnicallyCoded
    5/5,
    Version: 2.0.0
    For those who are too important to read the plugin description before clicking the download button I have news for you:

    ** Your TPS WILL DROP when no players are online! **
    If you are confused about what I just said, read the description!

    That is intended behavior and works like a charm. Simple idea with great results, brought my idle servers down to 1/8th of the CPU usage they were using before. A required plugin on all minigame servers in my opinion.
    1. woutwoot
      Author's Response
      It comforts me to know that people who read the description still exist ;)
      Thanks for the review!
  3. ElectronicGamerz
    ElectronicGamerz
    5/5,
    Version: 2.0.0
    Amazing plugin, my server is now just using 0% - 20% of CPU every time no one is online, but if I can suggest a thing, can you disable "Cant Keep up! is the server overloaded?" warning when the server is hibernating
  4. Imp5pa
    Imp5pa
    5/5,
    Version: 2.0.0
    An amazing plugin that will significantly reduce CPU usage when the server is empty. Works well with 1.17.
  5. cL3v3r
    cL3v3r
    1/5,
    Version: 2.0.0
    This plugin is terrible, it made my server lag like bullshit and my tps dropt to 10.00.....
    1. woutwoot
      Author's Response
      This is expected behaviour. Your average TPS will indeed go down, but while players are online TPS will be as usual.
  6. Anas1554
    Anas1554
    5/5,
    Version: 2.0.0
    Very Good Plugin Help Me A Lot In My Bedwars Server. I Was Just Having Some Question But Not Able To Find A Way To Contact Him
    1. woutwoot
      Author's Response
      You can private message me on Spigot :)
  7. CrispyChiken
    CrispyChiken
    5/5,
    Version: 2.0.0
    Amazing plugin! It helped me reduce CPU usage on my server when idle. It lowers TPS when no one is online, because the lower it is, the less CPU usage. Plus, it goes back up to normal when someone joins the server. 10/10 plugin, highly recommend it to literally everyone who runs a server.
  8. Jadss_pt
    Jadss_pt
    1/5,
    Version: 2.0.0
    The plugin does what it is supposed to do, but it is poorly done.... Minecraft does not consume too much CPU when no players are online, and this plugin tries to fix a problem that does not exist, by unloading chunks which is already done when a player LOGS off.
  9. _XxfedexX_
    _XxfedexX_
    5/5,
    Version: 2.0.0
    This works PERFECTLY!!!! All small servers should run this!
    We must preserve our planet by saving energy.
    SAVE THE PLANET: DOWNLOAD THIS PLUGIN!
  10. Jimo
    Jimo
    5/5,
    Version: 2.0.0
    pretty good working perfectly fine on my server and defo lowers the cpu usage :D play.jimomc.com