Lag lockdown

Discussion in 'Plugin Requests' started by emirtk12, Jan 16, 2017.

Thread Status:
Not open for further replies.
  1. Offline

    emirtk12

    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
     
    Last edited: Jan 22, 2017
  2. Online

    timtower Administrator Administrator Moderator

  3. Offline

    emirtk12

    Unable to do that on my dedicated host
     
  4. Online

    timtower Administrator Administrator Moderator

    @emirtk12 Then I wonder how much this would actually do.
    Plugins that get unloaded have the habit of still leaving memory in use.
     
  5. Offline

    emirtk12

    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.
     
    Last edited by a moderator: Jan 17, 2017
  6. Offline

    emirtk12

  7. Offline

    iTzTobi

    Why it should not start again?
    What for a dedicted server you use?
     
  8. Offline

    emirtk12

    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.
     
  9. Offline

    iTzTobi

    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
     
  10. @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
     
  11. Offline

    emirtk12

    Please read my post and see that i dont want to restart on crash
     
    Last edited: Jan 22, 2017
  12. Offline

    Spoch

    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.
     
  13. Offline

    iTzTobi

    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
     
  14. Offline

    emirtk12

    Please read my post and see that i dont want to restart on crash
     
    Last edited: Jan 22, 2017
  15. Offline

    emirtk12

  16. @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
     
    timtower likes this.
  17. Offline

    emirtk12

    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.
     
  18. Offline

    Sploon

    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.
     
  19. Offline

    emirtk12

Thread Status:
Not open for further replies.

Share This Page