[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


    Thats great.
    Glad to hear
  3. Offline


    Great job! I'm glad to see you sticking up for yourself against the old NoLag developer. Anyways, the plugin sounds great, but my server runs 5G's of RAM so we shall be okay for now. Keep working on it!
  4. I downloaded it, my server works a lot better now.
    I host small private server for friends only. NoLagg + This plugin -> victory!

    thank you!
  5. Offline


  6. Offline


    I am using CraftBukkitUpToDate and it gives me this message :
    08:02:18 [INFOS] No source for Ptweaks.jar ask the Author to add it to dev.bukkit.org
    Would it be possible to include PTweaks in dev.bukkit.org to be notified about each new releases ? It would be very nice.
  7. Offline


  8. Brilliant!

    This plugin really does work wonders on our server. Infact is so good that we now no longer find any need what so ever to reboot unless for maintenence.

    We run a 1800+ 4gb ram with solidstate drive, before we had serever lag after about 4 hours of gameplay and block lagg when placing and after 40 players.

    We have had our server running with full uptime since the install of ptweaks, i admit to changing some of the config tho as its wasnt suitable. i think the tick timing is very slightly too fast on recall so increaasing the figure worked great.

    Im not being paid to say this but i severely recommend this is used by all servers like mine.

    Thanks for your work on this plugin.

    i forgot to mention our up time is now 5 days, approx 55 players, no lag, no reboots.

    Cpu is on a constant increase of about 3% which is no problem for a quad core xeon.

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


    I love that fact you decided to say
    "Im not being paid to say this but i severely recommend this is used by all servers like mine. "
    I just thought it was funny xC

    Glad you like it, i really do. Helping servers perform better is something i think is great.
  10. Offline

    J P

    This plugin makes my server slower :mad:
  11. Offline


    If you have issues with CPU that is the only reason.
  12. Offline

    J P

    Well, idk if I have any.
    Im not a computer wiz, my dad is.
  13. Offline


    This plugin works very well!
    Free Memory Without It: 472
    Free Memory With It: 808

    Also, I added this plugin with several other plugins so the change is with other plugins as well!
  14. Offline


    That is really great to hear.
  15. Offline


    Really good plugin, but is incompatible with ShowCase D:
  16. Offline


    I dont see why not
  17. Offline


    Ram seems to have gone down :D But my CPU has definitely taken a hit.
  18. Offline


    Hello Mrchasez,

    my buddy and me have some problems with your Ptweak Plugin,

    1. The Ram saving Module said that everytime 95% of total RAM are used no matter how much RAM is given to the Server. That can´t be possible.

    2. The AutoSave Module dosn´t work no matter how small or big the intervall is the server is still saving.

    The onliest thing that works is your Monster Limiter Module.

    Hope you can fix the problems.

  19. Offline


    This does great to reduce the amount of ram, You may be reading the Ram readings wrong.
    Again your mistaken.
  20. Offline


    Hello Mrchasez,

    if i read the ram readings wrong like you said. Maybe you can explain me how to read it correctly? I´ve hanged on some screenshots from my RAM readings.

    5GB Ram


    10GB Ram


    15GM Ram


    And the AutoSave doesn´t work anyway.
  21. Offline


    I think i have Unused= Used
  22. Offline



    I'm running a server with the setup:

    Intel Xeon
    768 MB Ram
    We're around 8-10 players

    I got these plugins:

    Essentials (all)

    I use the Ptweaks aswell but I can't see any improving at all, sometimes I get crashes because of no RAM.

    What should I do?

    So Unused = Used, why does it then say Free / Total?

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


    Hi, i have MultiWorld on my server, and i need to enable/desable animals on different world, i can do that ? how ?
  24. Offline


    I wonder if its possible to make the TNT feature of this and No Lagg a plugin of its own, one that wouldnt interfere with worldedit :p
  25. Offline


    Hi Mrchasez,

    The AutoSave Module dosn´t work no matter how small or big the intervall is the server is still saving.
  26. Offline


    Never Mind mate ^-^

    Multi-World functionality hasnt been added.

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


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


    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:
    abou 1.8GB
    5-7% CPU usage

    Does i have to say more?
  29. Offline


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


    @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.
  31. Offline


Share This Page