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

Discussion in 'Archived: Plugin Releases' started by Mrchasez, Sep 30, 2011.

  1. Offline

    Mrchasez

    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)
    Show Spoiler

    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
    Older Changelogs (open)
    Older Changelogs (open)


    [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!

     
    jo3la, DoomLord, RoiTortue and 8 others like this.
  2. Offline

    emericask8ur

    All the updates your adding is Video, Fixed Remove animals being there twiceFixed Ea, Enabling Mobs.Fixed Ra, Disabling MobsFixed Enable mobs not working Fixed Plugin.yml to say correct version instead of 1.5 Fixed Enable Animals not working correctly
    *Now Come on those arent updates....... the only reason your doing that is cause you dont know what to do!

    All the above.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 20, 2016
    Tolerance likes this.
  3. Offline

    Mrchasez

    Eh i wasn't done posting yet xD
     
  4. Offline

    bergerkiller

    emericask8ur likes this.
  5. Offline

    emericask8ur

    @bergerkiller let me just put that here
    Code:
    [INDENT]
    [B]4-10-2011 - Updated to v1.39. Changes:[/B][B][/B]
    - Compatibility update for cb#1240 (nothing else)
    
    [B]2-10-2011 - Updated to v1.38. Changes:[/B]
    - Added slowDown property
    - Added property changing signs
    - Trains can link if they have collide disabled
    - Spawned trains use default properties
    - Teleported trains remain their properties
    
    [B]25-9-2011 - Updated to v1.37. Changes:[/B]
    - Added default properties using Permissions
    - Added fully functional tag system with a tag track switcher
    - Added train collision property
    - Wrote a complete WIKI page...what a work was that!
    
    [B]22-9-2011 - Updated to v1.35/6. Changes:[/B]
    - Added train properties system
    - Every minecart can be MinecartMember and every member has a group
    - Re-built against cb#1185
    - 1.36: NPE because of get which had to be convert in link function
    
    [/INDENT]
     
  6. Offline

    QQCucumber

    NoLagg currently has NoLaggChunks removed
     
  7. Offline

    emericask8ur

    He does have a life trusttttttttttt mee.
     
  8. Offline

    bergerkiller

    @QQCucumber Uploaded a WIP for it a few hours ago, see the NoLagg thread last page. Had to temporarily remove it, because it caused more issues than performance. Tomorrow a re-upload will be done with proper configuration, because the WIP lacks this.

    Also, I believe *some* people don't fully test my TNT feature. It actually managed to explode 5000 tnt in less than 10 seconds, and still display the best firework display ever. Disable it would be a loss for the experience. :)

    @emericask8ur Lol...I don't have a life either with a demanding community like this. :)
    Aw well, better learn to deal with deadlines and stress now, than to get a complete shock once I start to work 9 hours a day in a corporation...

    EDIT

    And now back to Ptweaks. It's not a public thread around here...
     
  9. Offline

    Kiste

    Is it possible to decrease the overall block tick rate? (without recompiling craftbukkit of course :p But if there is no was i guess i'll have to change the server .jar itself...)

    This would be usefull on 2 ways:
    Slowing down the Worlds mechanics (lesser mob spawns, slower plant growing)
    simple stable performance boost

    Another suggested feature if it is possible:
    Costumizing block tick behaviour in general like:
    only tick blocks above level 20
    or disable player requiremnents(no more check the sorroundings of the player and just let all specified blocks tick all the time)
    Main reason for this would be the obvious performance boost on servers with many players. (It also would make them more realistic.)

    But i guess i shpould rather post this to noLagg, since this plugin seems to aim for less ram usage.
     
  10. Offline

    Fishrock123



    Oh it's certainly based of PerformanceTweaks, you didn't even move PerformanceTweaks.java to ptweaks.java, what did you do, copy *all* of his code, and edit it a bit?



    Your claims are impossible. That is all. Make legit claims please.
     
    emericask8ur likes this.
  11. Offline

    Mrchasez

    This is already being worked on, Slowing down the mechanics of the game to reduce lag.
     
  12. Offline

    emericask8ur

    @Plague he knows he copied and stole the exact.. Plus his code is the same...smh
     
  13. Offline

    Mrchasez

    Of course i didn't change it.
    90% of the code of PerformanceTweaks.java is the same
    Renaming it has no point, now does it.

    I have said before, I plan to not keep any or very little original code.
    I admit a lot of it is from performancetweaks this is just until i replace it with my own. This is just a standard for me to go off of, When i start getting some "real" updates going, little by little all the code will be switched out to mine. Thanks
    I do not understand why you wish to pick on me :'[

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

    Fishrock123

    *Shrug* Just uh.. pointing it out. Developers don't really like it when you do that kind of stuff.
     
    emericask8ur likes this.
  15. Offline

    Mrchasez

    I let Lex know.
    This is only temp do not worry. I am not doing what the last guy did and claiming its all new when nothing is changed. I am going to be adding my own code completely.
     
  16. Offline

    bergerkiller

    Ok looking forwards to it...getting tired of monitoring this thread every time someone jells 'COPIED!'...
     
    emericask8ur likes this.
  17. Offline

    Fishrock123

    Righty, but your claims are still over-the-top. If your servers using that much ram, then doing this simply won't reduce it that much, the majority memory is used by chunks in temporary storage, and you can't change that without changing the core parts of the mc server software..?
     
    emericask8ur likes this.
  18. Offline

    Perling

    Thanks for your great plugin :)
     
  19. Offline

    Fishrock123

    Ok, can you somehow give an explanation of how you reduce 700mb? (because PerformanceTweaks didn't do that..?)
     
    emericask8ur likes this.
  20. I will test this on my server that has over 40 players on and more than 25 plugins. We have been trying to reduce our ram usage but not remove essential plugins. I hope this does the job. I will report back with results.
     
    Fishrock123 likes this.
  21. Offline

    Mrchasez

    make sure to give it time (over night)
     
  22. Offline

    Phaedrus

    Please keep the discourse civil.

    If he's re-using code with permission then it's fine. We all have to start somewhere, sometimes it doesn't make sense to re-invent the wheel.

    Now how bout help to make the plugin better instead of trolling.
     
    TonyMcDanza likes this.
  23. Offline

    Mrchasez

    Thanks
     
  24. Offline

    ZachBora

    I've put the plugin on my server last night.

    But I have an issue, maybe you can explain how this works... You claim that we must let the server run with the plugin all night to see improvements. Yet I don't see where you're storing your data. Our server crashes often, at the moment we think it's a memory issue and with your plugin I thought it would reduce or remove that. But it crashed again this morning. If your plugin doesn't gather tweak info somewhere on disk I don't see how it could be helpful for a server that crashes often, it would just be doing the tweaking all over again.

    Please tell me where the info is gathered as the plugin directory only has 3 files of 4kb.
     
  25. Offline

    PyPKjE

    Very nice that people are developing an anti-lag plugins. ;)
    Be sure to try and hopefully will not be disappointed :cool:
     
  26. Offline

    Mrchasez

    Its not the plugin side that usually causes it take a while. Having it on over night is just a estimate, some servers will see results 20m after its in,
    The main things it does to save ram has to do with chunks being saved, and staying loaded longer, and the other features won't take effect because no one uses's them the second it loads up.
    It cant do this the second the server starts with it. If your server is crashing this plugin really won't stop it, If your server is out of ram your get the OutOfMemory error.

    Ill try :)

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

    ZachBora

    Hmmm, no we don't get OutOfMemory errors. Just crashes and server becoming slower and slower until everyone gets kicked. And it's random. Can work well for hours then we have 5 crashes in the next hour. Never the same errors. I wasn't able to reproduce this locally on my test machine with the same plugins. I'll check the forum for help.
     
  28. Offline

    Mrchasez

    Does your server autosave?
    If your server is low on ram, when it saves it wont have enough and your players will be kicked for it.
    Another way to make this a lot better is have your server restart every x hours to free up extra memory and clean the server so to say.
     
  29. Offline

    ZachBora

    Well yes we have auto-save because whenever server would crash peopel would lose hours of work.
     
  30. Offline

    Tolerance

    Sorry to burge in the picture, but you say you have 60 players, that a large amount. Do you have pistons, and TNT disabled? Those can cause a LOT of lag, especially if you have 60 players.
    Also, a thing to keep in mind, the farther you walk from spawn of land that has not been explored yet, the more chunks need to be loaded. On my old server we all just walked around the map and it lagged annoyingly, so I shut down the server and set up a new one.
    With 60 players roaming the map, it's hard to tell them to just stay near the spawn, but for sure disable TNT and Pistons.
     
  31. Offline

    Fishrock123

    Just get a world boundaries plugin. ^_^
     

Share This Page