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
Does not work with "Spigot" lastest version:
[19:19:39] [Server thread/INFO]: [PTweaks] Enabling PTweaks v6.0.10 [19:19:39] [Server thread/INFO]: [PTweaks] AutoSaveStopper is enabled! [19:19:39] [Server thread/ERROR]: Error occurred while enabling PTweaks v6.0.10 (Is it up to date?) java.lang.NullPointerException at me.devplugin.ptweaks.AutoSaveStopper.<init>(AutoSaveStopper.java:9) [?:?] at me.devplugin.ptweaks.PerformanceTweaks.onEnable(PerformanceTweaks.java:26) [?:?] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:250) [spigot.jar:git-Spigot-1360] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:324) [spigot.jar:git-Spigot-1360] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) [spigot.jar:git-Spigot-1360] at org.bukkit.craftbukkit.v1_7_R2.CraftServer.loadPlugin(CraftServer.java:463) [spigot.jar:git-Spigot-1360] at org.bukkit.craftbukkit.v1_7_R2.CraftServer.enablePlugins(CraftServer.java:381) [spigot.jar:git-Spigot-1360] at net.minecraft.server.v1_7_R2.MinecraftServer.n(MinecraftServer.java:351) [spigot.jar:git-Spigot-1360] at net.minecraft.server.v1_7_R2.MinecraftServer.g(MinecraftServer.java:326) [spigot.jar:git-Spigot-1360] at net.minecraft.server.v1_7_R2.MinecraftServer.a(MinecraftServer.java:282) [spigot.jar:git-Spigot-1360] at net.minecraft.server.v1_7_R2.DedicatedServer.init(DedicatedServer.java:186) [spigot.jar:git-Spigot-1360] at net.minecraft.server.v1_7_R2.MinecraftServer.run(MinecraftServer.java:440) [spigot.jar:git-Spigot-1360] at net.minecraft.server.v1_7_R2.ThreadServerApplication.run(SourceFile:618) [spigot.jar:git-Spigot-1360]
Does not work with spigot. I get this error:
[13:10:30] [Server thread/ERROR]: Error occurred while enabling PTweaks v6.0.10 (Is it up to date?) java.lang.NullPointerException at me.devplugin.ptweaks.AutoSaveStopper.<init>(AutoSaveStopper.java:9) [?:?] at me.devplugin.ptweaks.PerformanceTweaks.onEnable(PerformanceTweaks.java:26) [?:?] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:250) [craftbukkit.jar:git-Spigot-1359] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:324) [craftbukkit.jar:git-Spigot-1359] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) [craftbukkit.jar:git-Spigot-1359] at org.bukkit.craftbukkit.v1_7_R2.CraftServer.loadPlugin(CraftServer.java:463) [craftbukkit.jar:git-Spigot-1359] at org.bukkit.craftbukkit.v1_7_R2.CraftServer.enablePlugins(CraftServer.java:381) [craftbukkit.jar:git-Spigot-1359] at net.minecraft.server.v1_7_R2.MinecraftServer.n(MinecraftServer.java:351) [craftbukkit.jar:git-Spigot-1359] at net.minecraft.server.v1_7_R2.MinecraftServer.g(MinecraftServer.java:326) [craftbukkit.jar:git-Spigot-1359] at net.minecraft.server.v1_7_R2.MinecraftServer.a(MinecraftServer.java:282) [craftbukkit.jar:git-Spigot-1359] at net.minecraft.server.v1_7_R2.DedicatedServer.init(DedicatedServer.java:186) [craftbukkit.jar:git-Spigot-1359] at net.minecraft.server.v1_7_R2.MinecraftServer.run(MinecraftServer.java:440) [craftbukkit.jar:git-Spigot-1359] at net.minecraft.server.v1_7_R2.ThreadServerApplication.run(SourceFile:618) [craftbukkit.jar:git-Spigot-1359]
How does this work with spigot? Is it still useful if we use spigot?
@Nick_77ab2
Yes, there is currently no option to flag file for 1.7.5...
it still says ptweaks is 1.7.2 though ive updated it and even deleted the file just in case, and version 6.0.10 says 1.7.5 only, is it for 1.7.5?
I have a horse in a "barnyard." Will it kill the horse when it ushers the kill command, even though it is already tame?
I can mix this plugin with nolagg?
Can you add a feature, when the TPS of the server are low, PTweaks execute a command (/butcher for example)
does this plugin compatible with spigot?
You may build your plugin on my jenkins if you'd like its a dedicated jenkins for people who I work with and plugins I use.
I just got shown an entire chunk that got copied and moved to the wrong place, I have never seen chunk error in the year ive been running a mc server. I can only assume its pTweaks never used until recently.
So my server will not unload nether chucks when using ptweaks. INFO]: Nether "Kronic Zombie Survival_nether": 674 chunks, 0 entities, 9 tiles.
that will stay like that even when i have nether set to false and no players. Ive made a whole ne fresh server for testing what plug was causing this. As soon as i uninstalled ptweaks my chunks finally dropped to 0 like they should when knowone is one. What is the cause of this i have not change any config. Just droped it in like i was told to do.
Been using this for awhile and never thought as to why my chucks we not unloading in nether since i dont use it. The thing is it should be 0 and i would like it to be that way since that is the normal function. Thanks for your time and aside from that lil bug works great.
LOVE YOU PTWEAKS. With the default config it has already increased my Available ram by 25% - 40%
Wow! My server went from using 80%-100% of its ram all the way down to about a stable 40%
Brilliant job and thankyou very much for one of my most useful plugins!
@xGh0sTkiLLeRx
I'm a little confused about the config.... In your writing here on this page, you say the auto-saver is set 10 50ms, yet in the config, it states that it's in ticks, and the default value is 50,000. I'm confused because this makes zero sence....
50,000 nothings convert to 50ms, and 50,000ms = 50 seconds, and 50,000 ticks = 45 minutes.
Please confirm what unit is being used for this calculation.
@boobert
Try increasing the prune rate, the lower it is, the more often the server will look for blocks to remove.
RAM Usage: 63% as should be But the /ram is not pick all the Ram up. tells me I've only got 1gb, so who is lying the plugin or my host? LOL
I do like Monster Limiter :D
Thanks.
Wanted to say thanks. This is running great on Spigots latest dev builds. Cheers!
@aleksandr93
Nope, not needed :)
And for pTweaks need to install ProtocolLib?