TPS monitor 2.0 #32


  • New
  • Enhancment
Open
Assigned to bob7l
  • _ForgeUser10983085 created this issue Jul 30, 2014

    What is the enhancement in mind? How should it look and feel?
    The current TPS monitor with this syntax in config:
    #Meters your TPS, if it goes to low, run the commands you wrote below!
    tps-meter:
      enabled: false
      interval: 15
      tps-trigger: 14.0
      commands:
        - 'msg Person TESTING'

    I was going to use this to run restarts on my server during a low TPS time, because they are rare and it would make it easier just to restart when a memory leak had occurred (most common cause of any tps issues currently for me)
    So I ran the testing command to msg myself each time the TPS trigger was below 19.9 ( should be constantly messaging for anything less than 19.9 was my assumption based on interval:15) I assumed i would get a new message every 15 seconds. What I found was, sometimes it would be as few as 3 seconds and as many as 50? So I'm not sure what interval does anymore, as I changed it, to higher and lower numbers and saw no actual results.

    But anyways,
    I would like to see a IF TPS DROPS BELOW # then do this, and add a DELAY option, with options to add multiple commands between delay (some form of timer)
    so I could deliever msg like so
    Server restart in 5m
    Server restart in 1min
    then count down from 10 seconds or something of the sort.
    Then issue restart command.
    I see the command part is already implemented, but here is the catch, I need these commands to ISSUE ONCE! And the delay function. As if you lets say droped below # more than once, before restart, then it would reset the timer rotation of the command list.

    Thanks, and I really hope you choose to implement this, it would do away with a lot of the timed restart servers and I think added more serious flexibility to this plugins lag prevention! (it wouldn't have to have a command for restart, I can call the built in bukkit one in a command call)

  • _ForgeUser10983085 added the tags New Enhancment Jul 30, 2014
  • bob7l posted a comment Aug 2, 2014

    Well it should run every 15 seconds - if not then your clearlag config might be messed up. Also, if you have a low TPS the timer will be delayed as it's sync to the main thread

  • _ForgeUser10983085 posted a comment Aug 6, 2014

    @bob7l: Go

    I agree that is what I believed Interval SHOULD be, but it was not, and I removed config and reloaded clearlagg. With 19.9TPS being set as the threashold and holding solid 19s I should get more than 1 warning per minute. And then some would come through within seconds (less than 15)


To post a comment, please login or register a new account.