[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

    Mrchasez

    This thread is outdated and wont be updated.
    Plugin is updated, but only here:
    http://dev.bukkit.org/server-mods/ptweaks-remove-all-server-lag/

    (Old posts)
    Show Spoiler

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

    DOWNLOAD (BukkitDev Download)
    BUKKITDEV LINK
    Normal Ptweaks 3.0 StartUp Here

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


    VIDEOS:
    ====================================================
    VIDEOS:
    Thanks too Torrent for the video



    Thanks too BrandonHopkins for the video



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



    ======================================================


    About:

    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.


    Testing:

    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.


    Features:

    • 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.
    ======================================================
    SaveEdits:
    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
    ======================================================
    Chunky:
    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.
    ======================================================
    Installation:
    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!
    Commands:
    • /ram - Checks Free / Total ram
    Permissions:
    PTML:
    Permission: ptml.has
    RAM:
    Permission: ram.has

    ChangeLog:

    [v3.0]
    • 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
    • LET NEW PTWEAKS FOLDER LOAD
    Older Changelogs (open)
    Older Changelogs (open)


    [v2.0b]

    • 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
    • NEED TO LET NEW PTWEAKS FOLDER LOAD
    [v1.9-0.6a]
    • 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
    [1.8]
    • 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
    [1.6.1]

    • Updated for bukkit build 1337
    [v1.6]
    • 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.
    [v1.5]
    • 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
    [v1.3]
    • Fixed CPU taking up extra resources for no reason
    • Fixed Ptweaks error string
    [v1.2]
    • 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

    Mrchasez

    I never noticed any conflicts on my tests, however i do not know if it will help having them both.
     
  3. Offline

    Lildirt

    When I ran across PerformanceTweaks about a couple months ago, it was actually CRASHING my server more often than normal, reason might being is that it keeps saving chunks in memory that aren't needed anymore after the user has left. The 10 seconds in-memory (I think that's the minecraft default..) from NoLagg didn't seem to crash it.
    Yes, I would get "Read timed out", not a "socket write error"
     
  4. Offline

    Mrchasez

    ok? You don't get them with Ptweaks though
     
  5. Offline

    Lildirt

    But, isn't PTweaks the exact same thing as PerformanceTweaks (just a P instead of Performance? Or is this a fork?)

    I'm going to give it one last chance I suppose. NoLagg + PTweaks give it your best shot :/

    My primary goal is to have about 15 player slots, with about.. 40 - 60 plug-ins (this is overestimating, but act if I am really doing this), and have only 1GB of RAM with an amazingly powerful 8-core AMD CPU. Could this work? Or should I tone down something? (some of these plug-ins are just basic backgrounds, like warping, help and rule plug-ins, Jail plug-in, etc. More text-based.)
     
  6. Offline

    Mrchasez

    wow
    60 plugins..
    I mean you can try, this is not just performanceTweaks i am working on some really big updates right now
     
  7. Offline

    Lildirt

    Welp, let's cross my fingers hm?
    *cue explosion*
     
  8. Offline

    Mrchasez

    lol
    ok
     
  9. Offline

    Jamie Tees

    What .zip? It was a .jar I put in ?!
     
  10. Offline

    Mrchasez

    Ah yes.
    That is what the error looked like.
    Just re download and upload a new copy, That is an unknown error.
     
  11. Offline

    Greylocke

    I'm on a 2GB VPS, and I run CB with 1GB reserved. I typically have 4-8 players online. When running PTweaks, I end up with CodeCache full errors after only a few hours of use. Java reports that there is still memory available to it, but eventually it locks up hard.

    I see that PTweaks is working on other systems, so I know it is my issue, not PTweaks problem. Any ideas for what I might try to test it on my server?
     
  12. Offline

    Mrchasez

    That is really strange, Because we did lots of tests on a 1GB machine. If your CPU is bad that may be why.
    Ptweaks takes some CPU (1/2%)
     
  13. Offline

    NotYetRated

    Might I inquire how you run such a large server, ( and very nice, I have been on it) with so many players yet such little RAM use? The image below is after being online for about 7 hours. With 15 people on, I will bounce between 5 and 10% free! Your 75 player usage total is right about the same as my 3 player usage! And I know you have a lot more going on with your map and plugins lol....

    [​IMG]
     
  14. Offline

    Mrchasez

    My server averages 70+ in the day, we only use around 6GB ram.
    We also run 32 plugins. Our map is 16k blocks <- 8k 8k ->
    Our dedi specs:
    Intel Xeon E3-1270 (Sandy Bridge 3.4ghz) node with 4 total processor cores and 16 gigabytes of RAM

    Is Ptweaks working for you?
     
  15. Offline

    NotYetRated

    I am sincerely curious as to what I am doing wrong lol. My box is also dedi, although not a server based proc.

    Intel i7 950 OC'd to 4ghz. 6 gig RAM. As indicated in the picture above, allocating 5 gigs worth. Perhaps my 3-4.5 usage is primarily plugin and such overhead. I have 12 gigs coming hopefully today or tomorrow to bump me up to 18 total. Perhaps this will ease my pain? I suppose we will see haha.

    I will say in regards to your plugin, before it, I was doing auto-server restarts every 4 hours to prevent crashing(due to RAM usage climbing up and up). With your plugin, I can make it 12 or so, though I have auto-boots set at 8 to be safe. perhaps with this extra RAM coming I will be able to just do daily or so :).

    By the way, what exactly is a good usage for "auto save stopper"? What settings provide what benefits? I currently do server incremental backups every half hour. This is because if the server crashes from power loss or the likes, my map tends to get corrupted. How exactly would I use the save-stopper with this?

    EDIT: By the way I have read your notes on the auto save stopper, its default set at 30 minutes. What would be the negatives to doing it every 30 minutes instead of every 2 seconds like MC default is?
     
  16. Offline

    Mrchasez

    Auto save stopper just slows process's down for saving so the server don't crash (process's = ticks)

    I would leave it at default. I do not really have any plans for it, I am working on 1.6 right now which should have some fair nice changes.
     
  17. Offline

    Krazy

    what is TPS?
    my server info:
    1-64 player slots | 2048 MB RAM | Bukkit | Dedicated IP | Free Mumble & Subdomain Hosting by Request | FTP Access

    beastNode

    42 plugins
    WorldEdit.jar
    Residence.jar
    Essentials.jar
    LWC.jar
    WorldGuard.jar
    Factions.jar
    iConomy.jar
    NoCheat.jar
    LogBlock.jar
    ChestShop.jar
    xAuth.jar
    HeroChat.jar
    Permissions.jar
    Stargate.jar
    Vault.jar
    ShowCaseStandalone.jar
    HeroicDeath.jar
    rawcritics_ore_obfuscation_plugin.jar
    Administrate.jar
    iChat.jar
    ChopTree.jar
    eMob.jar
    properTime.jar
    VIP.jar
    ResidenceSigns-v0.2.jar
    LagMeter.jar
    PvPTime.jar
    EssentialsSpawn.jar
    BlockBlock.jar
    Vanilla.jar
    PluginManager.jar
    CreativeColours.jar
    Minequery.jar
    AutoMessage.jar
    ChatSentry.jar
    LogBlockQuestioner.jar
    NoDeathMessage.jar
    SignColours.jar
    CFBanner.jar
    BlockNetherBed.jar
    noEnderman.jar
    IHateExp.jar

    35 players = TPS 10
    And mem = 1,3gb/ 1,5gb

    normaly i have lag with 40/ 50 players on?
    what plugins u recommend to delete?
    ty.
    atm i not using PtWeaks why make map slow loading.

     
  18. Offline

    Mrchasez

    It don't make the load slow, it keeps the loaded.
    Also your statistics look average. I do not seen an issue.
     
  19. Offline

    Krazy

    hm, ok and WHAT IS TPS?
    [​IMG]
    29players online
     
  20. Offline

    Mrchasez

    It is a way of checking how well your server is running, That is all i really know.
    I have never used any plugins that check TPS
     
  21. Offline

    Krazy

    my TPS is bad hm?
    or TPS not make lag ?
     
  22. Offline

    Mrchasez

    TPS just measures how well the server is doing, Your ram seems fine :)

    [v1.6]

    • 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

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

    saul100

    TPS is ticks per seconds
     
  24. Offline

    Fiddy_percent

    will this still work with 1240?
     
  25. Offline

    Mrchasez

    Yes
     
  26. Offline

    Fiddy_percent

    thanks for all the hard work you do your a server hosts hero :D
     
  27. Offline

    Mrchasez

    ha
    Thanks

    I am looking on some feed back on the new "ram" feature.
    We did not get lots of testing done (very little)

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

    Riku9563

    Typing Ram into the Console I get "You do not have permission to use that command !"
     
  29. Offline

    Mrchasez

    Yeah it only works in game right now, Since console dont have the permission Ram.has 0.0
     
  30. Make a simple check like this:
    Code:java
    1.  
    2. if (sender instanceof ConsoleCommandSender)
    3. return true;
    4.  

    or
    Code:java
    1.  
    2. if (!(sender instanceof Player))
    3. return true;
    4.  


    And then do the permission check afterwards :)

    PS: If you already know this, do not feel offended pls, i simply wanted to help ;)
     
  31. Offline

    Perling

    but i get in game too "You do not have permission to use that command"

    Iam the admin , iam in the OP file.
     

Share This Page