[INACTIVE][MECH] PerformanceTweaks v0.08 - Disc Usage Minimizer, And More [818]

Discussion in 'Inactive/Unsupported Plugins' started by LexManos, May 3, 2011.

  1. Offline


    PerformanceTweaks - Disc Usage minimizer, And Other performance tweaks
    Version: v0.08

    AutoSave Stopper:
    Instead of writing every chunk to the disc every 2 seconds. This changes it to 30 mins.
    This saves the server from writing about 9KBps to the disc (7 writes, 2 reads per chunk, on a 3 person server).
    As well as saves about 2 calls to deflate every 2 seconds. (per chunk)

    Chunk Persistance:
    Change how long chunks will stay loaded into RAM, instead of unloading instantly when not used. This way naturally high traffic areas will stay loaded, yet areas that someone was just passing through will unload after some time. This means you need SOME extra RAM but that extra RAM will actually give you a boost in performance while reducing the amount of reading and writing needed for the disk. Win-Win. This part can be disabled via the config file.

    Monster Limiter:
    The Monster limiter will disabled 'natural' monster spawning when the number of monster gets above the max threshold. Then it will re-enabled it when the monsters get below the threshold - 100. Note: Monsters spawn in groups so this is a rough threshold. The limit can be set in the configuration. You can also completely disable this there as well. Let me know how this works out for you.

    • Massively reduces needless disc usage
    • Chunks stay in RAM longer
    Download wget friendly
    Download Source Here
    Donation Link[​IMG]

    If you have any other ideas let me know I can look into if they are feasible or not.
    60 Seconds Without the plugin on a idle server:
    Average Disc Traffic: 1041Bps
    60 Seconds With the plugin on as idle server:
    Average Disc Traffic: ... none.


    Verion 0.08:
    • Updated to MC 1.6.6 RB 813
    Version 0.07:
    • /save-all now forces saving player data as well. Thanks PhantomGamers
    • Fixed NPE on Disable/Reload when MonsterLimiter was disabled. Thanks the like.. 60 of you who repeatidly reported it u.u
    • Added Perliminary Miltiverse world specific Monster Limiter configuration. Please test
    • -Changed MonsterLimiter config to yml.
    • Potential fix for a NPE in Chunk Persistance.run
    • Temporary fix for a Concurancy exception in MonsterLimiter.run();
    Version 0.06:
    • Re-wrote how monster Limiter works
    • --Added config option for allowing animals/monsters separately.
    • --Added a monitor thread, to catch edge cases where EntityDeath doesn't fire.
    • Changed how Persistent Chunks refreshing works, lowering the CPU impact.
    Version 0.05:
    • Changed how Chunk persistence works.
    • -Should get rid of any and all concurrency errors. Chunks are now unloaded by Bukkit itself in doTick()
    • -It will not try to unload spawn chunks any more.
    • -Chunks are new 'refreshed' when players move.
    • Added the /ptml command for debug info.
    Version 0.04
    • Added Monster Limiter
    Verions 0.03
    • Added Chunk Persistance
    Version 0.02
    • Added Configuration
    Version 0.01
    • First Release
    lemachinbidule, omnija, nacs and 13 others like this.
  2. Offline


    Same error here, on 818. Only seen it once.
  3. Offline


    I'm using CB 823 and the latest version of performancetweaks and craftproxy. I notice a slight delay in chat while using these plugins, but when I remove them, the chat is back to no delay. The delay is about 50-100ms. Anyone else experiencing this issue?
  4. Offline


    Also been noticing a missing chunk if you warp somewhere or type /spawn. Is it an issue with CB or performancetweaks?
  5. Offline


    Its somethign with CB, we've been noticing it to. Even without PT installed.
    Its not sending you the chunk you're standing on or something.
  6. Offline


    Well, I had that exact same problem. Evertime I teleported somewhere only the chunk directly underneath me failed to load. Turnig off chunk persistence solved that problem for me instantly, so I don't think it's a craftbukkit issue.
  7. Offline


    If anyone needs help testing for bugs, let me know. I have a lot of free time.

    AMD 6x4.0Ghz
    8GB RAM

    I can't think of how to get a bunch of people on a server I host because of popularity and internet speeds, but most of those problems are caused by / only encountered with poor configuration, so I feel like with specific poorer configuration we could nail some of the bugs down.

    Most of the comments I see are equivalent to, "I run a bunch of mods that I don't think do things that could possibly maybe interfere, so I'm not even going to mention them. Here's a vague description and no logs so you couldn't even possibly reproduce it." In those cases, give me a list of what is running and maybe I can figure something out.
  8. Offline


    I think that there is a little bug with AutoSave stopper.
    I set up the autosave time to 10 min (12000 ticks), but some time, one server crash, i lose all terrain alteration up to last restart... i think that autosave not work fine and saveall only on server shutdown. Please Check it :D

    edit.: There is another little issue with Chunk Persistance... when i enable it, on nether world ... during the exploration of new chunk, server generate chunk with NormalWORLD template and not with nether template (without sky...all closed....)
  9. Offline


    Any news if a new version of PT is coming anytime soon and implementing any bug fixes or more performance tweaks?
  10. Offline


    Chrisof, server crashes will always revert stuff unless you have a proper save plugin, Go get one.
    As for why your nether is generating overworld chunks.. I don't touch anything to do with the world gen. I am not sure how this is happeneing.

    Anyways, there really isn't any bug fixes. I am still working on the chunk persistence. But beyond simply forcing it to never unload any chunks, the other methods are unreliable. I may simply remove it because so many people are supposedly having issues that are in no way related to the code I modify.
  11. Offline

    Matt Gill

    Is this working with bukkit build 860?
  12. Offline


    I like the mob limiter... but it always makes it so that the mobs spawn back REALLY slowly. As in, if I butcher my max 850 mobs, it spawns a new monster about 1 every 3 or 4 seconds.

    What is the deal here? It is a 25 player server, mobs should spawn like a madhouse to hit that 850 mark. Is it because I am butchering them? I am unsure of how it works exactly beyond the limiting part. I like the idea, but if it generates them that slow, it isn't going to do well on my survival server. Awesome feature, I hope I can turn it back on.
  13. Offline


    Is this compatible with SimpleSave 3.12? I ask this because I read on one of my searches that PerformanceTweak is not compatible with SimpleSave. Also I'm using PT and SS and SS is giving slightly issues...

    CB - 863
    Plugins (Ones that are more likely to effect PT) - SimpleSave 3.12, Permissions 2.7.4, WorldGuard 5.0-dev, WorldEdit 4.6.
    My config is default except I turned off Chunk Persistence, because I read here that Chunk Persistence made the plugin work better.

    What in your opinion is the best configuration for your plugin?
  14. Offline


    How well with this work with a server of only 1 gig of ram?
  15. Offline


    Please, make new build for CB 860
  16. Offline



    i get this error when reloading PerformanceTweaks with PlugMan:
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:309)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:399)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:671)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:678)
    at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:712)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:287)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:128)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    at com.bekvon.bukkit.plugman.PlugMan.onCommand(PlugMan.java:65)
    at com.bekvon.bukkit.plugman.PlugMan.doCommand(PlugMan.java:133)
    at com.bekvon.bukkit.plugman.PlugMan.reloadPlugin(PlugMan.java:352)
    at com.bekvon.bukkit.plugman.PlugMan.enablePlugin(PlugMan.java:338)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:253)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:799)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:125)
    at org.jbls.LexManos.PerformanceTweaks.onEnable(PerformanceTweaks.java:22)
    at org.jbls.LexManos.ChunkPersistance.onEnable(ChunkPersistance.java:79)
    at java.lang.Thread.start(Thread.java:612)
    > 13:47:04 [SEVERE] Error occurred while enabling PerformanceTweaks v0.08 (Is it up to date?): null
    > 13:47:04 [INFO] [Performance Tweaks] Chunk Prune Time: 5000ms
    > 13:47:04 [INFO] [Performance Tweaks] Chunk Life Time: 300000ms
    > 13:47:04 [INFO] [Performance Tweaks] Set auto save interval to 18000 in world "world1_nether"
    > 13:47:04 [INFO] [Performance Tweaks] Set auto save interval to 18000 in world "world1"
    > 13:47:04 [INFO] [Performance Tweaks] Version 0.08 enabled.
    > 13:47:04 [INFO] [Performance Tweaks] Version 0.08 disabled. 
  17. Offline


    Encountered a small hiccup while running the plugin related to chunk persistence.
    The server did not crash or appear to lag or anything just thought it might be worth posting about it here.
    01:33:57 [SEVERE] java.lang.NullPointerException
    01:33:57 [SEVERE]       at java.util.Hashtable.get(Hashtable.java:334)
    01:33:57 [SEVERE]       at org.jbls.LexManos.ChunkPersistance.run(ChunkPersistance.java:154)
    01:33:57 [SEVERE]       at java.lang.Thread.run(Thread.java:662)
  18. Offline


    @LexManos : CB# in title must be a recommended build (860).
  19. Offline


  20. Offline


    Nothing is working properly? :O So is this plugin obsolete and doesn't help anymore? I don't want to keep it on if it slows down the chunk loading :(
  21. Offline


    Wow, you just zoomed in the last sentance and compleetly ignored the rest of the post/rest of the thread?
    Disable chunk persistence, the other two segments work fine.
  22. Offline


    Is AutoSave Stopper still useful with #860 ? That's the only PerformanceTweaks feature I use, but after #860 i noticed that bukkit native saves are way faster than before.
  23. Offline


    Does not work with LWC. LWC thinks the block you placed is AIR not a chest
  24. Offline


    You're going to have to be more specific... I'm not exactly sure how this could effect block placement.
  25. Offline


    LexManos ?
  26. Offline


    Yes it will functions exactly the same as it did in 818, etc..
  27. Offline


    Yea NVM I think it was just a freak thing. Also not to sure if its with your plugin or not. But sometimes my server just freezes were the console stops responding. Maybe it has something to do with chunk persistence?
  28. Offline


    Nope, my plugin wouldn't cause that.
  29. Offline


    Alright time to figure out why this is happening then lol
  30. Offline


    Caused jiggling drops that couldn't be picked up till rejoined, and also unloaded chunks, removed it and things started working without problems.
  31. Offline


    @LexManos Nice Plugin you have here. I'm using Ramdisk all this time but my new server is dual sata at raid 0 yeah I backup all the time so I don't care for the risks.

    This looks like it could work a ton for my server.

    But the question is have you ever done the ram extra usage math? I'm a tad worried what a server with 30+ online at once with the largest Mine Cart system I know of almost 500,000 tracks layed by hand :) Would do to the ram?

    From the sounds of it no Matter if you standing still or not your saving none stop is this correct? Like breaking blocks it saves it?

    If that is the case then setting to 1minute could be the difference of 10 and 100 players?

    Trying to get a better understanding.


    PS: Do you have a built save plugin. Right now I use AutoSave but would something like that even be needed?

Share This Page