[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


    Im not getting the config file any help?
  3. Offline


    The upload was broken, it was fixed like 10 minutes ago. Just redownload.
  4. Offline


    You need to have ram.has permission.
    It does not default to op
    I have not added console permission yet
  5. So you guarantee this reduces server lag in some form of way?
  6. Offline


    Can you PLEASE fix the issue where there are 0 mobs on the server after awhile? It is really ruining my server when there are no mobs at all :(
    Using latest version 1337

  7. Offline


    After installing this and letting running it over the night (approx. 10 hours) my RAM usage increased from 360 kB to 600 kB while there was no one online. Why? :/
  8. Offline


    Still getting:
  9. Offline


    if i have a server with 1gb of ram will this still make it better or will it make it worse.
  10. Offline


    i dont get how the tnt thing is working .... but else cool pulgin :)
  11. I think, that is because EVERYONE can use the command /ptml (as i said some posts ago). So I think from time to time, someone uses /ptml rm to remove all mobs.

    (Btw.: Tested it on your Server. It worked!)
  12. Offline


    Ill add permissions for it

    Should help, Our tests on 311MB servers are good

    Update to the newest release

    I can't guarantee anything
    To many variables to make a promise

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


    I have a server like this:

    Celeron 2.6 GhZ

    3GbRam DDR3

    Constantly lag when playing 10. Plug-in about 20 pieces. If I plug this postavsh lagscan stop??

    well at least up to 30 people online
  14. Offline


  15. Offline


    We aren't 100% sure.
    People have said it works fine, although i do not know how much it will help
    running them both
  16. Offline


    How does this interact with servers running RAMdisks? If chunks persist so that they don't have to be loaded and unloaded, doesn't that make RAMdisk servers succeptible to Columbus greifing? The only reason I ask is, I'm running off a 4GB RAMdisk and we keep running out of memory and crashing, and I feel like, while this mod may be great for conventional servers, it will only exacerbate my problem. I've tried running this and NoLagg, neither seems to help, in fact both setups seem to consume more RAm, but I could be missing something. Any ideas?
  17. Offline


    Random. No in-game problem noticed..
    2011-11-02 18:03:50 [SEVERE] java.lang.NullPointerException
    2011-11-02 18:03:50 [SEVERE]     at java.util.Hashtable.get(Unknown Source)
    2011-11-02 18:03:50 [SEVERE]     at performancetweaks.bin.org.jbls.mrchasez.ChunkPersistance.run(ChunkPersistance.java:147)
    2011-11-02 18:03:50 [SEVERE]     at java.lang.Thread.run(Unknown Source)
  18. Offline


    No effects on my server : i view no change, no TNT config files in the plugin .

    I'm disappointed . The only three files in the plugin have no effects and are not the most importants .
  19. Offline


    This has been discussed before, If your server uses Ramdisk the only way to known if it will have a great impact is by testing it for yourself.

    I have noticed an error myself with chunks staying loaded. Ill look into it

    It don't work perfectly for every server, To many variables

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


    How can the plugin remove any tnt lag without tnt config file ? I do not understand ?
  21. Offline


    You do not need a Tnt config file
  22. Offline


    Really ? I did not know ! I'm less idiot now ! :)
  23. Offline


    Hi, I dont enderstand config file of AutoSaveStopper, I have ths:
    #interval: The number of ticks {1/20th second} between each Mini-Save.
    #Sun Oct 30 22:01:56 CET 2011
    57000 it's in seconds ? or other type ? oO

    In default is set as 30 minutes, but i don't find calcul to convert 5700 in 30
  24. Offline


    20 ticks = 1 second.
    20 = 1 second
    200 = 10 seconds ETC
  25. Offline


    So, 57000 / 20 = 2850 seconds
    and 2850 / 60 = 47 minutes ?

    But 57000 is default value and not correspond at 30 minutes.
  26. Offline


    so he made a mistake. oh well
  27. Offline


    I realized it was better to change the default integer just a little higher

    So that is how it is now

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


    Hello, love your plugin! I've been using Performance Tweaks for a while and the new version has a bunch of new features that I love :)

    However, I was wondering if you could add a monster limiter config that had a bit more flexibility per world. I remember the old Performance Tweaks would allow you to specify how many monsters you wanted per world. If you could add that it would be great :D

  29. Offline


    Having an option to choose what mobs are on and off in a config seems possible
  30. Offline


    You are kidding, I'm a member of your server, and I run this plugin on my server...

    I never noticed you were the dev :D :D
  31. Offline



Share This Page