I want a plugin which the server exceeds a certain amount of ram usage it kicks without the perms (They cant rejoin while server is locked!!) and unloads all plugins and when the server is back up certain amount of ram usage (this is custom too) it loads all plugins but id like it that it loads 1 plugin every 2 seconds or so (Configurable) Version: 1.11 Permissions: lagdown.antikick (Does not kick you when server overloads) lagdown.lock (for /lagdown lock) Commands: /lagdown : Author name /lagdown lock : Locks the server and unloads plugins /lagdown unlock : ^^ When i want it : asap I DO NOT WANT THE SERVER TO RESTART ON CRASH I ONLY NEED A PLUGIN
@emirtk12 Then I wonder how much this would actually do. Plugins that get unloaded have the habit of still leaving memory in use.
Its better anyways because my server getting overloaded is worse that it wont start on it self again Would anyone be willing to create this plugin or something similar to it? EDIT by Moderator: merged posts, please use the edit button instead of double posting.
It's one of my friends dedicated host he created. I really don't know much info about it but he can't restart it. Btw it is 24 7 Bump.
If you can get more Informations about the dedicated Server we can finde maybe a methode to restart the server automaticaly if the crashed or you stop the server
@emirtk12 You can get something like Multicraft to have a panel where you can restart it, or ask your friend to simply do so. It is not hard to start and stop applications on a VPS/dedicated server
What software is that VPS ? Most likely you could just SSH into the server and start it with: Code: Java -Xmx1024M -Xms1024M -jar (Jarfile) nogui On my personal VPS i have CentOS, if i want to restart my server i would stop it from the console and start it with that code.
i have 2 Scripts First a Run Script and than a Loop Script it must installt Java and screen Run.sh Code: #!/bin/sh screen -S "Minecraft" bash -c "sh /way/to/the/loop.sh" loop.sh Code: #!/bin/bash while true; do echo "Starting MC Server"; java - Xmx1024M -Xms512 -jar spigot.jar nogui echo "Stopping MC Server"; echo "Wait 3 Seconds"; sleep 3 done
@emirtk12 I doubt anyone would do this and even if they did, it would cause more trouble than anything else. Just get your friend to teach you how to use the VPS and how to restart your server. Or get Multicraft... That one is much easier
Please tell me how this could cause more damage then the server stopping and not starting on its self again and no I am not able to change the server software or the server start script. And I know how to use an VPs. But I don't have the rights to the VPs only to the server.
As timtower said, plugins - even after being disabled - can still have memory in use. Java only deletes objects that are un-refrenced (if no program has access to the data, java deletes it). However, it's possible for two different objects to reference each other, but not be used anywhere else (this is a memory leak - not supposed to happen). When the JVM (java virtual machine) shuts down, however (which would happen on a reboot) resources are released. A better developer can correct anything I said^^ but basically - rebooting the server releases everything. Anything that is needed will be re-created in memory when the server starts back up.