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 Oct 22, 2012after some chances i think newest spigot chances are a problem to ptweaks. i got this after spigot #159 http://forums.spout.org/threads/1-3-2-spigot-v2-the-most-performance-savvy-craftbukkit-mod-out-there.3776/
i think its something what handles monster spawn. can you watch into this error?
-
View User Profile
-
Send Message
Posted Oct 21, 2012IM currently using 1.3.2 R1....
-
View User Profile
-
Send Message
Posted Oct 21, 2012@Mayhem777
Update to at least 1.3.2R1.0 and see if that makes any difference.
@benneht
I wouldn't suggest it.
@imilkywayz
Yes it took a little bit for the latest update to find a good medium. Thanks
-
View User Profile
-
Send Message
Posted Oct 20, 2012Idea!
Is it a good idea to run this alongside NoLagg?
-
View User Profile
-
Send Message
Posted Oct 20, 2012if this works, it will help to make my server RAM reduce slower :) having 60 people on all the time on a 2gb server eventually reduces the RAM, even if it dosent lag.
-
View User Profile
-
Send Message
Posted Oct 17, 2012I like this plugin, since I have a ton of ram at my disposal (10-16gb...). The prune is definitely helpful, but it's probably good to turn it down since in 60 seconds, a lot of chunks could load which will use more ram. On my test server about a minute of flying ate up 1gb of ram, but the ram was returned after the prune. Nice work. +1 :D
EDIT: Sorry I saw the config is in milliseconds, oops. 3 seconds is a good prune time, and 10 second chunk life is nice. Nice defaults :)
-
View User Profile
-
Send Message
Posted Oct 17, 2012@benneht
But other tricks to view plugins ain't blocked... :P
-
View User Profile
-
Send Message
Posted Oct 14, 2012Having a really big trouble:
I've:
PTweaks -V4.2 for CB 1.3.2-R0.1
and
Craftbukkit 1.3.2 R1
Server starts with 500 mb ram usage, no players, it grows 10 mb every 30 seconds ultil get 1300mb of ram usage WITHOUT ANY PLAYER and then crashes... no error logs, just tipical "did the time changed bla bla", if i remove ptweaks works perfect.
-
View User Profile
-
Send Message
Posted Oct 13, 2012@Har88: Too bad the /plugins command is blocked ;) Checked before you posted that.
-
View User Profile
-
Send Message
Posted Oct 13, 2012@GuildMasterLelo
LOL. Have you heard of NoLagg? NoLagg and PTweaks are the two major anti-lag plugins, and bergerkiller is the author of NoLagg.
-
View User Profile
-
Send Message
Posted Oct 12, 2012Ok, I think I asked this before, but what settings would I use on a server with 6gb ram with about 70 people on at all times? 2.00GHZ processor with i don't know what brand of processor. Running Windows Server 2008 with 1GBPS internet speed.
-
View User Profile
-
Send Message
Posted Oct 7, 2012I went on main.kingscrafters.com
They don't even have ptweaks installed.... and funny how to says they all custom coded... i only see like 1 plugin thats custom.
-
View User Profile
-
Send Message
Posted Oct 6, 2012Since I have added this plugin to my server, chunks will not unload at all. I haven't touched the ChunkPersistance settings, but as far as I can see, the chunks never unload. This is causing a lot of RAM usage and CPU usage on my server.
Any clue why the chunks wont ever unload?
-
View User Profile
-
Send Message
Posted Oct 6, 2012will it remove lag on tekkit's bomb explosions?
-
View User Profile
-
Send Message
Posted Oct 4, 2012@mrchasez Had to look at the code because of a question related to 'is it compatible with Orebfucator' (it is)
Have something important to note: The auto save stopper is no longer working. The old method of 'changing the interval field of the world' is no longer working, because all the chunk save logic is now in the MinecraftServer class. It has no fields to change it. (hence I removed it from NoLagg entirely)
The 'k' field you use right now is not for the auto save interval, and I do not know what it is for either. The only check it has is 'k < 4' and something about loading it from a data source. To prevent possible bugs, I recommend you take a look at it...
@bman01
It calls the chunkproviderserver.saveChunk on another thread, basically an asynchronous saving plugin.
-
View User Profile
-
Send Message
Posted Oct 3, 2012Sure mrchasez, submitted a ticket with that.
-
View User Profile
-
Send Message
Posted Oct 2, 2012@TheMimey
I will look into this for sure.
@atcshane
Please pastie your whole start up
-
View User Profile
-
Send Message
Posted Oct 2, 2012@mrchasez
again like i said, This plugin is not limiting mobs on my main world 'World1" yet it limits them in the nether and end? 3000/550 mobs.
-
View User Profile
-
Send Message
Posted Oct 1, 2012@TheMimey
Depends on plugin and CPU performance. 130 to 200 sounds about right Prune is kind of high, you would only want it that high if you have a lot of free CPU
-
View User Profile
-
Send Message
Posted Oct 1, 2012This plugin is not limiting mobs on my main world 'World1" yet it limits them in the nether and end? 3000/550 mobs.