[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

    shanko

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    yeah I have worldedit, although I don't use it much. Like I said I think its the War plugin as it resets a cuboid of land after a CTF game is over, so it would act like world edit

    edit: actually now that you mention it, my players have a spell that lets them use world-edit to post minefields, defensetowers, etc so maybe it is just worldedit

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

    jo3la

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Great plugin, can't wait for the 1.0.0 update! =)

    Good job dude!
  5. Offline

    jamesst20

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Yes update please :D
  6. Offline

    offdps

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I'm just curious... since this hasn't been updated to 1.0.0 yet, it has no effect on your server?
  7. Offline

    Mrchasez

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    It seems to be working with 1.0.0
    although i cant say anything for sure
  8. Offline

    Damperen

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I'm getting these error occasionally, it doesn't seem like anything severe happens in the server, but it's always worrying me when errors show up.
    12:37 AM [SEVERE] java.lang.NullPointerException
    12:37 AM [SEVERE] at performancetweaks.bin.org.jbls.mrchasez.ChunkPersistance.run(ChunkPersistance.java:147)
    12:37 AM [SEVERE] at java.lang.Thread.run(Unknown Source)
    I'm running bukkit 1556 if that's to any help,
  9. Offline

    Mrchasez

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Did you restart your map for 1.0?

    This plugin is also not updated yet!
    I am soo busy. I will get to it asap though
  10. Offline

    Charant

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Please i need update this awesome plugin for 1.0.0! Please-please-please =3

    This post has been edited 1 time. It was last edited by Charant Dec 11, 2011.
  11. Offline

    Mrchasez

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

    [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.
  12. Offline

    Simanova

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Thanks!

    > chunky funktionality is not displayed in server.log
    > is this correct?
  13. Offline

    Mrchasez

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Hmm.
    Ill look into this today.
    If it is causing anything ill have a patch today aswell
  14. Offline

    Magiq

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    thank you for this plugin, hope you keep updating it for the better! :p
  15. Offline

    shanko

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    wait so the TNT thing doesnt work anymore?
  16. Offline

    Mrchasez

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Ptweaks itself will still have the same results with TNT yeah.
    All of TNT Edit functions are being worked on.
  17. Offline

    Cha0sPudd1ng

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    hi,

    The AutoSave stopper don't work for me.

    When i set oder drstroy e Block, then is that saved.

    I use Bukkit 1538

    I have it tested whit Ptweaks 1.6.1 and 1.8.
  18. Offline

    Mrchasez

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    What are you asking ?
  19. Offline

    Cha0sPudd1ng

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    oh ^^ Sry :)

    Why works Ptweaks not on my server?

    i have the default Config installed, and the server returns not one Error message, but it loaded Ptweaks normal and is enabled.

    This post has been edited 1 time. It was last edited by Cha0sPudd1ng Dec 15, 2011.
  20. Offline

    Mrchasez

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Uh, What do you mean it dont work?
  21. Offline

    odielag

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I run a 12gb dedicated minecraft server with about 20 people on at a time... I had severe instability... until I uninstalled ptweaks when I saw this error...

    Now, instead of crashing every 20 minutes, the server has been up for hours.

  22. Offline

    Mrchasez

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    That is a small bug with Ptweaks right now.
    I will fix it asap, real busy right now.
    However ptweaks is not the cause.
  23. Offline

    Holgate

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Sorry ; I havent got the time to read through everything. I have a question though.

    When we use the plugin Mob Arena, our server lags. As in a bit of server lag (10-20 seconds per 2-3minutes) Which is making us not use it.

    We have 8GB of RAM, and usually have about 10-30 people online. Would this help the lag?
  24. Offline

    Mrchasez

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Yes it should help great.
    There is a small bug right now that is not fixed yet.
    however it should work yeah.
  25. Offline

    Holgate

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    What's the bug? D;
  26. Offline

    iDubstepXReMiiX

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Dude thank you for this amazing plugin, This + NoLagg works amazing. My server is run on my computer and my computer has 1gb ram which I know is bad but it used to crash the server and sometimes corrupt my worlds BUT now its running amazing I can now run it 24/7 without worrying about crashes when im not their. Thanks
  27. Offline

    Dark-Skript

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Hello, Can you help me here please?

    I am running Ptweaks, NoLagg, Entity Suppressor, Rakamak together and I'm not sure which are conflicting but it seems to not print any errors at all when I remove Ptweaks..

    The errors are:
    Code:
    2011-12-20 18:12:19 [SEVERE] Could not pass event PLAYER_COMMAND_PREPROCESS to Rakamak
    java.lang.NullPointerException
        at com.piwany.erwyn.rakamak.RakamakPlayerListener.onPlayerCommandPreprocess(RakamakPlayerListener.java:192)
        at org.bukkit.plugin.java.JavaPluginLoader$5.execute(JavaPluginLoader.java:293)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:750)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:722)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:715)
        at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:180)
        at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:93)
        at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:550)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
        at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:527)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
  28. Offline

    QQCucumber

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Don't run Ptweaks and NoLagg together. They're compatible in theory, but they do the same things and running both is just asking for trouble.
  29. Offline

    Dark-Skript

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

    Mrchasez

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    It is Rakamak.
    Could not pass event PLAYER_COMMAND_PREPROCESS to Rakamak

    Post this error on there page. ^-^
  31. Offline

    Mrchasez

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Yeah but they do have different functions. Running them both together is ok, but running just one might be just as good. It depends on your server
  32. Offline

    QQCucumber

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    @Dark-Skript Funny, NoLagg basically says the opposite.

    This post has been edited 2 times. It was last edited by QQCucumber Dec 21, 2011.

Share This Page