[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


    TNT is disabled since at least December 2010 and Pistons are only allowed for admins since they came out. I already know about the problems they can cause. Concerning the map... our map is 10gb, its pretty much been explored. We set a border to 30,000 I believe because some people made things that far. I know it is a lot but without losing anything its best we could do.

    We've been using the same map for a year now. And yes I am thinking into starting over in a new map and making the old one read only.

    Also I've disabled fire, weather, leaf decay, ice melt, etc...
  3. Offline


    To be honest, it might just be because of the time you've had your map. I am almost positive that getting a new map will atleast reduce SOME lag.
  4. Offline


    Minor issue with your plugin, also had this issue with performance tweaks... Signs seem to lose their text after you walk away and come back. They don't reappear until a chunk update event (place torch for example) happens. Going to have to remove your plugin and use NoLagg until this issue is resolved.
  5. Offline


    Hmm, really?
    Ill look into this, if i can recreate this on my test server ill have a fix very soon.
  6. Offline


    No problem, really hope you do fix this issue. Same issue occurred back when PT was officially released and magically didn't happen again when I removed the plugin. Can't wait til you fix it because your plugin with the combination with nolagg makes a great combination of speeding a server up. One for ram, one for cpu. ^_^
  7. Offline


    No more!
    This isnt a server help thread xD

    Ill get into testing now

    I am unable to re-create this.
    I have placed signs everywhere xD
    Left the game came back, let the server run for an hour still nothing.
    Walked away,flew away, came back, signs still worked fine.

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


    D:, if I remember correctly from my post in the original PT forums, which other people had the same issue as me, it had something to do with chunk caching and purging.
  9. Offline


    I am unable to recreate it and i don't see anything that would cause it.
    Are you sure its not another plugin, because no one else has sent in a Bug report about this either.
  10. Offline


    Well, after I removed your plugin, seems to be working just fine. =/
  11. Offline


    Can you list your other plugins?
    It seems to be a conflict then, Can you give me your server IP i would like to see this myself.
  12. Offline


    Give me a second, installing/removing plugins and running an update.
  13. Offline


    Ok, Sure!
  14. Offline


    After I put the plugin
    slow to load map

    Server 2gb, normaly player on 45/50
  15. Offline


    That is the opposite of what this should do.
    Working on a update now.
  16. Offline


    ok, waiting, it decreases the lag, etc.
    but in some places it takes to load the map as players go where few
  17. Offline


    Well glad it started working, but it shouldn't ever take longer even on some chunks.
    Will see improvements in the future.

    The new update will improve game play / tnt / And able to check ram

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


    waiting for it.
  19. Offline



    Hello my name is Kane Hart and I'm posting this on both the current nolag type plugins on Bukkit. I'm trying to reduce my TPS mainly anything related to chunks loading and unloading. It seams that I'm hitting the cap my server we even turned our View Distance from 10 to 7 and helped a lot but I don't want to lower it anymore and I have no other options it seams.

    Here is a screenshot right now of in game:

    So after hours and hours of testing I know for sure 95% of the lag comes do to chunk issues. As you can see I have lots of ram and a lot not used though all plugins even bukkit has slight memory leaks so you gotta keep a good 4gig buffer. But I was wondering what would your plugin do for me and how it differs from your competitors plugin.

    Have you or any large servers actually provided proof or evidence or even benchmarks of the performance gains? And what makes it perform better related to chunks?
  20. Offline


    Yes, My server KingsCraft.
    We average 70+ online during the afternoon and 50+ most other times. We run a Intel Xeon E3-1270 (Sandy Bridge 3.4ghz) node with 4 total processor cores and 16 gigabytes of RAM and see up to 25% improvement.

    Nolagg does great for CPU issues (way better then Ptweaks)
    Ptweaks does a lot better for RAM usage.

    Just read through all of the comments, on this thread, that is tons and tons of proof from real people running real servers.
  21. Offline


    Wow you softlayer? You sound like you have the exact same specs:

    Server Specification:
    CPU: Intel Xeon Quad-Core Sandy Bridge E3-1270 @ 3.4ghz
    Operating System: CentOS 5 - 64-BIT
    Java: Java™ Platform, 7
    Network: Intel PRO/1000 NIC @ 1000mbit
    RAM/Memory: 16GB DDR3
    Raid Card: Adaptec 5405Z RAID Card with Battery Backup Unit
    Primary Hard Drive: 4x WD Caviar RE4 500GB HDDs in RAID-10
    Backup: Offsite Backup
    DDOS Protection Service: - (Hardware Based): Network-Level & Server-Level

    Would you mind sharing your config file that you use to optimize your server? I don't want much touch on the Monster Limiter since we have a seprate world and its hardly used. TnT is fine though most people don't use tnt anyways hehe

    Also if I find someone create a TNT yeild changer say 5 times more block damage I assume your tnt plugin would still perform okay?

    Again 95% my problems are just chunks nothing else.


    PS: Most my server is spread around we don't really have to many people 1 in spot.
  22. Offline


    To make the tests run good, we ran on default. Otherwise it wouldn't be a good test.
    If your only issue is Chunk loading, Turn monster limiter off and Theaded saves. (auto saves)
    See if that works better for you.
  23. Offline


    Thanks for your time and thanks for the info :)
  24. Offline


    Your welcome
  25. Offline


    Just wanted to give you an update, my server runs fine and has 7gb ram free out of the 8gb when nobody is using intensive cuboids.

    Then at some point the ram usage just skyrockets and we lose 100mb per 10sec and it stops once 0 ram is left. So we definitively got a memory leak somewhere, gotta find it.
  26. Offline


    Yeah that isn't good at all.
    I have never had a memory leak on my server so i couldn't really help locate it :l
  27. Offline

    Olof Larsson

    Hello :)
    This is a very nice project. There is no source though. I would very much like to see the source.
  28. Offline


    Well the reason i haven't put a source up yet is because i want to put one up after some good updates.

    Still working on Version 1.6

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

    Jamie Tees

    Any idea why it won't work for me?!
    2011-10-09 23:04:18 [INFO] Starting minecraft server version Beta 1.8.1 2011-10-09 23:04:18 [INFO] Loading properties 2011-10-09 23:04:18 [INFO] Starting Minecraft server on *:25565 2011-10-09 23:04:18 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-1113-g7dc2c4c-b1298jnks (MC: 1.8.1) 2011-10-09 23:04:19
    2011-10-09 23:13:47 [SEVERE] Could not load 'plugins/Ptweaksv1.5.jar' in folder 'plugins': java.lang.ClassNotFoundException: performancetweaks.bin.org.jbls.mrchasez.PerformanceTweaks at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:36) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24) at java.lang.ClassLoader.loadClass(ClassLoader.java:423) at java.lang.ClassLoader.loadClass(ClassLoader.java:356) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:264) at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:168) at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:215) at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:136) at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:139) at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:414) at org.bukkit.Bukkit.reload(Bukkit.java:182) at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:22) at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:163) at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:358) at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:354) at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:506) at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:485) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374) at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
  30. Offline


    Yes, lol.

    You put the .zip in the /plugins directory.
    You need to open the .zip put the .jar into your plugins directory :)
  31. Offline


    One question , can i run NoLagg and PTweaks both on the server? sorry for the english.
    No Conflicts ?

Share This Page