[MECH/EDIT ] Ptweaks v6.0- Kill all server Lag! [1.5]

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

     
  1. Offline

    Mrchasez

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

    Mrchasez

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    It removes all lag caused by ram and process's.
    If your running a server that can't handle it anyway, this wont help.
  4. Offline

    Marthaan

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Alright so if I am to install this, the overall load on the server will decrease?
    Sometimes we are suffering from lagspikes since we're running the server on a windows VPS.
    Assigned memory is 7GB. What settings do you recommend? The processor is a pretty powerful 4 core.
  5. Offline

    the_Zorro

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Well I don't even know where the lags comes from. That's why I just wanted to test this plugin.
    My CPU usage is about 15%, RAM is about 600 MB of 4 GB, the server runs with 20 TPS and it's localhost.
    Only thing that could be is that MinecartMania only uses one thread, so it only runs on one core of my CPU (12,5 % per core).
  6. Offline

    Mrchasez

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    This would be perfect with Ptweaks.
    Your see a real improvement. Those lag spikes will most likely go away as well.
  7. Offline

    Mrchasez

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Really don't know then.
    Ptweaks should still help in theory though.
    Even if it just loads chunks faster for you
  8. Offline

    gameswereus

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I haven't tested the TnT feature yet, but everything else seems to be helping. My server us usually lag-free anyway, but none of my users have been complaining. I am running this with NoLagg.
  9. Offline

    Mrchasez

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Cool!
    Glad to hear that.
  10. Offline

    Fiddy_percent

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I have a server with horrid ram usage it starts off fine but just collects and collects ram as new players join and the ram doesn't go away even if there is only 1 person on :( will this help?
  11. Offline

    Mrchasez

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    It will help, But if you have less then 300MB and a bad computer/ machine it can't do to much.
    If you have 300MB or more, this will do great :)
  12. Offline

    Fiddy_percent

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    i have a server host and 3.6gb of ram lol I put it in and almost cried at how much it helped X) thanks a bunch!
  13. Offline

    Mrchasez

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Your welcome :)
    Glad to be of assistance :p
  14. Offline

    mdskizy

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    With this and nolagg both installed I was able to blow up 40200 tnt WITHOUT experiencing ANY lag of any sort. There was no chat lag and no can't keep up messages on the console. I think I'm gonna toss this on my actual server. 25 or so plugins with only 1.5gb's of ram with a max heap of 1024 could use some help. =) Thanks bud
  15. Offline

    Mrchasez

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    That's great to hear!
    If you experience any issues running this and Nolagg please let us know.
    Thanks
  16. Offline

    Cristof

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Can u post ur NoLagg and Ptweaks config :D?
  17. Offline

    Fr0zenfr0g

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    how do i set the minimum amount of mobs?
  18. Offline

    Marthaan

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Not sure why you want to do that or how you would think that would work?
    You can set maximum mobs in MonsterLimiter.prop

    Default it is max 2500 I believe and that is fine.
  19. Offline

    Mrchasez

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Its as Marthaan said.
    You just change it to what you wish.
  20. Offline

    GoofyGewber

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Really like this plugin! Good job really helps out on my 30 slot server with everyone exploding tnt.
  21. Offline

    Mrchasez

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Nice name :)
    TNT shouldn't be an issue again
  22. Offline

    GoofyGewber

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Thanks! TNT isn't an issue at all! No lag what so ever!
    Quick question, do you have any websites or anything you would recommend to learn Java? I really want to start coding plugins and help out the community.
  23. Offline

    Mrchasez

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I started years ago :confused:
    There are threads here on the bukkit forums that will give great websites.
    I can't think of any though.
  24. Offline

    GoofyGewber

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Alright thanks :D
  25. Offline

    kingmob

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    How it deals with multi worlds?

    This post has been edited 1 time. It was last edited by kingmob Oct 4, 2011.
  26. Offline

    Mrchasez

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    As of right now, you all worlds will have the same settings.
  27. Offline

    RROD

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Add Multi Core CPU Support using Java 7. If you can. Only then I think I'll recommend this plugin.
  28. Offline

    Mrchasez

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    If your server is running multiple cores this will work. It don't need added support there.
  29. Offline

    RROD

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
  30. Offline

    Mrchasez

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    :p
  31. Offline

    Mrchasez

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    [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
  32. Offline

    KHobbits

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I disagree, this thread is for discussing the issues related to a plugin, arguments about broken features or implementations (thanks for the input @bergerkiller ), are what this place is for.

    This post has been edited 1 time. It was last edited by KHobbits Oct 4, 2011.
    the_Zorro and swift_fox24 like this.

Share This Page