[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

    Give your self the permission ram.has
     
  3. Offline

    Don Redhorse

    well... you should know that you more you write to an SSD the faster it will fail.. so I guess. this is something for you..
     
  4. Offline

    Perling

    Admin:
    default: false
    info:
    prefix: '&4'
    suffix: ''
    build: true
    rank: 100
    inheritance:
    permissions:
    - '*'
    - ram.has
    dont work :/
     
  5. Offline

    NotYetRated

    Will your TnT method work along side NoLagg's do you think? Should I disable one or the other?
     
  6. Offline

    Mrchasez

    4 different people on different servers excluding mine (which works on multiple accounts)
    Can prove its not the plugin. Make sure to reload

    Should be fine, however running both plugins may not help much at all

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

    NotYetRated

    Hmm, in terms of acting against one another? I like NoLagg for its entity removal commands. /nolagg clear, clears all xp, dropped items etc... Do know know of an alternative? I have experienced TPS lag before, used the command, and it cleared up.... Could be coincidence but I don't know...
     
  8. Offline

    Fiddy_percent

    yeah can you add a drops clear option?
     
  9. Offline

    Perling

    I have now Try

    - 'ram.has'
    - ram.has

    Server Restart , but everytime comes You dont have Permissions.
    I use Permissions 3 (Yeti)

    Which Permissions plugin i should use ?
     
  10. Offline

    MuisYa

    I dont get how it should work?
    Show Spoiler
    We ran 7 Plugins, and 5 Players on a 356MB server, Without Ptweaks.
    The server had Chat lag - Block lag - Chunk's were loading quite slow.
    We added Ptweaks and within 5 mins, All lag was gone, There was physically no lag at all.
    Blocks - Chat - Chunks worked smooth as if they were on a 2GB server.
    Even when saving.

    Block lagg and chat lagg are caused by internet problems... How can the plugin improve that? That isnt possible right? It can only reduce RAM usage, can you give examples of that?
     
  11. Offline

    Mrchasez

    Having slow loading chunks can cause block lag, Low ram and the server can't handle all the messages or the other process's its doing so chat becomes laggy.

    I have tested on Groupmanager which bridges to Permissions fine.

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

    Perling

    Than i dont know....
     
  13. Offline

    Mrchasez

    Ill post my Groupmanager Groups.yml config for my test server.
    Code:
    groups:
      Owner:
        default: true
        permissions:
        - essentials.*
        - ram.has
        - simpleban.banlist
        - simpleban.simpleban
        inheritance: []
        info:
          prefix: ''
          build: true
          suffix: ''
     
  14. Offline

    McGreeb

    when I use /ptml rm and /ptml em it enables and disables mobs server wide.

    Is there anyway to use this plugin to do it on a per world basis?
     
  15. Offline

    Mrchasez

    hmm it should be already that is one of the features 1.6 should have had.
    Ill look into fixing this asap.
     
  16. Offline

    McGreeb

    Hang on, didnt reallise there was a new version, I'm still on 1.5.1 let me update.

    Nope 1.6 still does it on all worlds when I use thouse commands

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

    Mrchasez

    Ill fix it =)
     
  18. Offline

    BioRage

    @Mrchaserz

    Will we still need an Auto-Save plugin if we use this?
     
  19. Offline

    Mrchasez

    yes
     
  20. Offline

    BioRage

    Anyone you recommend that works best with this one?
     
  21. Offline

    Kainzo

    Mob limiting doesnt work, 2500 set in config, 3800 in the world atm. Used a butcher and now there are only 500 mobs after 10 minutes.
     
  22. Offline

    Mrchasez

    Wow, I have never had that happen.
    Is this a new thing? No one has ever said anything but Moblimiter and it has always worked for me.
     
  23. Offline

    animekoneko

    Hi i have a problem.

    Computer specs.
    I7 with 12 GB ddr3

    i use the bukket server with 2 plugins
    Pail
    defaultcommands

    as a 3rd plugin i tried the Ptweaks.v1.6

    but i each time i try to play on the server. im the only one atm i get out of memory

    on the server it says" Can't keep up! Did the system time change, or is the server overloaded?
    but also gives other java error's

    i use " -Xmx1g "

    when i try to give it more memory by change it to 2g it gives an error.

    Error occurred during initialization of VM
    Could not reserve enough space for object heap
    Could not create the Java virtual machine.

    there should be enough memory free seeing it has 12 GB memory.

    what am i doing wrong ?
     
  24. Offline

    Mrchasez

    If you have 12GB memory and 2 plugins, you don't need Ptweaks =)
    Give it 10GB see if you still get the error.
     
  25. Offline

    animekoneko

    i was still using java 32bit on 64bit win7 so i just installed 64bit java and i can use more memory.

    but how is it possible it run out of memory when im the only user on it?

    i didnt play yet will try that now and see if it still says it.
     
  26. Offline

    Mrchasez

    With that much you shouldnt.
     
  27. Offline

    animekoneko

    im still playing till now so i guess the cause was that it was java 32 bit no idea. We\ll see :)
    Thx anyway ":)
     
  28. Offline

    Mrchasez

    Cool
     
  29. Offline

    McGreeb

    Any idea on when we can expect the fix for disabling mob spawns per world? My users are moaning at me about endermen destroying their creations on our creative world :D

    Cheers for all the good work.
     
  30. Offline

    Mrchasez

    It shouldnt take long at all, I just want to release the bug fix in an update
     
  31. Offline

    McGreeb

    That's great but this plugin stops any other plugin that stops mob spawning from working so I'm essentially stuck until you update.
     

Share This Page