pTweaks

Hello,
Unfortunately, I have long lost interest in Minecraft and have no plans to update this plugin any further, so I highly suggest finding a replacement. It was a good run, but I think it's time to call it quits. We appreciate all the support over the years, and are truly grateful for it. Best of luck,
Cheers.
-
-
-
-
-

pTweaks is a server optimization tool. This plugin will redefine how your server loads, stores and manages chunks. pTweaks will prioritize chunk loading so the ones that need loaded get done first. When a large number of chunks are being loaded consecutively the plugin will start to unload unused chunks at a higher rate to keep performance on the server higher. pTweaks has a smart chunk loading algorithm so that chunks in a players surroundings stay loaded while under normal use so never again will you take a few steps and all the chunks start to unload behind you. pTweaks stops your server from using resources it doesn't have to use. pTweaks also adds mob handling. You are able to set limits of Monsters and Animals in each world. When things get out of hand pTweaks also offers a kill command to kill all living entities. pTweaks also offers a command to check your ram limits, performance, and allocations. pTweaks is an anti lag plugin.

Your server will be able to run longer, and smoother without the need of a restart. This being pTweaks already clears all unused data that would normally be removed with a server restart. Java dumps are already cleared and Chunks have a longer life span, meaning ram usage and CPU intensity will drop. Mob handling is now a possibility, enable or set the amount of mobs/animals spawning in your world(s) to massively drop resource usage, Limiting mobs is like turning down view distance improvement wise. Helps reduce performance therefor stopping lag.

The lifetime is how long the chunk is loaded into memory, and the prune is the cycle rate. Depending on your server size and CPU power you may want to customize these settings. Larger servers with more free ram may want to make prune higher to keep chunk loading and unloading from happening less often, while smaller servers may want to keep the default settings or make prune lower. The prune is the cycle of when all the unused chunks get unloaded. So having this higher makes more chunks stay loaded longer, while having it lower makes them unload faster. Both have benefits but generally i don't suggest editing it. SpawnChunkRadius is the static (initial) loading of chunks when a player joins your server, so the amount of chunks loaded around him, don't suggest editing this.

ChunkEdits:
ChunkEdits is a 100% customized chunk loading algorithm to enable quicker loading of chunks, and priority packets. So chunks load in a fashion better fitted for the player and the server. This algorithm isn't perfect, and currently being recoded.
<><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Monster Limiter:
This is a fully custom feature. You can enable or disable this in the config. Limit the amount of Mobs or Animals spawning in your world, or disable spawning all together. Change if you want spawning in one world and not the other, you can also simply use the kill command to butcher all living mobs/animals in the current or all worlds. You can see all commands by typing /pTweaks in game.
<><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Chunk Persistance:
This is a fully custom feature, that can be turned off in the config. This does a whole lot and is the main backbone of the plugin. Change how many chunks are loaded on player join or how long chunks stay loaded after people leave them. Makes chunks with no activity loaded at certain intervals to save tons of CPU power. The clear cycle is changed to make less disc writing. 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.
<><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Ram Check:
Check the amount of ram being used, the free ram, and currently loaded ram. This gives you the ability to check server performance and debug bad plugins by seeing which are taking up the most resources by adding one and testing, adding another and using the command again. This command will soon also have TPS and other performance tracking abilities.
<><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Packet Auto Save:
Instead of writing every chunk to the disc every 2 seconds. This changes it to a custom time that you want, Default is 50ms This saves the server from writing about 14KBps to the disc (10 writes, 3 reads per chunk, on a 3 person server). As well as saves about 2 calls to deflate every 2 seconds. (per chunk)
<><><><><><><><><><><><><><><><><><><><><><><><><><><><>
TNT Edit: (Suggested)
Basically all this does is after the first explosion, shadows the rest of them by duplicating the same explosion so the effects of say 500 TNT are the same as the effects of a single tnt block going off. This is not bullet proof, and it will still be possible to cause server lag by making the server render too many packets, but this is not possible unless doing thousands of blocks with a plugin like WorldEdit.


- Download pTweaks
- Stop your server
- Put pTweaks.jar in your Plugins directory
- Start Your Server
- Edit Config's to your liking or leave default
- Reload
- Done!


/pTweaks
Permission: pTweaks.pTweaks
This command will bring up most ingame settings, and information. You can also enable or disable mob spawning from ingame.
/ram
Permission: pTweaks.ram
This will show current ram usable, and information

VIDEOS:
Thanks too @Torrent for the video
Thanks too @BrandonHopkins for the video
Lag Test 3,000 TNT / With and Without pTweaks (356MB server)

Please consider donating to help support development of this plugin!
Everything helps.
1) Cyberpwn $5



-
View User Profile
-
Send Message
Posted Sep 7, 2012I'm not completely sure about the prune and lifetime thing even after reading this page x.x I own a 3GB server with around 50 plugins (too much? xD). Anyways I estimated and any of you think 150,000 is good for lifetime and 4,500 for prune...?
-
View User Profile
-
Send Message
Posted Sep 7, 2012@DrFusion
You are surely using the a Pre-4.0 version. Download latest 4.2 above.
-
View User Profile
-
Send Message
Posted Sep 7, 2012PTweaks V4.2 Is now uploaded. Download link above as always for latest version. This fixes a few minor issues, like errors on reload or shutdown, as well as a persistence import update.
Stop server, Remove old PTweaks.jar and replace with new, start server.
-
View User Profile
-
Send Message
Posted Sep 7, 2012@DrFusion
Did you try removing everything EXCEPT ptweaks? Are you using ptweaks' 4.0-generated settings files? Do you have nolagg running and is it also trying to handle chunks at the same time as ptweaks?
-
View User Profile
-
Send Message
Posted Sep 7, 2012im still falling into the void.... takin off ptweaks fixes it..
-
View User Profile
-
Send Message
Posted Sep 7, 2012@deleted_7536780
Yeah it really does, however we can't promise it will be drastically improve your server, but the majority of the time it helps. Nolagg is an amazing plugin, but i think it has just over done itself. I mean don't get me wrong the features like Item buffering are great, but i don't know about everything else.
Please do test PTweaks out, and see how you like it.
-
View User Profile
-
Send Message
Posted Sep 7, 2012Does this actually work tho? other plugins such as NoLagg just seem to create more lag on my server, rather than reducing it.
-
View User Profile
-
Send Message
Posted Sep 7, 2012@th3ju57
Just use v3.0. It works perfectly with 1.2.5r5
-
View User Profile
-
Send Message
Posted Sep 7, 2012@ZwingGX
I really am not sure, I don't have a large enough test server to find out. You can try yourself, make sure to make a backup if you do, as i am not sure on the effects, however as of now until ChunkEdits is enabled, it should be fine
@th3ju57
No, it most likely isn't. However you can go ahead and try. The code has changed quite drastically since then.
-
View User Profile
-
Send Message
Posted Sep 7, 2012@saupe1976
@Killer2demon
@Curtis4321
Yes, We are aware. This isn't a bug with any side effects as we know. We thought it was fixed yesterday, but i suppose not. Will fix it shortly. As soon as a fix is up, will upload V4.1.
Thanks
-
View User Profile
-
Send Message
Posted Sep 7, 2012Ignore - i fixed it
-
View User Profile
-
Send Message
Posted Sep 7, 2012@mrchasez
I have re downloaded the latest and still receive the error along with this guy below me. Here is the error.
http://pastebin.com/1SDxBSsC
Craftbukkit 1.3.2-R0.1
-
View User Profile
-
Send Message
Posted Sep 7, 2012I know this is built for cb1.3.1/2 but I'd it backwards compatible with 1.2.5?
-
View User Profile
-
Send Message
Posted Sep 7, 2012orebufuscator , orebufuscator
http://dev.bukkit.org/server-mods/orebfuscator/
compatible? :)
-
View User Profile
-
Send Message
Posted Sep 7, 2012@mrchasez
when stopping my server i get this error 10:22:27 [SEVERE] Error occurred while disabling Ptweaks v4.0 (Is it up to date?) java.lang.NullPointerException at me.plugin.ptweaks.MonsterLimiter.onDisable(MonsterLimiter.java:115) at me.plugin.ptweaks.PerformanceTweaks.onDisable(PerformanceTweaks.java:87) at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:219) at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoader.java:400) at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:400) at org.bukkit.plugin.SimplePluginManager.disablePlugins(SimplePluginManager.java:393) at org.bukkit.craftbukkit.CraftServer.disablePlugins(CraftServer.java:260) at net.minecraft.server.MinecraftServer.stop(MinecraftServer.java:328) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:437) at net.minecraft.server.ThreadServerApplication.run(SourceFile:539) 10:22:27 [SEVERE] java.lang.InterruptedException: sleep interrupted 10:22:27 [SEVERE] at java.lang.Thread.sleep(Native Method) 10:22:27 [SEVERE] at me.plugin.ptweaks.ChunkPersistance.run(ChunkPersistance.java:168)
-
View User Profile
-
Send Message
Posted Sep 7, 2012@veddandekar
I have tried to recreate this with Essentials, or with default teleportation system. I have looked though the code, and nothing seems to be wrong.
However, This bug is really common with Essentials and Factions right now. You may want to look into that instead, Sorry.
-
View User Profile
-
Send Message
Posted Sep 7, 2012I have noticed that whenever I teleport myself to another player I see myself falling out of the world and this dosnt happen when I remove the plugins.
Please look into it
Thanks
-
View User Profile
-
Send Message
Posted Sep 6, 2012@BlockCat
Thanks a lot!
-
View User Profile
-
Send Message
Posted Sep 6, 2012This is the best anti-lag plugin of all!
-
View User Profile
-
Send Message
Posted Sep 6, 2012@dacnien
First of all, Your lifetime is too short, and your prune is too long for that setting. I think you should try lifetime=150000 and prune=3000. This plugin is not just dedicated to using less resources but keeping the server running smooth.
@GuildMasterLelo
As i told the previous person, i would look at around lifetime=150000 and prune=3000, but its really up to how the server performs, If a lot of memory is being taken up you should lower lifetime and prune rate a little bit. However this probably shouldn't be an issue. You can try default aswell if you have a really active community.
@Killer2demon
That has been fixed, Download latest version with the link at top of page.
@tubajedimaster: Go
I am really not sure, but i may have Total memory and Max usable backwards.