[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

    Its as Marthaan said.
    You just change it to what you wish.
     
  3. Offline

    GoofyGewber

    Really like this plugin! Good job really helps out on my 30 slot server with everyone exploding tnt.
     
  4. Offline

    Mrchasez

    Nice name :)
    TNT shouldn't be an issue again
     
  5. Offline

    GoofyGewber

    Thanks! TNT isn't an issue at all! No lag what so ever!
    Quick question, do you have any websites or anything you would recommend to learn Java? I really want to start coding plugins and help out the community.
     
  6. Offline

    Mrchasez

    I started years ago :confused:
    There are threads here on the bukkit forums that will give great websites.
    I can't think of any though.
     
  7. Offline

    GoofyGewber

    Alright thanks :D
     
  8. Offline

    kingmob

    How it deals with multi worlds?
     
  9. Offline

    Mrchasez

    As of right now, you all worlds will have the same settings.
     
  10. Offline

    RROD

    Add Multi Core CPU Support using Java 7. If you can. Only then I think I'll recommend this plugin.
     
  11. Offline

    Mrchasez

    If your server is running multiple cores this will work. It don't need added support there.
     
  12. Offline

    RROD

    Ok. :)
     
  13. Offline

    Mrchasez

    :p
     
  14. I disagree, this thread is for discussing the issues related to a plugin, arguments about broken features or implementations (thanks for the input @bergerkiller ), are what this place is for.
     
    the_Zorro and swift_fox24 like this.
  15. Offline

    Tomaz

    Good Plugin!
     
  16. Offline

    spunkiie

    Just tested this plugin on my 500+ server. The lag/RAM usage got WORSE with it enable.

    Deleted!
     
  17. Offline

    Mrchasez

    It wasn't a bug report or any issues.
    We were talking about the features and what the plugin does.

    It must have been conflicting with something else.
    Or your not truthful :p

    Thanks.
    Ill try to get some big updates out asap.

    Updated Version 1.5.1 fixed

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

    codename_B

    I'll try this on my 32mb setup and see if it improves performance any :3
     
  19. Offline

    Mrchasez

    Ehh
    I can't guarantee anything >.<
     
  20. Offline

    Zaros

    [​IMG]

    That is a before/after with default settings... To lazy to go into the server to check....
     
  21. Offline

    ZachBora

    I'll test this tonight on my ~60 player, ~15plugins server. We're constantly having problems and keep increasing the ram... I think we're at 8gb now and still have lag.
     
  22. Offline

    NotYetRated

    I have to say I was skeptical on this one, but so far after 12 hours I have actually noticed a difference. I have charts and graphs of my pre-Ptweaks server... I will compare some new post-Ptweaks stuff once I have enough info compiled... Initial look is about 30-35% less RAM usage, with 1-2% more CPU Usage. I will have to wait for more data to make an accurate comparison though, either way thanks for the hard work!!
     
  23. Offline

    QQCucumber

    Are there any features between Ptweaks 1.5.1 and NoLagg 1.27 that I should disable so they don't conflict with each other? I notice they both do something for chunk unloading and monster limiting, so I am concerned.
     
  24. Offline

    Fishrock123

    Hey, can you get that source up real soon?
     
  25. Ok nice plugin. NOT. After installing this whe can not log in in ower server. After deleting it. Same problem. Thanks alout.
     
  26. Offline

    Mrchasez

    I said you wont see results instantly.
    It takes a little extra ram at first when it gets started. It can take up to around an hour before real results appear.
    I say this in the main thread, Everyone who keeps it in over night see a big improvement.
    So far it is working great for everyone.. but one (excluding you, since you did your test wrong)

    This will help you :)

    Cool, That is the average expected result.
    Until a further update the small CPU going up can't be helped, But it says that in the main thread :_)

    Over a thousand servers are running it perfectly and getting the big results like they should.
    I promise its not this plugin. The fact that you removed it and still get the errors proves it.
    Be more mature about the subject and give more info if you want help. Make sure your running the correct CB, and your server is set up correctly.

    What was the results, I am really curious

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 20, 2016
  27. Ok i run the correct CB and whe have all updates. But after installing this my server is down. i am trying it to fix.

    And yes whe are uptodate.
    All plugings
    Bukkit

    I dont see a error only a lost connection on the consol. So what now. over 50 man can now not connect. And i am not telling athers dat dont need to download this. I am saing that this is not working for me.

    Ok here is my server log

    Code:
    Notice: Detecting System...
    Info:   Running in 64-bit mode.
    Notice: Windows Version: Microsoft Windows Web Server 2008 R2 (64-bit)
    Notice: Detection complete.
    Info:   Reading configuration, please wait...
    Info:   Java found at: C:\Program Files\Java\jre7\bin\java.exe
    Notice: Starting McMyAdmin Professional v0.9.7.0
    Warning:        No saved group information was found. Loading Defaults.
    Notice: Starting webserver...
    Notice: Web server started at http://mc.minecraftfun.eu:8080/
    Notice: McMyAdmin has started and is ready for use.
    Notice: Starting Minecraft Server...
    2011-10-05 23:57:04 [INFO] Starting minecraft server version Beta 1.8.1
    2011-10-05 23:57:04 [INFO] Loading properties
    2011-10-05 23:57:04 [INFO] Starting Minecraft server on *:25566
    2011-10-05 23:57:04 [INFO] This server is running Craftbukkit version git-Bukkit
    -0.0.0-1112-g54a13b2-b1240jnks (MC: 1.8.1)
    2011-10-05 23:57:05 [INFO] [PermissionsEx] sql backend registered!
    2011-10-05 23:57:05 [INFO] [PermissionsEx] file backend registered!
    2011-10-05 23:57:05 [INFO] [PermissionsEx] PermissionEx plugin initialized.
    2011-10-05 23:57:05 [INFO] [PermissionsEx] p2compat backend registered!
    2011-10-05 23:57:05 [INFO] [PermissionsCompat] Compatibility Layer Initalized!
    2011-10-05 23:57:05 [INFO] MLog clients using java 1.4+ standard logging.
    2011-10-05 23:57:05 [INFO] [PermissionsEx] Initializing file backend
    2011-10-05 23:57:05 [INFO] Preparing level "world"
    2011-10-05 23:57:05 [INFO] Default game type: 0
    2011-10-05 23:57:05 [INFO] Preparing start region for level 0 (Seed: 83257176688
    86652377)
    2011-10-05 23:57:06 [INFO] Preparing start region for level 1 (Seed: 83257176688
    86652377)
    2011-10-05 23:57:06 [INFO] Preparing spawn area: 73%
    2011-10-05 23:57:06 [INFO] [ButtonLock] v0.9 (MC 1.8.1) [MrX13415] is enabled.
    2011-10-05 23:57:06 [INFO] [ButtonLock] Permission system detected: Permissions
    v2.7.7
    2011-10-05 23:57:06 [WARNING] Version mismatch! Please update EssentialsSpawn to
     the same version.
    2011-10-05 23:57:06 [INFO] Loaded Essentials build 2.6.1 by: Zenexer, ementalo,
    Aelux, Brettflan, KimKandor, snowleo, ceulemans, Xeology, KHobbits
    2011-10-05 23:57:06 [INFO] Essentials: Using config based permissions. Enable su
    perperms in config.
    2011-10-05 23:57:06 [SEVERE] Unknown item {46=TNT} in protect.alert.on-use list.
    
    2011-10-05 23:57:07 [INFO] Initializing c3p0-0.9.1.2 [built 21-May-2007 15:04:56
    ; debug? true; trace: 10]
    2011-10-05 23:57:07 [INFO] Loaded EssentialsProtect build 2.6.1 by: essentials t
    eam
    2011-10-05 23:57:07 [WARNING] Version mismatch! Please update all Essentials jar
    s to the same version.
    2011-10-05 23:57:07 [INFO] Loaded EssentialsSpawn build 2.6.2 by: essentials tea
    m
    2011-10-05 23:57:07 [INFO] FoodTrees version 0.3 is Enabled!Made and Maintained
    by lookatmego & Joshua Neicho!Enjoy!
    2011-10-05 23:57:07 [INFO] [iConomy - Celty] Enabled (404 ms)
    Notice: McMyAdmin compatibilty plugin is running.
    2011-10-05 23:57:07 [INFO] MCMACOMPAT r15A
    2011-10-05 23:57:07 [INFO] McMyAdmin Compatibility Plugin version r15A started.
    2011-10-05 23:57:07 [INFO] [OKB3] Attempting to enable OKB3 v3.1.2 by Kalman Ola
    h...
    2011-10-05 23:57:07 [INFO] [OKB3] Initiating auto-update...
    2011-10-05 23:57:08 [INFO] [OKB3] You already have the latest version of OKB3.
    2011-10-05 23:57:08 [INFO] [PermissionsCompat] Compatibility layer enabled.
    2011-10-05 23:57:08 [INFO] Essentials: Using Permissions 2 based permissions.
    2011-10-05 23:57:08 [INFO] [PermissionsEx] Superperms support enabled.
    2011-10-05 23:57:08 [INFO] [PermissionsEx] v1.14 enabled
    2011-10-05 23:57:08 [INFO] Essentials: Using PermissionsEx based permissions.
    2011-10-05 23:57:08 [INFO] [OKB3] Configuration file loaded.
    2011-10-05 23:57:08 [INFO] [OKB3] [DB] Initializing MySQL connection...
    2011-10-05 23:57:08 [INFO] [OKB3] [DB] Loading database...
    2011-10-05 23:57:08 [INFO] [OKB3] OKB3 v3.1.2 enabled successfully.
    2011-10-05 23:57:08 [INFO] [OKB3] Hooked into iConomy version: 6...
    2011-10-05 23:57:08 [INFO] [Ptweaks] Version 1.5.1 enabled.
    2011-10-05 23:57:08 [INFO] [PTweaks] Set auto save interval to 57000 in world "w
    orld"
    2011-10-05 23:57:08 [INFO] [PTweaks] Set auto save interval to 57000 in world "w
    orld_nether"
    2011-10-05 23:57:08 [INFO] [PTweaks] Chunk Life Time: 350000ms
    2011-10-05 23:57:08 [INFO] [PTweaks] Chunk Prune Time: 5000ms
    2011-10-05 23:57:08 [INFO] [PTweaks] Monster Limit set to 2500
    2011-10-05 23:57:08 [INFO] [Seats] Seats v0.3 started
    2011-10-05 23:57:08 [INFO] [Seats] Started with permissions
    2011-10-05 23:57:08 [INFO] [ChatManager] ChatManager enabled!
    2011-10-05 23:57:08 [INFO] [Citizens] NPC types loaded: blacksmith, guard, heale
    r, quester, trader, wizard
    2011-10-05 23:57:09 [INFO] [Citizens] Permissions system found (PermissionsEx v1
    .14)
    2011-10-05 23:57:09 [INFO] [Citizens] version [1.1.1] loaded.
    2011-10-05 23:57:09 [INFO] [Citizens] Economy plugin found (iConomy v6)
    2011-10-05 23:57:09 [INFO] WorldBorder version 1.4.3 loading
    2011-10-05 23:57:09 [INFO] [WorldBorder] [CONFIG] Using round border, knockback
    of 3.0 blocks, and timer delay of 5.
    2011-10-05 23:57:09 [INFO] [WorldBorder] [CONFIG] Border-checking timed task sta
    rted.
    2011-10-05 23:57:09 [INFO] [WorldBorder] [CONFIG] World "world" has border radiu
    s 2000 at X: 595.6 Z: -1029.0
    2011-10-05 23:57:09 [INFO] [WorldBorder] [CONFIG] Will use plugin for permission
    s: Permissions v2.7.7
    2011-10-05 23:57:09 [INFO] For reference, the main world's spawn location is at
    X: 597 Y: 74 Z: -1030
    2011-10-05 23:57:09 [INFO] Server permissions file permissions.yml is empty, ign
    oring it
    2011-10-05 23:57:09 [INFO] Done (0.410s)! For help, type "help" or "?"
    2011-10-05 23:57:09 [INFO] [Citizens] Loaded 0 NPCs.
    2011-10-05 23:57:09 [INFO] [Citizens] Loaded 0 quests.
    [​IMG]

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

    Mrchasez


    Wow.. Ptweaks is working fine. The internal Client error says exactly whats wrong. This has nothing to do with Ptweaks Also, The only error i see is Essentials. However this is NOT ptweaks
     
  29. But tel me why nobody cannot connect to the server. Tel me that then.

    When i delited OK3 and your plugin it works. installing OK3 again server is ok. But when installing your plugin boom server down whit that error. so. ill take a look a round. asking and sent OK3 also a PM

    And also thanks for your time.

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

    emericask8ur

    Somethings weird here, before you didnt even know how to make Blocks Drop and now your making this..... @bergerkiller made something ......ALOT like this
     
  31. Offline

    bergerkiller

    Here we go again... :)

    keeping it short: how are you going to reduce RAM usage? I bet people are interested in the pros and cons of your solution, because every solution has pros and cons. (Please do answer, it improves credibility)
     
    emericask8ur likes this.

Share This Page