[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

    Typhoon2142

    I'm running it on my 1.2.4 Server for an hour now and it looks good. About 550 MB RAM is used on average...
     
  3. Offline

    Mrchasez

    Great ^-^
     
  4. Offline

    colgatiN

    Looks awesome!!! Thank you Mrchasez, i never gave up of this plugin!! Amazing job ^^
    Really usefull!
     
  5. Offline

    Mrchasez

    Glad too hear that.
     
  6. Offline

    Luwiego

    With how much players and plugins ?
     
  7. Offline

    Mrchasez

    Test on your server, and find out
     
  8. Offline

    Luwiego

    Okay :/
     
  9. Offline

    oliverlin11

    Do you know if this plugin is compatible with Forever ALoad?
     
  10. Offline

    Mrchasez

    I really don't know. They probably won't because Ptweaks has a lot of custom chunk methods
     
  11. Offline

    Colm

    This is an idea to stop servers from crashing with low ram, this doesn't happen to me but it's fine now since I allocated more ram to my server. When the server hits 40 mb of ram it should force the GC to unload chunks and kill the mobs, but you should be able to turn off both of the setting separately, because I wouldn't mind the GC but the mobs getting killed I would mind :D Just as a just incase reason.

    Please reply :D
     
  12. Offline

    Mrchasez

    Forcing Chunk's too unload may not be a good idea in retrospect if you think about it ^-^
     
  13. Offline

    Colm

    It's just because I come from nolagg and it had a GC command.
     
  14. Offline

    Mrchasez

    Mm. Ill see what i can do
     
  15. Offline

    number1_Master

    Ever since you posted on the NoLagg or PTweaks thread of mine, I decided to test PTweaks (again). Let me say this:
    IT SUC------- Has improved so much. People are saying there is even less lag then before!!! One of those reasons good be because PTweaks is one file and doesn't have that many unnecessary options for me compared to NoLagg.

    Well thanks, and hopefully I will be using PTweaks for a while.
     
  16. Offline

    Mrchasez

    Glad too hear!
    Yes i do not like how NoLagg has become a bundle of different things
     
    nunber1_Master likes this.
  17. Offline

    hybridphreak

    I have encountered issues with Pressure Plates and Pistons with PTweaks. Sometimes they just decide to stop working. A server restart usually resolves this. I removed the PTweaks Plugin and it seems to have remedied the issues, BUT... the performance difference kinda makes me want to just do away with the Pressure Plates and Pistons. This may be a complete waste of time, and may be unrelated to PTweaks, but like I said, I removed the plugin and it remedies almost instantly, whereas if I just restart the server with the plugin left running, the problem comes back.
    Halp?
    Other than that, the server runs absolutely fine, with DynMaps enabled.
     
  18. Offline

    Mrchasez

    That was an older bug (quite a bit older) that i could never recreate, as hardly anyone had the issue.
    I hope you continue to use Ptweaks ^-^!
     
    hybridphreak likes this.
  19. Offline

    number1_Master

    What I'm about to say is stupid, and amazing:
    With WorldEdit, I made about 10000000000000 (lets just say a lot) of tnt. My server is small 1 and a half gigs so, ya. Anyways, with PTweaks, it held up until I typed /ping too many times in the console. Truth is, your plugin is good, very good.
     
  20. Offline

    Mrchasez

    Thanks for the feedback
     
    nunber1_Master likes this.
  21. Offline

    hybridphreak

    Of course ;) I intend to (one by one) test each plugin to see what exactly is going on. It is very temperamental. Only happening in some rare cases. For example, I have made a Bank, where the user stands on a pressure plate while accessing a chest (ItemBank Plugin) and a wall seals them in the room (preventing other users from accessing the same chest), the wall then disappears when the user steps off the plate and walks out of the bank. Sometimes, the plate just doesn't want to play, a quick reload all server command quickly fixes it, but hey, Redstone can be a pain at the best of times.
    I do think, however, I am going to see how PTweaks performs along side CraftProxy, should make a real difference for users, theoretically ;)

    Will keep you updated, and again, thanks for an awesome plugin ;)
     
  22. Offline

    kahlilnc

    maxmonsters=2500
    enable=True
    So can you limit one type of monster?
     
  23. Offline

    Mrchasez

    Cool great, Let me know if they work together
     
  24. Offline

    HungryHiPPo

    I'm running a ubuntu 11.10 unix server with a core i5 2500k processor, 16gb of ram and a 10000 rpm hard drive. The hard drive is just fro backups as I allocate 4gb to the ubuntu server, 8gb to the minecraft java environment and use 4gb as a ramdisk that MC runs off of.
    Anyway, my question is, do you think this plugin will do anything for me? Is it possible it will mess anything up with my saves? Since I run on a ramdisk, I have to run regular and very frequent backups and saves.

    Let me know if you think this shouldn't mess anything up and I'll be happy to test it to see if it does anything for me.

    Thanks!
     
  25. Offline

    Mrchasez

    I would suggest disabling AutoSaveStopper and MobLimiting from the config files.
    Ptweaks has great chunk loading and chunk editing algorithims to provide better gameplay
    Even on larger servers
     
  26. Offline

    number1_Master

    I got a question / suggestion:
    Can you add item stacking, just like in NoLagg. Besides chunk sending, that was my favorite feature and most used. To me, it does reduce some lag, but then again, it isn't too big of a deal. I was just wondering since this plugin recently has gotten a boost.
     
  27. Offline

    Mrchasez

    Uhm. Ill see if its possible, right now.
     
  28. Offline

    kahlilnc

    maxmonsters=2500
    enable=True
    So can you limit one type of monster or mob?
     
  29. Offline

    Mrchasez

    Not yet, Its planned
     
    nunber1_Master and kahlilnc like this.
  30. Offline

    number1_Master

    K, that is my last thing hopefully. I won't annoy you anymore :p
     
  31. I installed this onto my server with default settings. When playing on the normal world, there was little to no lag, but going to the End or the Nether caused framerates to die, forcing me to uninstall it.
    Is this a common issue or is there some installation step I missed? I'd really like to get this to work, I've crashed the server with TNT far too often.
    Other plugins on the server are: PEX, Essentials, Factions, Lockette, WorldEdit, Worldguard and Spectate.
    Server has 2 gigs of RAM.
     

Share This Page