Filled Overloaded

Discussion in 'Plugin Requests' started by Resoluciones, Nov 9, 2019.

  1. Offline

    Resoluciones

    Plugin category: AdminTools

    Minecraft version: Paper version git-Paper-225 (MC: 1.14.4) (Implementing API version 1.14.4-R0.1-SNAPSHOT)

    Suggested name: Overloaded


    What I want: I would like that when the message "Can't keep up! Is the server overloaded? Running xxxms or xxx ticks behind" is shown in the console, the plugin executes some configurable sets of commands.

    Ideas for commands: Not needed.

    Ideas for permissions: Not needed.

    Ideas for configuration:

    - command1
    - command2
    - command3

    and so on...

    When I'd like it by: when possible.

    [​IMG]

    Thank you!
     
    Last edited: Nov 9, 2019
  2. Offline

    ironinventor1

    Ok so there are some issues that I see with this.
    Firstly, glad to see your using paperspigot (its nice and mostly optimised for this kind of thing) however, you are running a development build(snapshot) and thus it is probably slightly unstable which could contribute to this error being thrown to you.
    Another issue could be your server hardware potentially caused by a lack of ram or a poor CPU /CPU optimisation
    In addition, it could also be the simple fact that starting a server is a high demand for your hardware and as such you get this error on start. A solution could be to downgrade to a stable release build or use a plugin to control what entities spawn in the world. I believe the most common cause I have heard from people is an inadequate CPU.
    Finally, I would have to check but I am not entirely convinced you could track this error via a spigot or bukkit api at any rate.
     
  3. Offline

    Resoluciones

    @ironinventor1 thank you for your post! Yes, I am aware of that possibility! I have already systems to control mobs, limit spawns, etc. I know also, that sometimes the hosts are unstable with their service. It's been years since I make servers, so I have a little experience on that!

    What I would like is to take aproach of the "overloaded" message that is already part of Paper, to execute some commands that could give a performance boost. In case it's possible for any Developer to make this plugin, of course.

    I've tried MessageCommander which I used in the past, but it does not detect system messages unfortunately, it only detects messages from plugins or from players.

    Thanks!
     
  4. Offline

    yPedx

  5. Offline

    Resoluciones

    hi @yPedx yes, there are plugins like clearlagg and like a half dozen more that allows to execute commands when tps or ram are at a configured level. Thanks!

    I'm looking to avoid those plugins, whith this request (I've tried a lot of these plugins in the past and I am not saying they don't work well).
     
  6. Offline

    yPedx

    @Resoluciones
    I'll give console reading a try right now, actually.

    @Resoluciones
    I've completed the plugin and it seems to work fine. I've made so you can change in the config what text it should look for in the console. Once it appears, it triggers a list of commands. How would you like to download it?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Nov 9, 2019
    ironinventor1 and Resoluciones like this.
  7. Offline

    ironinventor1

    @Resoluciones @yPedx acctually you gave me an idea, the error will be thrown when too much menory is in use which is usually tied to TPS so you could set TPS bound which could be called easily in a scheduler and then have console execute the commands.
     
  8. Offline

    Resoluciones

    Plugin was perfectly filled by @yPedx !!!
     
    yPedx likes this.

Share This Page