[INACTIVE][ADMIN] ObuShutTheHellUp v0.3 - No more server can't keep up messages - [860]

Discussion in 'Inactive/Unsupported Plugins' started by OBudista, May 11, 2011.

  1. Offline

    OBudista

    ObuShutTheHellUp

    Version: v0.3
    Download Jar



    DO WHATEVER YOU FEEL LIKE WITH IT
    Older versions:
    v0.2, v0.1

    Tested for:
    • Bukkit: 860
    ObuShutTheHellUp is a plugin that suppresses the [WARNING] Can't keep up! Did the system time change, or is the server overloaded?log message, preventing it from flooding your console/log and hiding important stuff.

    As from v0.2 you are now able to filter any other log message you want by configuring the plugin.

    Known Incompatibilities:
    • SimpleSave: If you have SimpleSave installed in your plugin folder, OnuShutTheHellUp is likely to stop working. To fix this you just have to enable the timed fix functionality.
    Instalation:
    • Place obuShutTheHellUp.jar in your plugins/ directory.
    • (Optional) Alter /plugins/ObuShutTheHellUp/filters.yml to change filters. (file automatically created on the first run).
    Filter Configuration:
    • type
      • 'string' - log entry is filtered if this value is contained in the message's text.
      • 'regex' - log entry is filtered if the message's text matches at least once in the regular expression.
    • value
      • the value to be compared (either by string comparison or by regular expression)
    • level
      • log entry if filtered if the log level is matched.
      • 'ANY' will match any level.
    Example:
    Code:
    {
     
      activateTimer: false,
      timerDelay: 5,
      timerPeriod: 0,
        filters: [
            { type: 'string', value: 'overloaded?', level: 'WARNING' },
            { type: 'regex',  value: 'Done \([0-9]{1}\,{1}[0-9]{1,3}s{1}\)', level: 'ANY'}
        ]
    }
    Troubleshooting:
    1. Getting java.util.regex.Pattern's errors mostly means your regular expression is not well formated. You can find out what is the error in this website. If it is good, please verify it again on this one that actually uses the same library.
    2. If above is ok or if you don't use regular expressions chances are your yml is not well formated. Use this to check it for errors: Online Parser
    Known bugs:
    • None
    Todo:
    • Waiting for user feedback.
    Changelog:

    version 0.3:
    • Solves incompatibilities with other plugins just as SimpleSave.
    version 0.2:
    • Allows for filter addition/edition
    Version 0.1:
    • First release
     

    Attached Files:

  2. Offline

    GMFreak

    Nice. Definitely using this.
     
  3. Offline

    nakashimakun

    Thanks, I'ma be using this. GJ :)
     
  4. Offline

    emoknight

    nice one :)
     
  5. Offline

    JanTTuX

    thx man i love it!
     
  6. Offline

    Nitnelave

    Could you add support for blocking a given output? like if a plugin is always telling me "I'm annoying", and I know that already, I'd like to be able to block that message. Basically, block custom messages.
    EDIT : With regular expressions, that'd be cool.
     
    OBudista likes this.
  7. Offline

    Gratlofatic

    AWESOME! haha :p
     
  8. Offline

    OBudista

    I'll add that option (for plain strings and regular expressions) in the next version that should be released up until tomorrow.
     
  9. Offline

    Juze

    Didn't we already see this plugin somewhere? Oh well.
     
  10. Offline

    Borje74

    Nicely done!
     
  11. Offline

    Imm0rt41

    does it actually fix w/e causes that, or just stop it from saying it?
     
  12. Offline

    Trevor_

    Plugin works perfect, thanks oBudista.
     
  13. Offline

    TheNander

    Best plugin hands down. I've been having these errors all day.
     
  14. Offline

    Deren909

    HAHAHA just what what i needed so true about this Before: 2011-05-14 17:05:25 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-05-14 17:05:28 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-05-14 17:05:34 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-05-14 17:05:38 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-05-14 17:05:41 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-05-14 17:05:43 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-05-14 17:05:45 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-05-14 17:05:48 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-05-14 17:05:50 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-05-14 17:05:57 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-05-14 17:06:00 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-05-14 17:06:02 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-05-14 17:06:04 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-05-14 17:06:06 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-05-14 17:06:12 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-05-14 17:06:14 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-05-14 17:06:17 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-05-14 17:06:19 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-05-14 17:06:21 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-05-14 17:06:31 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-05-14 17:06:33 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-05-14 17:06:35 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-05-14 17:06:39 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-05-14 17:06:41 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-05-14 17:06:44 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-05-14 17:06:46 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-05-14 17:06:48 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-05-14 17:06:50 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-05-14 17:06:54 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-05-14 17:06:57 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-05-14 17:07:01 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-05-14 17:07:04 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-05-14 17:07:06 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-05-14 17:07:08 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-05-14 17:07:10 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-05-14 17:07:12 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-05-14 17:07:14 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-05-14 17:07:17 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-05-14 17:07:19 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-05-14 17:07:22 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-05-14 17:07:24 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-05-14 17:07:26 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-05-14 17:07:26 [INFO] /50.23.30.168:53578 lost connection
    2011-05-14 17:07:28 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-05-14 17:07:34 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-05-14 17:07:36 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-05-14 17:07:44 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-05-14 17:07:46 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-05-14 17:07:48 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-05-14 17:07:51 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-05-14 17:07:53 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-05-14 17:07:55 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-05-14 17:07:58 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-05-14 17:08:00 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-05-14 17:08:02 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-05-14 17:08:06 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-05-14 17:08:08 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-05-14 17:08:10 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-05-14 17:08:13 [INFO] �9[PLAYER_COMMAND] TheBalrogKing: /i minecart
    2011-05-14 17:08:14 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-05-14 17:08:19 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-05-14 17:08:21 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?

    after:

    18:13:54 [INFO] Done (3.452s)! For help, type "help" or "?"
    18:13:54 [INFO] War> Warzones ready.
    18:13:55 [INFO] /POOR IP lost connection
    18:13:55 [INFO] /POOR IP lost connection
    18:13:56 [INFO] FiiZy [/IP ADRESS] logged in with entity id 1468
    18:13:56 [INFO] Loaded world: Terrain
    18:13:57 [INFO] SuperKeating [IP ADRESS] logged in with entity id 1473
    18:13:59 [INFO] soulus98 [IP ADRESSlogged in with entity id 1561
    18:13:59 [INFO] Loaded world: frost
    18:14:03 [INFO] [Minecart Mania] Loading Sensor Data.
    18:14:08 [INFO] TheBalrogKing [/IP ADRESS] logged in with entity id 2111
    18:14:14 [SEVERE] Could not pass event ENTITY_DEATH to DeathMessagePlugin
    java.lang.NullPointerException
    at org.bukkit.craftbukkit.TextWrapper.wrapText(TextWrapper.java:38)
    at net.minecraft.server.NetServerHandler.sendPacket(NetServerHandler.java:596)
    at org.bukkit.craftbukkit.entity.CraftPlayer.sendRawMessage(CraftPlayer.java:81)
    at org.bukkit.craftbukkit.entity.CraftPlayer.sendMessage(CraftPlayer.java:85)
    at nl.robinvandervliet.DeathMessagePlugin.DeathMessagePluginEntityListener.onEntityDeath(DeathMessagePluginEntityListener.java:420)
    at org.bukkit.plugin.java.JavaPluginLoader$45.execute(JavaPluginLoader.java:480)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:257)
    at net.minecraft.server.EntityPlayer.a(EntityPlayer.java:121)
    at net.minecraft.server.EntityLiving.damageEntity(EntityLiving.java:393)
    at net.minecraft.server.EntityHuman.damageEntity(EntityHuman.java:423)
    at net.minecraft.server.EntityPlayer.damageEntity(EntityPlayer.java:149)
    at net.minecraft.server.Entity.N(Entity.java:264)
    at net.minecraft.server.EntityLiving.N(EntityLiving.java:116)
    at net.minecraft.server.Entity.p_(Entity.java:192)
    at net.minecraft.server.EntityLiving.p_(EntityLiving.java:230)
    at net.minecraft.server.EntityHuman.p_(EntityHuman.java:90)
    at net.minecraft.server.EntityPlayer.a(EntityPlayer.java:162)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:272)
    at net.minecraft.server.Packet10Flying.a(SourceFile:126)
    at net.minecraft.server.NetworkManager.a(NetworkManager.java:195)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:74)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:370)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    18:14:24 [INFO] <?2?cSuperKeating?f[Admin]?f> ?1H?2e?3y
    18:15:01 [INFO] <?2?cFiiZy?f[Admin]?f> deren
    18:15:10 [INFO] soulus98 lost connection: disconnect.quitting
    18:15:10 [INFO] Connection reset
    18:15:13 [INFO] <?2?cTheBalrogKing?f[Admin]?f> *6yay
    18:15:19 [INFO] SuperKeating issued server command: server
    18:15:25 [INFO] <?2?cTheBalrogKing?f[Admin]?f> Man.......
    18:15:45 [INFO] <?2?cSuperKeating?f[Admin]?f> ?1Y?2a?3Y
    18:15:45 [INFO] ?9[PLAYER_COMMAND] FiiZy: /i 90

    yay thanks :D
     
    OBudista likes this.
  15. Offline

    dual★moon

    Ignorance is bliss, right? Works like it says.
     
  16. Offline

    OBudista

    Only hides the message.
     
  17. Offline

    BioRage

    @OBudista

    Hah, this is great!

    Thanks.
     
  18. Offline

    THEK

    Hi,

    I'm afraid this isn't working on my server. Craftbukkit 766. It starts up fine and there are no errors so I can't really be any more help. List of plugins on iMine here
     
    OBudista likes this.
  19. Offline

    Kostronor

    can you add hiding the save-process or perhaps custom things?
    Its just annoying to have your server spamming wvera 15 minutes that he saved :D
    damn nice simple plugin, will you release the source?
     
  20. Offline

    chrisc97

    Another sweet plugin by @OBudista :p

    thx, works well.
     
  21. Offline

    OBudista

    I'm performing the changes right now.

    Since someone requested it I'm releasing the next version's source code in a rar file.

    PS: As a pointer notice you can just use an application like Java Decompiler or other similar to open the jar and extract the source code files.

    ObuShutTheHellUp
    Version: v0.1
    Download

    Tested for:
    • Bukkit: 766
    ObuShutTheHellUp is a plugin that suppresses the [WARNING] Can't keep up! Did the system time change, or is the server overloaded? log message, preventing it from flooding your console/log and hiding important stuff.

    Instalation:
    • Place obuShutTheHellUp.jar in your plugins/ directory.
    Known bugs:
    • None
    Todo:
    • Waiting for user feedback.
    Changelog:

    Version 0.1:
    • First release


    As a note, just added the second version of this plugin, now allowing you to filter other messages.

    Source code is also available in the original post.

    Have fun with it.

    Can you please check if v0.2 works?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 16, 2016
  22. Offline

    THEK

    I'm afraid it doesn't. Still not getting any errors. It starts successfully.
     
  23. Offline

    Nitnelave

    Nope, it doesn't works on 766. I added a bunch of other filters too, which didn't work either... I tried some regx, but I must have made an error in my coding, because I got this error :
    Show Spoiler

    2011-05-17 18:09:00 [SEVERE] null loading KeepGrowing v0.1 (Is it up to date?)
    java.lang.StackOverflowError
    at java.util.regex.Pattern.bitsOrSingle(Pattern.java:2331)
    at java.util.regex.Pattern.range(Pattern.java:2379)
    at java.util.regex.Pattern.clazz(Pattern.java:2285)
    at java.util.regex.Pattern.sequence(Pattern.java:1835)
    at java.util.regex.Pattern.expr(Pattern.java:1769)
    at java.util.regex.Pattern.compile(Pattern.java:1477)
    at java.util.regex.Pattern.<init>(Pattern.java:1150)
    at java.util.regex.Pattern.compile(Pattern.java:840)
    at obu.ShutTheHellUpPlugin$1.isLoggable(ShutTheHellUpPlugin.java:51)
    at java.util.logging.Logger.log(Logger.java:484)
    at java.util.logging.Logger.doLog(Logger.java:520)
    at java.util.logging.Logger.log(Logger.java:543)
    at java.util.logging.Logger.info(Logger.java:1062)
    at obu.ShutTheHellUpPlugin$1.isLoggable(ShutTheHellUpPlugin.java:62)
    at java.util.logging.Logger.log(Logger.java:484)
    at java.util.logging.Logger.doLog(Logger.java:520)
    at java.util.logging.Logger.log(Logger.java:543)
    at java.util.logging.Logger.info(Logger.java:1062)
    at obu.ShutTheHellUpPlugin$1.isLoggable(ShutTheHellUpPlugin.java:62)
    at java.util.logging.Logger.log(Logger.java:484)
    at java.util.logging.Logger.doLog(Logger.java:520)
    at java.util.logging.Logger.log(Logger.java:543)
    at java.util.logging.Logger.info(Logger.java:1062)
    at obu.ShutTheHellUpPlugin$1.isLoggable(ShutTheHellUpPlugin.java:62)
    at java.util.logging.Logger.log(Logger.java:484)
    at java.util.logging.Logger.doLog(Logger.java:520)
    at java.util.logging.Logger.log(Logger.java:543)
    at java.util.logging.Logger.info(Logger.java:1062)
    with the last part repeating a hundred times...
    Here's my config, with the regex commented (as they weren't working) :
    config (open)

    {
    # type:
    # 'string' - log entry is filtered if this value is contained in the message's text.
    # 'regex' - log entry is filtered if the message's text matches at least once in the regular expression.
    # value:
    # the value to be compared (either by string comparison or by regular expression)
    # level:
    # 'INFO'/'WARNING'/'FATAL'/'ANY'/etc - the value of the log level)
    filters: [
    { type: 'string', value: 'overloaded?', level: 'WARNING' },
    { type: 'string', value: 'records because of age in', level: 'INFO' },
    { type: 'string', value: 'Running interest system', level: 'INFO' },
    { type: 'string', value: '[BankAccount] Total given', level: 'INFO' },
    #{ type: 'regex', value: 'Il est : \[0-9]{2}:[03]0\', level: 'INFO' },
    { type: 'string', value: 'Connection reset', level: 'INFO' },
    #{ type: 'regex', value: 'Location{world=CraftWorld{name=\[0-9a-zA-Z_-]+\}x=\[-\.0-9]+\y=\[-\.0-9]+\z=\[-\.0-9]+\pitch=0.0yaw=0.0}', level: 'INFO' },
    { type: 'string', value: 'Could not pass event CREATURE_SPAWN to NoCivilSpawns', level: 'SEVERE' },
    #{ type: 'regex', value: '\npcx : (L|l)oad(ed|ing)\', level: 'INFO' },
    ]
    }

    Hope you can fix this, it would clean up the log a great deal...
     
  24. Offline

    OBudista

    Indeed. You have an invalid regular expression, and it crashes because of that. Please verify your regular expressions in these websites:

    I've added these instructions as a troubleshooting in the original post.

    Can you please zip your plugin's folder and any other relevant files and send them to me? If you do please remember to clean any username/password in them.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 16, 2016
  25. Offline

    Nitnelave

    Thanks for the regex tester... But it still doesn't work. I mean, I removed the regex, restarted the server, and got all of the messages I was trying to block (can't keep up, WG deleting records...). It seems to be the same problem as thekris1234. I'll try running some tests starting with vanilla and adding the plugins one after the other, to see if it helps, when I have time. (probably tomorrow)
     
  26. Offline

    OBudista

    I've just retested your configuration and it works in my test environment. My guess is the same as yours, probably some other plugin is conflicting with it. If you manage to find which one please let me know so I can take proper measures.
     
  27. In his error was
    2011-05-17 18:09:00 [SEVERE] null loading KeepGrowing v0.1 (Is it up to date?)
    so I guess it is that one
     
  28. Offline

    OBudista

    I've been messing around with the code and found out where the conflict might come from.

    The Java logger can only have one filter set at any time. Although several plugins can be conflicting with eachother, I've coded this safeswitch that makes sure that this plugin works along with the other one that is currently stealing the filter slot.

    @Nitnelave Can you please try using this changed version?
    File Removed

    Along with this config file:
    Code:
    {
    # type:
    # 'string' - log entry is filtered if this value is contained in the message's text.
    # 'regex' - log entry is filtered if the message's text matches at least once in the regular expression.
    # value:
    # the value to be compared (either by string comparison or by regular expression)
    # level:
    # 'INFO'/'WARNING'/'FATAL'/'ANY'/etc - the value of the log level)
    activateTimer: true,
    filters: [
    { type: 'string', value: 'overloaded?', level: 'WARNING' },
    { type: 'string', value: 'records because of age in', level: 'INFO' },
    { type: 'string', value: 'Running interest system', level: 'INFO' },
    { type: 'string', value: '[BankAccount] Total given', level: 'INFO' },
    #{ type: 'regex', value: 'Il est : \[0-9]{2}:[03]0\', level: 'INFO' },
    { type: 'string', value: 'Connection reset', level: 'INFO' },
    #{ type: 'regex', value: 'Location{world=CraftWorld{name=\[0-9a-zA-Z_-]+\}x=\[-\.0-9]+\y=\[-\.0-9]+\z=\[-\.0-9]+\pitch=0.0yaw=0.0}', level: 'INFO' },
    { type: 'string', value: 'Could not pass event CREATURE_SPAWN to NoCivilSpawns', level: 'SEVERE' },
    #{ type: 'regex', value: '\npcx : (L|l)oad(ed|ing)\', level: 'INFO' },
    ]
    }
    Please let me know what the logs tell you and if the plugin now works properly.
     
  29. Offline

    Nitnelave

    I found the miscreant plugin! it was SimpleSave. With what you said, I guess it put up a filter that took precedence over yours. I'll try the updated version of obu, to see if it works.
    EDIT: Woo! it works! AND it tells me who the culprit is! should have seen that BEFORE the tests... anyway, it works now. I guess the SimpleSave filter is deactivated or replaced, and no longer works?

    Also, now that I think of it, could you have a "replace" possibility? like, replace any message with "Location[x,y,z]" (or some regex) by "player sleeping"? or even by "player sleeping at x,y,z" (with the values of x,y and z of course)?

    By the way, your filter detector is so sensitive it detects the plugin's own filter on reload!
    22:21:42 [WARNING] [obuShutTheHellUp version 0.2] Filter conflict detected! Other plugins might have issues (not caused by this one) - Fixing for shared filtering.
    22:21:42 [WARNING] [obuShutTheHellUp version 0.2] Culprit: obu.ObuFilter

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 16, 2016
  30. Offline

    OBudista

    Hey @Nitnelave, thanks for testing and letting me know how it went.

    Right now it is "sharing" the filter. Meaning that it will save the old filter class (in this case the SimpleSave) and run both ObuFilter and the SimpleSave's filter. Both will work.

    However, by reading your logs I can tell the moment you reload the plugin overrides the SimpleSave and removes it altogether. I'll work on a fix for that.

    Also, that suggestion for replacing might or might not be possible, I'll check it out since it is an interesting functionality.
     

Share This Page