[MECH/EDIT ] Ptweaks v6.0.6 - Kill all server Lag! [1.7.5]

Discussion in 'Plugin Releases' started by Mrchasez, Oct 1, 2011.

     
  1. Offline

    Mrchasez

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    This thread is outdated and wont be updated.
    Plugin is updated, but only here:
    http://dev.bukkit.org/server-mods/ptweaks-remove-all-server-lag/

    (Old posts)

    Ptweaks -
    Version: 3.0
    CB: 1.2.4-R1.0

    DOWNLOAD (BukkitDev Download)
    BUKKITDEV LINK
    Normal Ptweaks 3.0 StartUp Here

    The Continuation of PerformanceTweaks @LexManos However, It has almost been fully redone by me.


    VIDEOS:
    ====================================================
    VIDEOS:
    Thanks too @Torrent for the video



    Thanks too @BrandonHopkins for the video



    Lag Test 3,000 TNT / With and Without Ptweaks (356MB server)



    ======================================================


    About:

    Ptweaks is plugin to optimize your server, by changing chunk loading algorithms. Ptweaks is also huge on ram reduction, if you run a low ram server, or just want the improvements; Ptweaks is for you. Ptweaks also stops crashing and lag from TNT, and enables complex methods to improve your server in almost every aspect. Running a 16GB or 512MB Server, Ptweaks is for you.


    Testing:

    We ran 7 large plugins on a small 256MB server without PTweaks. The server couldn't load chunks, there was noticeable amounts of chat and block lag. The server was all around unplayable. We enabled Ptweaks and within minutes of being on, the chat and block lag we're gone. Chunk's loaded normal as they would on a 3GB Dedicated server.


    Features:

    • Massively reduces needless disc usage
    • Loads Chunks faster
    • Priorities Chunk's in the direction your facing, To ensure smooth game play
    • Keep chunk's loaded at a configured amount
    • Chunks with higher activity such as a spawn, stay loaded to massively reduce Ram usage
    • Limits Mobs and Animals to a configured amount
    • Disable Mobs and Animals
    • Check Current Ram being used
    • Config file's for each part of the plugin
    • Dupe TNT Packet's, So TNT will no longer cause any server side lag
    • Add's highly advanced Chunk Algorithms
    Feature Description:

    AutoSave: Instead of writing every chunk to the disc every 2 seconds. This changes it to a custom time that you want, Default is 30m. 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:
    This is a fully custom feature, that can be turned off. It will change how long chunks stay loaded. Chunks with lots of visitors will stay loaded longer, and not have to render again and again. This adding lots of performance to your server. This works for people just joining on that chunk or someone walking into it, So a spawn point works great with this. You can change how long they stay loaded, and how fast they unload. Default works for most though. This will no longer need extra ram.
    ======================================================
    Monster Limiter:
    This is another fully custom feature. You can change it to a certain amount of Mobs spawn, or if they spawn at all. You can turn Mobs off and animals on, or vice versa.You can set a minimum mob limit and a maximum, That the server wont go below or above. Fixing some lag that can happen from mobs spawning or not spawning at all.
    ======================================================
    SaveEdits:
    When the server starts to save, It slows down the processes to normal speed, Causing the save to be instant.
    ======================================================
    Ram Saver:
    Based on how the Ptweaks edit chunk loading, Ram drastically goes down. With the added features, such as slowing down disc usage. You can see up to a 80% Improvement
    ======================================================
    Chunky:
    Chunks in front of you get a higher priority too load then the ones to your side and back. Making smoother game play, and instant chunk loading.
    ======================================================
    TNT Edit:
    This makes TNT only really have to load once, then it is saved until the TNT packet stops. Causing TNT cause no lag at all, Under 10k TNT, which it will start to give off lag. TNT packets are also saved, after the first and just duplicated so you dont get spammed with them, and causing lag.
    ======================================================
    Installation:
    1. Download Ptweaks
    2. Stop your server
    3. Put Ptweaks.jar in your Plugins directory
    4. Start Your Server
    5. Edit Config's to your liking or leave default
    6. Relaod
    7. Done!
    Commands:
    • /ram - Checks Free / Total ram
    Permissions:
    PTML:
    Permission: ptml.has
    RAM:
    Permission: ram.has

    ChangeLog:

    [v3.0]
    • Stable Build
    • Added Whole new Chunk Loading algorithms thanks too Thulinma
    • Fixed Error where Chunk's wouldn't load
    • Chunk's now load faster
    • Chunks prioritize too load where the player is facing, before chunks to the side or behind
    • New Feature: ChunkEdits (@Thulinma)
    • Enabled Mob Features
    • You can only disable or enable Mob's from MonsterLimiter.yml for now, To disable set too 0
    • Fixed bug where you couldn't pick up mob drops
    • Fixed error on ChunkPersistance StartUP
    • Ram handler Update started
    • Updated too a stable Bukkit R1.0 Build
    • Removed separate listener files
    • Main now Implements listener
    • LET NEW PTWEAKS FOLDER LOAD


    [v2.0b]

    • Updated to CraftBukkit 1.2.4-R0.1
    • Added WorldListener
    • Changed all Files to YAML format
    • Added Enable options for Threaded Save and Monster Limiter
    • Changed Default Settings for more optimization
    • Started on Chunk Algorithm import
    • Fixed Bug where chunk's wouldn't load properly
    • Changed Start up code
    • Fixed Bug where you would fall into void on teleport
    • Fixed Faction Warzone bug where Mobs would fly when hit
    • Changed Util Color codes
    • Fixed Grammar error
    • Moved Listener to Even folder
    • Optimized chunk unloading method
    • NEED TO LET NEW PTWEAKS FOLDER LOAD
    [v1.9-0.6a]
    • Updated To 1.2.3-R0.1 Compatible
    • Fixed Util Color Class
    • ^Moved all Listeners to Main Class^
    • Re-Wrote Entity Listener
    • Re-Wrote Player Listener
    • Re-Wrote World Listener
    • Added GroupManager Support
    • Fixed Sync Save Times
    • Added New permissions
    • Changed Resource management
    • New Default settings
    • Fixed Duplication Bug with Output in Console
    • Fixed Mob limit not responding
    • Fix Mob Ratio not being correct
    [1.8]
    • Updated to bukkit 1.0.0-r
    • Chunk life time now 4 1/6 mins.
    • Removed all "i" interface from Threaded Save
    • Updated Ram to V1.2
    • Started Permissions for Ptweaks ptml
    • New Feature : TNT EDIT Changed from finished, to coming
    • More CPU friendly.
    • Updated Ram to v1.5
    [1.6.1]

    • Updated for bukkit build 1337
    [v1.6]
    • All features getWorld instead of getServer
    • Added New Feature "Ram"
    • Added New Command /ram
    • Added New permission ram.has
    • Auto Save stopper now slows down process's
    • Old code in PerformanceTweaks.java Updated
    • Fixed torches light not going out when broken
    [v1.5.1] Updated (10/5/11)
    • Fixed Remove animals being there twice
    • Fixed Ea, Enabling Mobs.
    • Fixed Ra, Disabling Mobs
    • Fixed Enable mobs not working
    • Fixed Plugin.yml to say correct version instead of 1.5
    • Fixed Enable Animals not working correctly
    • Thanks @pegasus for pointing out the RA being duped.
    [v1.5]
    • Chunks Mini-save is now a little slower, this takes up less CPU
    • Mob limit isn't only on Death and Spawn, but chunk load as well.
    • Fixed OnEnable and OnDisable leaving extra notes in console.
    • Updated for CB #1240
    [v1.3]
    • Fixed CPU taking up extra resources for no reason
    • Fixed Ptweaks error string
    [v1.2]
    • Added Ptweaks Version 1.2 (C-V)
    • Updated to work with CB: 1185



    Please leave feed back!
    If you find any bugs, Please let me know immediately!


    This post has been edited 59 times. It was last edited by Mrchasez Nov 3, 2012.
    jo3la, DoomLord, RoiTortue and 8 others like this.
  2.  
  3. Offline

    Zaros

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    So server SIDE lag. This wouldn't help connection much. I'll have to try it tomorrow though, It be nice to get under 150 mb ( at 370 mb with like 10 plugins)
  4. Offline

    xBlueXFoxx

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I'll be glad to test/check this out! I'll tell you how it performs for me.
  5. Offline

    Mrchasez

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    If your server has a bad connection, no this wont help the connection, However it will still speed everything else up.
    If you run 370MB and 10 Average plugins, it should run perfect using Ptweaks
  6. Offline

    Mrchasez

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Sure, Thanks!
  7. Offline

    xBlueXFoxx

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Chunk caching is burning up CPU like no ones business that's no doubt, but it does seem to retain a lot of ram.
  8. Offline

    Mrchasez

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    My CPU usage didn't go up at all, on our test server.
    It may be conflicting with another plugin.
    I will look into it, However there shouldn't be any noticeable increase in anything.

    This post has been edited 1 time. It was last edited by Mrchasez Oct 1, 2011.
  9. Offline

    Mrchasez

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    [v1.3]

    • Fixed CPU taking up extra resources for no reason
    • Fixed Ptweaks error string
  10. Offline

    Juze

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    @Mrchasez : You are missing version number in title. And the changelogs are usually the another way around (newest first). :p

    Going to try this, nice new features compared to the original.
  11. Offline

    Mercury

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    @Juze

    Code:
    AutoSave:
    Instead of writing every chunk to the disc every 2 seconds. This changes it to a custom time that you want, Default is 30m.
    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)
    What if I have SSD running? Then this feature doesn't impact on it?
  12. Offline

    Juze

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    It does impact a bit, but the effect on one server will be small. Mostly considering how there are tens or hundreds of servers on one node/dedi, on SSDs, it could help in that case. You can change it in the config I believe.
  13. Offline

    Mercury

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I am sorry i meant @Mrchasez
    But thanks anyway.
  14. Offline

    BlockCat

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    hum, this gives my server massive lag!


    jk, good job.
  15. Offline

    Terra-Network.org

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Installed it 2min ago and will to a longtime test now.
    First impression: it works!

    @Mrchasez

    It seems ptweaks is working well at my server, but the cpu usage is higher than normal!
    Not extreme, but higher!

    This post has been edited 2 times. It was last edited by Terra-Network.org Oct 1, 2011.
  16. Offline

    Mrchasez

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Thanks :)
    I fixed them both
  17. Offline

    Mrchasez

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    It will have an impact, It wont be a drastic one though.
    However it still helps :)
  18. Offline

    Mrchasez

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    haha
    Thank you
  19. Offline

    Mrchasez

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I am aware that it takes "Some" CPU.
    It shouldn't take enough to change anything though, Once you run it for a short while this should go down :)
    This will be completely fixed in upcoming updates.
  20. Offline

    LexManos

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Just a slight note.
    If you really wanna keep my plugin alive, actually do some of your own coding.
    Claiming most of the code is new is obviously wrong with 2 seconds looking at the decompile.
    Anyways, If you can indeed make something good based on my stuff then go for it. I'd like to see what you come up with.
    but for anyone else out there, might wanna check out NoLag Its a better successor in my opinion.
    Mekixx1 likes this.
  21. Offline

    Mrchasez

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Lots of the old code has been changed, and added. I tried to keep it as close to your standard as possible. Not all code was changed, where it wasn't needed. I changed the main topic, to not new but changed. Dont fix what isn't broken.

    Edit: It's a lot different now.

    This post has been edited 2 times. It was last edited by Mrchasez Sep 8, 2014.
  22. Offline

    Fr0zenfr0g

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Wath is the diff betwen this and nolagg?
    emericask8ur likes this.
  23. Offline

    Fr0zenfr0g

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I love less ram useage but how do the minimum mob limit works?
  24. Offline

    Mrchasez

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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.
  25. Offline

    gameswereus

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Is this different from nolagg?
    GalacticNinga and emericask8ur like this.
  26. Offline

    Mrchasez

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Yes, Very much. It would improve your server if you ran both, because they help servers in different ways.

    Edit: Not so much anymore.

    This post has been edited 1 time. It was last edited by Mrchasez Sep 8, 2014.
    GalacticNinga and gameswereus like this.
  27. Offline

    wassilij

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I try this now :)
    Server without Ptweaks v1.3:
    17,6 TPS
    21 User online

    Test with Ptweaks comes in 10 minuts.

    //Edit:
    Is this "Mini-Save" a "save-all"?
    When yes, can i delete my plugin that save-all the world all 15 minuts?

    //edit:
    Sorry .. with Ptweaks v1.3:
    5,8 TPS
    19 User online
    :(

    This post has been edited 2 times. It was last edited by wassilij Oct 1, 2011.
  28. Offline

    Fr0zenfr0g

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    tnt can cause lagg...
  29. Offline

    Mrchasez

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Yes, yes it can.
    This just buffers a lot of it out.
    The server shouldn't become un-responsive using this.
  30. Offline

    Fr0zenfr0g

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    i got logged out but it may needs a lot more tnt now...
  31. Offline

    Mrchasez

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Adding video to show how how Ptweaks adds performance to a server, while 3,000 TNT explodes.
    On a 356MB server, running 7 plugins and bukkit.

Share This Page