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.
Can you update the plugin to 1.7.2 if it don't work with 1.7.2? :D
How do I install the script on linux where do I put it?
1.2.5 compatible?
@angrybatman000
You know your just spamming... It's not going to work. xD I could make that website.
@Darthmineboy
Not if you use a vps... XD
@RubenRME
No because hosts have predefined start up scripts.
Save-all insted of a restart, that would be sencefull.
Just a little question, does this work on FTP? When you have an host.
@AaronL98
It should work with the latest CraftBukkit builds.
1.5.2R1.0 Update? this plugin looks awesome and seems like i wont be needing a scheduled restart to clear up lag! Thanks!
Could you add an auto-save featuer? As in instead of restart , save then restart.
@zachoz to start my server I just type in the command in the vps. I log into my vps do screen -r then i type in the command that starts the server... So I don't know where the "shell file" is?
This is exactly what I need! Thank you for making this!
@decalo
In your shell file that starts the server.
Little help please? I'm kind of a noob, just saying. Anyways, I run a server on a lunix vps, I have craftbukkit (obviously) where do I put that code in? I put the plugin in the plugins folder, but it only stops the server. Where do I put the code to make the server turn back on? Into CraftBukkit? If so where? ect. Thanks:p
@thudog77
Yep. :D
I use a Multicraft control panel, so all i have to do to install this correctly is drop this into the plugins folder?
@Ajaxan
Possibly. I'll need to find a good way of doing it.
I have been looking at different server restart plugins and I love the simplicity this one offers. Also the included scripts make my life much easier. Just out of curiosity, are you planning to expand the plugin to deal with more types of crashes?
@RepDude
Haven't really had time to do much on this project recently. Just busy with my own server and real life things. :P I've got some planned features though. ;)