CrashPrevention

CrashPrevention | Prevent out of memory errors!

This is a simple plugin designed to help prevent your server crashing with out of memory errors. Every 10 seconds the server will check how much free RAM the JVM has left. If it's below an amount defined in the config, the server will automatically restart.

Configuration:

minimum_ram: 256 # Restart the server if below this amount of free RAM.

tries: 2 # Number of times to check free RAM before restarting. If under the minimum_ram two times, restart.

But, how can this actually restart it?

You need need to use one of these startup scripts: Linux | Windows

But, I use a control panel and can't change the start up script!

Even easier then! Most control panels (MutliCraft and TCAdmin anyway..) will automatically restart the server if it's stopped from outside their control panel. So you should be fine.

Source code


Comments

Posts Quoted:
Reply
Clear All Quotes

About This Project

  • Project ID
    53196
  • Created
    Mar 5, 2013
  • Last Released File
    Jul 30, 2013
  • Total Downloads
    3,959
  • License

Categories

Members

Recent Files