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

    Cha0sPudd1ng

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

    Hmm okey,^^ But what will you say me? That you work on it? :)
  4. Offline

    Drehverschluss

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Almost a great Plugin Special Thx to Mrchasez never seen a plugin like that wich help you so much with the Ram usage....here an example from my server.

    16Gb Server with pretty sweet CPU
    Without Ptweaks:
    25/80 Players
    about 3.5GB RAM
    10-15% CPU usage

    With awesome PTweaks:
    30/80
    abou 1.8GB
    5-7% CPU usage

    Does i have to say more?
  5. Offline

    Mrchasez

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

    Thanks ^-^
    Glad it does great stuff for you.
  6. Offline

    NuclearW Citrullus lanatus Administrator

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    @bergerkiller @Mrchasez
    I've deleted your... argument in favor of leaving it in place because it's quite honestly not productive or helpful for anyone to have to see it.

    If you have issues which the two of you need to work out consider a private message instead of a public flame war; and if you need more assistance even then you are welcome to invite a moderator or myself to the conversation to mediate.

    Please do not continue this sort of arguing in the future.
  7. Offline

    bergerkiller

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
  8. Offline

    Mrchasez

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Thanks.
    I have no issues with him what so ever.
    I just don't want him on my thread.
  9. Offline

    Noxturno

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    i may have a problem after running this for a hole day the mobs stop spawnming at night (I notice at night when there is about 20 people on the server)
    but a server restart fixes the problem its there a setting that I should do ?
  10. Offline

    Mrchasez

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    If you use default that should not happen, nor am i able to re-create it
  11. Offline

    Noxturno

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    yeah I am using everything on default, :( I can see sheeps around but no zombies/ skeletons etc any ideas ?what may be the problem?
    my plugins are
    Ptweaks
    spout
    rawcritics_ore_obfuscation_plugin_spout
    and
    zombieattack

    Ps I notice I get warning server cant keep up but there is no lag on the server. for any1.

    I really need some help :( my survival server cant be survival without zombies? xD

    This post has been edited 2 times. It was last edited by Noxturno Jan 7, 2012.
  12. Offline

    Drehverschluss

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Hey hey
    dude i have a question...is soemthing wrong with your "/ram" command? This cant be.
    [IMG]
  13. Offline

    Mrchasez

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Yeah i did something wrong with the ram. Sorry x.x
    Will fix this next update
  14. Offline

    Drehverschluss

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    okok than nvmd haha i thaough there is something wrong with my server :p
  15. Offline

    MrMime22

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    ScreenShotOfIt.png
    ScreenShotOfIt.png
    View attachment 8044
    Need Ptweaks MOB LIMIT HELP! FAST!

    Hello please help me, i set my global mob limit to 2000 mobs, that works great, but then after a few seconds/1 min when i do /ptml info my mob spawning on my main Wolrd sais its (Animals-Disabled) (Mobs- Disabled) This makes no sence becuase it turns spawning off when my mobs are only at 500 and yet i set the limit too 2000???

    #maxmonsters: The number of monsters to spawn on the server.
    #Sat Jan 14 20:29:19 CET 2012
    maxmonsters=2000
    enable=true

    This post has been edited 7 times. It was last edited by MrMime22 Jan 15, 2012.
  16. Offline

    Mrchasez

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Go in game
    /ptml ea
    /ptml em
  17. Offline

    MrMime22

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Yea i did that, it just repeats and stops again with the Disabled thing....
    Any other fix?
  18. Offline

    MrMime22

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    INFO World: world_nether
    15.01 02:42:56 [Server] INFO Max Mobs: 328/2000
    15.01 02:42:56 [Server] INFO Allow Mobs: False
    15.01 02:42:56 [Server] INFO Allow Animals: False

    See.Disabled at 300-500 mobs only.Not 2000.
  19. Offline

    Mrchasez

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Try reloading your server, I havent seen this before.
  20. Offline

    MrMime22

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Ok its not being disabled, just its not getting too 2000 mobs it sits around 700-1200, and not enough friendly mobs spawn during the day.
    25-30 online
  21. Offline

    Mrchasez

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Again, nothing really points to why.
    With no errors, or anything.
    I will however, update some code soon with the limiting of mobs.
  22. Offline

    MrMime22

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Ok then :(
  23. Offline

    Toodo

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    when will the new update come for 1.1? :)
  24. Offline

    mrgreaper

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    wierd question, we use a few mods, and need a way to keep chunks loaded for longer so we can use the teleport pipes. we want them to be in memory for 4 hours, the default setting is 25000 is that seconds or minutes?
  25. Offline

    Averus

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Hi,
    plz help me to config plugin for my server, witout plugin i have lags on 68 ppl,
    with plugin on 45 !
    and what start line i need use with this plugin? GC ? cgc ?
    testing on 3 gb ram
  26. Offline

    columb

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Hello, I need CPU optimization, my server always using like 99% of CPU.
    And server uses only 3/8 GB ram, any ideas how I can reduce CPU lag?
    Should I install it, or
    ?
  27. Offline

    wizzi

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    same with me , please help , im usin it and still 99% CPU usage
  28. Offline

    KA_Gamer

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I'd blame the host, it's called false advertising. :)
    Not saying that the host is bad, just saying sometimes what they say isn't always what the provide.
  29. Offline

    Mrchasez

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Im a little busy right now.
    Ill try to make the next update big
  30. Offline

    Mrchasez

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Ticks, 1/20 Tick = 1 Second

    Keep it at default
  31. Offline

    Mrchasez

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    You may want to hold off.
  32. Offline

    Fress_

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Hey! Awesome plugin, been using it for a while now. Few days ago I updated to Bukkit 1.1 RB 3 and the pluggin doesn't seem to work properly. This is what I get:
    Code:
    2012-02-12 18:25:31 [SEVERE] java.lang.NullPointerException
    2012-02-12 18:25:35 [SEVERE]    at java.util.Hashtable.get(Unknown Source)
    2012-02-12 18:25:35 [SEVERE]    at performancetweaks.bin.org.jbls.mrchasez.ChunkPersistance.run(ChunkPersistance.java:147)
    2012-02-12 18:25:35 [SEVERE]    at java.lang.Thread.run(Unknown Source)
    2012-02-12 18:28:26 [INFO] Connection reset
    2012-02-12 18:30:26 [SEVERE] null
    java.io.IOException: Input/output error
        at java.io.FileInputStream.readBytes(Native Method)
        at java.io.FileInputStream.read(Unknown Source)
        at java.io.BufferedInputStream.fill(Unknown Source)
        at java.io.BufferedInputStream.read(Unknown Source)
        at jline.Terminal.readCharacter(Terminal.java:99)
        at jline.UnixTerminal.readVirtualKey(UnixTerminal.java:128)
        at jline.ConsoleReader.readVirtualKey(ConsoleReader.java:1453)
        at jline.ConsoleReader.readBinding(ConsoleReader.java:654)
        at jline.ConsoleReader.readLine(ConsoleReader.java:494)
        at net.minecraft.server.ThreadCommandReader.run(ThreadCommandReader.java:31)
    I'd really like to keep this plugin on, cause it helps a lot. Is the error somehow caused by me or the plugin just isn't compatible with the new bukkit?

    This post has been edited 1 time. It was last edited by Fress_ Feb 12, 2012.

Share This Page