[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


    This thread is outdated and wont be updated.
    Plugin is updated, but only here:

    (Old posts)
    Show Spoiler

    Ptweaks -
    Version: 3.0
    CB: 1.2.4-R1.0

    DOWNLOAD (BukkitDev Download)
    Normal Ptweaks 3.0 StartUp Here

    The Continuation of PerformanceTweaks LexManos However, It has almost been fully redone by me.

    Thanks too Torrent for the video

    Thanks too BrandonHopkins for the video

    Lag Test 3,000 TNT / With and Without Ptweaks (356MB server)



    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.


    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.


    • 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.
    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
    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.
    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!
    • /ram - Checks Free / Total ram
    Permission: ptml.has
    Permission: ram.has


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


    • 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
    • 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
    • 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

    • Updated for bukkit build 1337
    • 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.
    • 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
    • Fixed CPU taking up extra resources for no reason
    • Fixed Ptweaks error string
    • 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


    I have no issues with him what so ever.
    I just don't want him on my thread.
  3. Offline


    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 ?
  4. Offline


    If you use default that should not happen, nor am i able to re-create it
  5. Offline


    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

    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
  6. Offline


    Hey hey
    dude i have a question...is soemthing wrong with your "/ram" command? This cant be.
  7. Offline


    Yeah i did something wrong with the ram. Sorry x.x
    Will fix this next update
  8. Offline


    okok than nvmd haha i thaough there is something wrong with my server :p
  9. Offline


    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
  10. Offline


    Go in game
    /ptml ea
    /ptml em
  11. Offline


    Yea i did that, it just repeats and stops again with the Disabled thing....
    Any other fix?

    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.

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


    Try reloading your server, I havent seen this before.
  13. Offline


    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
  14. Offline


    Again, nothing really points to why.
    With no errors, or anything.
    I will however, update some code soon with the limiting of mobs.
  15. Offline


    Ok then :(
  16. Offline


    when will the new update come for 1.1? :)
  17. Offline


    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?
  18. Offline


    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
  19. Offline


    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
  20. Offline


    same with me , please help , im usin it and still 99% CPU usage
  21. Offline


    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.
  22. Offline


    Im a little busy right now.
    Ill try to make the next update big

    Ticks, 1/20 Tick = 1 Second

    Keep it at default

    You may want to hold off.

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


    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:
    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?
  24. Offline


    Its Not updated yet. We are all whaiting on a new release. I hope it comes soon. This plugins was so awesome. Hopefully i doesnt conflict with my Orebfusicator+ChunkScrambler...
  25. Offline


    Hey, when i put the plugin it works fine however there is no config file?
  26. Offline


    You should really think about adding permissions to the other commands in this plugin... I find it amusing that the only permissions for this plugin are for the /ram command... personally I think that that is the ONLY command that doesn't need permissions. I mean honestly, who cares if people know how much free ram you have, you worried about your cool status? On the other hand, people being able to remove all the mobs/animals on a server is a LITTLE important. Please provide permission support for all of these commands.
  27. Offline


    Download link?...
  28. Offline


    My mobs don't seem to spawn! I've set the limit to 500 and when I check the "/ptml info" it says that in the world, the mobs and animals are set to false. I've used /ptml ea and /ptml em and it works but it still says false and the animals and mobs don't spawn!
  29. Offline


    Can you please update for compatibility with the Beta Build. (1.2.3-R0.1)
  30. Offline


    I really like this plugin and wait for update to 1.2.3 :)
  31. Offline



    Can you post source? I'm interested in having a look.

Share This Page