[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


    Is there anyway to STop the auto health healing thing thats going on?
  3. Offline


  4. Offline

    Jamie Tees

    is this been updated?
  5. Offline


    TYPE /ptml ea then /ptml em

    type /ptml ea the /ptml em

    Im confused on how to change the time in the autosave stopper . Is the time in that fill (36000) in seconds or what?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 14, 2016
  6. Offline


    It is in ticks, so 20 ticks = 1 second. 36000 ticks = 30 min
  7. Offline


    Is this updated and worthwhile? Thanks!
  8. Offline


  9. Offline


    still workin fine for me on latest rb.
  10. Offline

    Jamie Tees

    kinda slow for me, chunks are messing up now on he newest build in dev
  11. Offline


    that does not work. it only enabled animals and monsters in ALL my worlds...
  12. Offline


    hm sorry worked for me XD try disabled mob limiter. that is the only thing that should affect it.
  13. Offline


    Does this plugin still work properly on CB953+?
  14. Offline


  15. Offline


    Okay awesome! installing it :p
  16. Offline


    This is my "/plugins/PerformanceTweaks/MonsterLimiter.yml" file
    enable: true
            allowmonsters: true
            allowanimals: true
            maxmonsters: 2500
    This is my "/plugins/MultiVerse/Worlds.yml" file
            animals: true
            pvp: true
            alias: ''
            blockBlacklist: ''
            worldBlacklist: ''
            spawn: -1923:7:-1204:354.5565:33.488346
            mobs: true
            price: 0.0
            environment: NORMAL
            editWhitelist: ''
            playerBlacklist: ''
            playerWhitelist: ''
            editBlacklist: ''
    OK problem solved. If you are using "MultiVerse" and "PerformanceTweaks" you must do the following to fix the issue.

    1. Stop server
    2. Move PerformanceTweaks.jar from plugins directory
    3. Edit Worlds.yml (see above) make sure "animal" and "mobs" are both set to true
    4. Start server
    5. Stop server
    6. Move PerformanceTweaks.jar back to the plugins directory
    7. Edit MonsterLimiter.yml (see above) make sure "allowmonsters" and "allowanimals" are both set to true. If you set this to false you will break it again and players will gain health over time.
    8. Start server

    If you need to control spec mobs from spawning you can use bmobs plugin. Most features still work.
  17. Offline


    Does chuck persistance still work as it should? in RB953+
  18. Offline


    For stop regenHealth peacefull, juste get EntityRegainHealthEvent, and stop it if cause is REGEN (->peacefull). Can you update your code with this ?

    And please update the source folder.
  19. Offline


    I'd like this plugin to not die!
  20. Offline


    Same :(
  21. Offline


    i've having issues with the chunk unload feature, since when ppl go afk and are still logged. The map and chunks unload while the player is still in that section. When you come back your either in the ground/falling or when you try to build it deletes things but doesn't actually deleted anything?
  22. Offline


    Yep same problem here.
    tested this plugin because our server only has 2Gigs of RAM and it come more and more often to can't keep up spam, without anyone playing ... stupid VPS server having issues to handle the disc I/O i think.

    My problem is that sometimes w/o going afk i suddenly remove blocks with right clicks.
    but after a relog it's back.
  23. Offline


    hey, just wondering does this still work fine with #1000 build?
  24. Offline


    i guarantee it's due to the plugin un loading the chunks and area while players are still in it. Making you stuck in a hyper space XD. Maybe a proper fix would be to unload/unchunk sections with out players in it.
  25. Offline


    Same question here.
  26. Offline


    i disabled it today and no more despawning blocks or missing chunks
  27. Offline


    Me too : so I presume we can tell it doesn't work with Bukkit buil 1000.
  28. Well I havent gotten any bad chunks with this plugin, however, it does seem to kick people for flying pretty frequently.. like every 10 - 15 minutes.. Is this fixable?

    Love the plugin ! It really helps out !

  29. Offline


    Is this working with b1000??
  30. Offline

    Jamie Tees

    Lags like a B*** on build 1000, when I got rid of it, it went straight up to 20 TPS again :D
  31. Offline


    The only thing I think works is the auto save, other than that, disable everything and just use it for chunk loading.

    Can someone take over this plugin and update it, making it faster/better?

Share This Page