[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


    Does it run on 1.2.5?
  3. Offline


    Hello, I was wondering if this is compiled to Java 5. I was wondering how good it is on a weak server.
  4. Offline


    is it better than nolagg
  5. Offline


    Yeah it should, I haven't tested though.

    Depending on what you like.
    I think NoLagg has gotten too messy.

    Java 6, Although using Java 7 is fine.
  6. Offline


    You could add 'keep spawn in memory' it should do it for all worlds.


    I got an error in the log.

    SEVEREat java.lang.Thread.run(Thread.java:722)
    SEVEREat performancetweaks.bin.org.jbls.mrchasez.ChunkPersistance.run(ChunkPersistance.java:142)
    SEVEREat java.util.Hashtable.get(Hashtable.java:357)

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


    This plugin stops chunks from unloading as well. Or it's just my error up above. My server had over 100,00 chunks loaded in 1 world earlier today, I had to restart it because the CPU and the RAM was running quite high. So can you fid this please.
  8. Offline


    to be honest, i was very sceptical about using ptweaks, but I'm highly surprised how well it works, upon start-up, when using multiverse, the server runs using 700meg+ now only runs at 200meg+, now i can safely run my client at full graphical settings :) thanks for producing a needed plguin
  9. Offline


    So how do i know what this means and how i can set it for best results?
  10. Offline


    Compatible 1.2.5 ?
  11. Offline


    This plugin deletes peoples items that they put into a crafting table or go to wear it.
  12. Offline


    Yes, You are running with 1.2.5 Which is not compatible yet!
    I am working on another really big update right now!

    Make sure your using latest version, on 1.2.4.
    The beta builds had issues.

    Glad you like it!
    I have put a lot of work into Ptweaks, so its nice to have good feedback.

    You can leave it at default if you want ^-^

    Yes and No.
    It will still enable, however you will get errors.
    I am working on a big update.

    I am sorry, Ptweaks isn't responsible!
  13. Offline


    I installed this plugin yesterday everything works fine, My server uses less RAM now almost 30% less! And my CPU is almost the same (a bit higher 5%).
    But today i got a wierd Bug. When someone uses /spawn, /home etc.... (teleport commands) The text is displayed but they dont teleport. Can you fix this in your next Uppdate?
    I use the following Plugins:
    Essentials (the basics: chat,bridge,groupmanager,chat,spawn,protect)

    its a 1.2.5 sever (i use McmyAdmin)

    And when someone Claimed with Towny it said : Plot Blocked
    Everything worked after a restart. but i dont want this Bugs again so please take a look at it :)
    Thanks in advance!

    My server:
  14. Offline


    We are updating soon.
    However, I can't imagine its from Ptweaks.
    There is nothing in the code to stop Spawn, Home, or any other command.
    Make sure your not blocking them in a worldguard region. That would explain the plots being blocked too
  15. Offline


    What is this for ? Permissions: ptml.has
  16. Offline


    ''Remove all server lag!'' If I light up 10 million blocks of tnt on a 16GB server with your plugin... thats wont stop the lagg trust me :)
  17. Offline


    Is that supposed to be a joke?
    Also it states TNT up to 10,000.

    If you can get 10 Million TNT on a server, Show me.
  18. Offline


    Oops didn't saw that. Ok you're right although, getting 10 million tnt blocks on a server is not that hard exploding it is a different story :p
  19. Offline


    You said you'll be updating soon. Could you at least say 'days' or 'weeks'?
  20. Offline


    I wish sooner then later.
    I am waiting on another dev to finish something.
  21. Offline


    Love this plugin, can't wait for the update.

    Great work man.
  22. Offline


    although i only r saying on past memorys and redownloading it now (it may be fixed) but the chink loading was TERRIBLE!! even in front of me i often actuelly fell OUT THE WORLD!!!
    thinking on that, i now realise that its stopping the actuel map from generating!!!!

    it is very annoying..... and i kept dying.....

    however, big improvment on RAM, it went (according to lagmeter it would actuelly be less) from 800MB norm ram to 600MB norm ram... it speeded up my server alot...

    going to TNT... my OPs always keep crashing the server by accident!!! this would be good.. and hopefully it wont lag other players.

    we will see.. :D
  23. Offline

    Deleted user

  24. Offline


    What version are you using?
    Sorry for not updating, I am waiting on another plugin this relies on to update so i can update the code in this.
    The new update has really done, besides that part.
    I just can't release anything.
  25. Offline

    Deleted user

    PTweaks v3.0.
    BTW, when I place a block, it lags for 2 seconds, and then it places 2-3 blocks. Can you fix this please :3
  26. Offline


    I mean't what bukkit build.
    Also, Uh.. I will look into that.
    Not sure how that could possibly happen.
  27. Offline

    Deleted user

    I used my own flying plugin, SimpleFly, and when I started to fly, my server started spazzing D:.
    It's not my plugin, i'm positive about that, and the only other plugins that are on are iConomy, PTweaks, and PermissionsEx.
    I'm using 1.2.5.-R1.0
  28. Offline


    The monster limiter doesn't work at all for me, it actually seems to add more mobs. I set it to 50 just to test it and there's almost 2,000 mobs with 6 people on.
  29. Offline


    I have this problem too.
    I can't use /ptml and other /ptml commands.
    It say me "/To Disable Mobs, Set maxmonsters to 0.
    I can only use /ram.

    Thank you anyway for this great plugin!
  30. Offline


    Can u please update the plugin? Although it does work for (my) craftbukkit 1.2.5
  31. Offline


    Is this plugin active? Is it going to update to 1.2.5?

Share This Page