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 1, 2012For a server with an Intel Xeon, and 12 gig ram whats the best settings? 100+ online.
lifetime=100000 prune=12000 enable=True
-
View User Profile
-
Send Message
Posted Sep 30, 2012@TheMimey
That looks about right if you have the end disabled. You may want to try CraftBukkit for the TPS.
-
View User Profile
-
Send Message
Posted Sep 30, 2012Please take a look at this picture, are my loaded chunks normal? http://i.imgur.com/T7tbQ.png
-
View User Profile
-
Send Message
Posted Sep 29, 2012@bman01
No this doesn't do /save-all at all. This has to do with writing to the disc so the CPU isn't over loaded. It cuts down on the processes that are happening all the time. I highly recommend enabling this feature, and using it with a save plugin is fine.
@TheMimey
450 x 3 Worlds?
@Darkblader10
Disable the plugin and see if the error still occurs, if it does. Not PTweaks. However if it don't please pastie your startup.
-
View User Profile
-
Send Message
Posted Sep 29, 2012yet there are 2k mobs running, well done.
-
View User Profile
-
Send Message
Posted Sep 28, 2012Hey,
since I installed your plugin, no more mobs spawn in the night. But I need these mobs.
I tried to disable moblimiter but it didn't help.
Pls help
-
View User Profile
-
Send Message
Posted Sep 28, 2012Forgive my noob question...
I am currently running the rb for 1.3.2 and have the autosave setting set to 0 to disable it. I am using Simple-AutoSave plugin to manage my saves at the moment. This plugin just does the /save-all basically.
Is the AutoSave feature for the ptweaks plugin the same as the /save-all at the console? This plugin looks awesome and I would like to use it on my server. I don't want to double save, and if this plugin handles it I won't need the other plugin.
Also I have a dedicated server with 6GB ram, what would you suggest for the Chunk Persistance settings?
Thanks in advance for the help!
-
View User Profile
-
Send Message
Posted Sep 28, 2012@GuildMasterLelo
Uh, odd statement that last part. Thanks though!
-
View User Profile
-
Send Message
Posted Sep 27, 2012I love the cool logo. Keep up the good work. Let me know if you need help.
-
View User Profile
-
Send Message
Posted Sep 27, 2012@vicente947
Test the settings, see which you prefer.
-
View User Profile
-
Send Message
Posted Sep 26, 2012@An0n1m0us
Me too i need to modify or not?
-
View User Profile
-
Send Message
Posted Sep 26, 2012@benneht
Try Grief Prevention, it can help stop grief before it happens so you dont even have to roll back.
-
View User Profile
-
Send Message
Posted Sep 25, 2012@benneht
If you're not already, you should consider using an SSD with coreprotect. Works great for all those constant read/writes.
-
View User Profile
-
Send Message
Posted Sep 25, 2012I have a server with 1,5 GB ram. I nasty edit the config file or no??
thenks
-
View User Profile
-
Send Message
Posted Sep 25, 2012@GuildMasterLelo
Are you saying it was helping until recently? Then go back and look at the changes you have made to any plugins, and undo them. Then find what the problem was. I really can't give you a recommended settings with that little information. Sorry
@benneht CoreProtect works quite well for us, thats what i would suggest using. Sorry.
-
View User Profile
-
Send Message
Posted Sep 24, 2012Hey Mr.Chasez, I have a quick question. My server usually has 20 players on and it's been crashing A LOT lately, like every 3 hours or so because of the RAM usage. The default settings aren't working for me, server still uses a lot of RAM.
What do you recommend for:
Lifetime=?
Prune=?
Thanks in advance bro, your work is highly appreciated :)
-
View User Profile
-
Send Message
Posted Sep 24, 2012@mrchasez:
What do you suggest for a anti-griefing plugin. CoreProtect lags my server due to all the logging it's doing. I am now at about 50 people on at all times.
-
View User Profile
-
Send Message
Posted Sep 24, 2012@mrchasez
Agreed, NoLagg caused many issues, such as chunk problems, conflicts with Orebfuscator, More lag, drops not being able to be picked up and so on. So far with Ptweaks I had no issues and my memory usage went from 25% to 7%, after proper configuration of my other plugins.
-
View User Profile
-
Send Message
Posted Sep 24, 2012@Runemoro
I hear all the time NoLagg causes worse performance, but i think they may have done stuff wrong. It don't work on my server very well either, to each there own. Testing is the best way to get your answer. NoLagg should work great on some servers, and some it don't
-
View User Profile
-
Send Message
Posted Sep 23, 2012<<reply 969940="">>
PTweaks definitely decreases the RAM usage for your server, not as effective as it used to be, but Mr.Chasez is still working on the chunk algorithm. Definitely switch from NoLagg to PTWeaks.