NoLagg

Version: 1.90.4 | CB 1.7.2
Quote from lenis0012:NoLagg has not been updated since 1.7.10, for more info, check BKCommonLib
Description
NoLagg is made out of multiple completely separate components which you can enable and disable freely. Together they offer:
- Send chunks more gracefully with lowered network stress and reduced processing spikes Read more...
- Remove entities, resend chunks in case of chunk holes and clean up server memory Read more...
- Examine server tick rate performance with deep view into per-tick processes of the server Read more...
- Stop a large amount of items from spawning and spawn at a later time to avoid frozen clients Read more...
- Stack items with a configurable per-world radius Read more...
- Fix lighting errors that cause clients to recalculate lighting (and thus lag) Read more...
- Keep track of server performance such as entities, tick rate, memory and more Read more...
- Fix various bugs the server has (Patches component)
- Schedule autosaves and force data to be written to disk to prevent data loss on server crash (Saving component)
- Limit the amount of entities allowed to spawn per world or globally Read more...
- Watch events closely to warn when plugins execute main-thread methods from another thread Read more...
- Show a detailed message explaining the cause for a server freeze (lock) [read more]
- New TNT execution algortithm that is not only more efficient, but also avoids server freezes Read more...
Important
When first installing NoLagg, open up config.yml and disable components you do not need. This is very important, as some components may conflict with other plugins you use, or may not function on the type of demand you have. If you get a warning message [Severe] followed up with a stack trace in the log, this has to do with the main thread not having responded within 10 seconds. The warning is NOT an error and is no bug, and not a bug related to NoLagg. To disable this feature, disable 'threadlocknotifier' in the config.yml. This feature is mainly intended to notify you what plugin is causing the server to freeze, may it ever happen. It is used to debug plugins in general, as they may get stuck for whatever reason. If NoLagg DOES show up in there, it is a bug you should report.
FAQ
Separating into jar files
NoLagg consists of multiple components you can individually enable and disable. Reasons for not publishing it as a separate jar file for every component can be read here. Please don't ask to separate the components, I will just link you to here.
Spigot server
Not all components are needed when you use the Spigot server. The ItemStacker, ItemBuffer, Spawn Limiter, Thread Checker and Thread Lock Notifier components are not needed, since Spigot has it's own implementations to deal with that. If you still wish to use one of these components, you can, but it's best to disable the Spigot alternative then.
The other components (such as TNT, Chunks, Lighting, Common, etc.) are not implemented in Spigot (yet?) and offer additional functionality.
PTweaks
Since people keep asking about this, I went ahead and compared the two plugins. I am not going to discuss which is better in functionality, I'm just going to state which features overlap and which do not. Both plugins offer a TNT-lag solving solution, feel free to choose which solution you like better. (the solutions are different) Both plugins also offer a way to change when and how chunks are saved, NoLagg adds to this that you can configure when the server writes data to disk. PTweaks offers a way of showing used memory, NoLagg Monitor too with a bit more information. Again, preference. Chunk Persistence is something PTweaks offers and NoLagg does not. Reason I excluded it from NoLagg is that the implementation used up more processing power than that it solved (I did have this for a while). If you want to give it a try, PTweaks is your answer. Monster Limiter is incorporated in NoLagg as well but then for all entities, and more options. ChunkEdits is a tricky one: NoLagg chunks does something similar, with the difference being that it also changes at what rate chunks are sent, which is the main feature NoLagg chunks offers. In addition, the ability to increase the amount of threads running to process chunk packets and the re-using of packet raw data offers some benefits PTweaks does not offer.
Then there are a lot of other features NoLagg has and PTweaks does not, such as examining server tick rate, item stacker, item buffer, fixing lighting, cleaning up server memory, resending chunks, removing entities on command and others (see description).
In short: Both plugins offer some overlapping features, and you need to pay close attention to the configuration of PTweaks and NoLagg and disable things that conflict. Having two TNT explosion altering plugins is going to have strange results, for example. Compare the functionality, decide, and enable in NoLagg what you do not want in PTweaks, and vice versa.
NoLagg showing up in error stack traces
The examine component inserts various hooks into the server to gather measurements. Specifically, you will find that the following lines show up now and then. These hook classes do absolutely nothing when not examining and can not be the cause for any issues, unless the stack trace ends there (first line after the exception shows this stack trace)
- org.timedbukkit.craftbukkit.*
- com.bergerkiller.bukkit.common.internal.ChunkProviderServerHook
Video
Here is a video by BlueDevonMovies (lenis0012):
Metrics
This plugin sends server count statistics to MCStats.org. You can (globally) opt out in the PluginMetrics/config.yml file.







-
View User Profile
-
Send Message
Posted Oct 26, 2012Just a suggestion, maybe you should post a link to the page detailing why you won't multi-JAR it up on the page above?
-
View User Profile
-
Send Message
Posted Oct 26, 2012All right that is all working now! /lag fixworld is in and it is here to stay. Did several test runs, improved some stuff, moved chunk loading into a tick task to prevent server freezes, and now it runs very well. Created a new world. Results:
Auto option enabled After flying around no dark lighting glitches to be found.
Auto option disabled Lighting glitches found as soon as I entered the world. Pretty ridiculous the amount of bugs I saw...
After doing /lag fixworld After flying around I generated around 6000 chunks (5935). After doing the world fixing command, it started fixing chunks at around 45/40 ticks. Let's say 22 per second. After around 2 minutes it completed all chunks, and there was no glitch to be found.
Test successful I guess. I will test around a bit more and upload it.
-
View User Profile
-
Send Message
Posted Oct 26, 2012@twisted067 Don't worry about that yet, I will add a /lag fixworld command to fix all generated chunks on the server. I will have to - somehow - obtain all the chunks found in the region files. One issue is memory, if you have a lot of chunks in a world, it could cause the server to run out of memory. ...So I have to unload chunks with which I am done processing.
All in all, performing a lighting fix for an entire world seems a bit hard to do. Mainly because I have to unload chunks when I'm done with them, and CraftBukkit only allows this to be done the next tick.
If you can find a plugin that can keep a large area in the world loaded, then yes.
-
View User Profile
-
Send Message
Posted Oct 25, 2012@bergerkiller
Is there a way I can force the server to load all the chunks and then do the /lag fix?
-
View User Profile
-
Send Message
Posted Oct 25, 2012@MrMime22 Ok finally good news: I found the issue you were having. When handling the spawning of an entity, and if it was denied, it removed the entity counters twice. As a result, the kept count started running out of synch with the actual entity count. Tough one to fix, unfortunately. Requires some logic changes.
EDIT
I fixed your issue with the spawn limiter and the clear shortcuts not working. Here is a test build:
https:dl.dropbox.com/u/3681706/NoLagg%20v1.88.9%20TEST%201.zip
Please keep me informed on how well it performs. Waiting for @ScorchRaserik to post his error before publishing it as official.
-
View User Profile
-
Send Message
Posted Oct 25, 2012@twisted067 It did do that before, but not anymore. Caused server freezes and all. It only performs lighting fixes on loaded chunks within the radius specified (does not load new chunks) Problem is that the server goes generating new chunks if I allow chunks to 'load'.
@ScorchRaserik Can you post the error? The error is pretty important, as it could be caused by the dummy world ending up in the server world list somehow.
@MrMime22 I already told you that the shortcut wasn't working. And did you try running just NoLagg? I am pretty sure that the item spam problem you are having (and the resulting server crash) is caused by another plugin. I am not here to fix problems in other plugins, so please verify. I will re-test the spawn limiter once more then. The previous test of 500 mobs worked, but for some reason it fails on 10. Kind of strange. At least I got something to test this time, previously it was acting predictably.
-
View User Profile
-
Send Message
Posted Oct 25, 2012@bergerkiller
How exactly does the /lag fix work for lighting? I figured I would do a /lag fix 10000 and fix every lighting error on my server, but that didn't seem to work. Do I have to fly around doing /lag fix in a smaller radius? Also does it load up chunks not loaded by players to fix lighting?
-
View User Profile
-
Send Message
Posted Oct 25, 2012I get errors and players can't join, saying "NoLagg chunks dummy world has been accessed!" I just updated from 1.87 to 1.88 and it was working fine earlier.
-
View User Profile
-
Send Message
Posted Oct 25, 2012@bergerkiller
: Isssues - /Nolagg clearall XXX , Does not clear your shortcut, yet /nolagg clearall does. - Item drops seem to be fixed, nice. - Nolagg mob limiter broken - Thread lock notifier needs a further stack trace, to locate the root issue.
Hello. I can assure you, 101%, the mob limiter does not work. I have a large server, so I can actully test it correctly. Your proberly testing this with less than 30 players online, 30 players online wont gather over 1000 mobs. I have 100+ players online, with the config I sent you, and my mobs rise up to 1500 after a couple hours, the only thing keeping them from going over 10k is the -monster and -mob part in clearing chunks. trust me, the mob limiter does not work bro.
Heres my config, once again.
http://pastebin.com/55Y1MrNZ
-
View User Profile
-
Send Message
Posted Oct 25, 2012@bergerkiller
If people cannot learn to look at the configuration file and disable the components their server doesn't need then they shouldn't be running a server in the first place.
NoLagg is completely documented and its pretty darn easy to test different components and see their results relatively fast.
-
View User Profile
-
Send Message
Posted Oct 25, 2012I made this page for all people complaining that NoLagg does not use multiple jar files. Have fun reading.
http:dev.bukkit.org/server-mods/nolagg/pages/faq-why-not-multiple-plugins/
-
View User Profile
-
Send Message
Posted Oct 25, 2012@MrMime22 I really recommend removing all plugins except NoLagg and trying it again. If this fixes:
Then you can look at the real cause. Quite honestly, I've tried all I could do for you. The only problem in NoLagg I could spot was that the clearing shortcuts weren't being read when doing /lag clearall. The mob limiting appeared to work just fine. Anyhow, I'll push out a final version before 1.4 comes out just to see if it was a configuration issue you had after all.
@bob7l @mrchasez AAAnd you are questioner number #7 and #8. Congratulations, you win nothing. Seriously, though, getting really tired of this question.
Now please stop whining about making separate jar files - it is NOT possible. Bukkit's class loader quite frankly sucks and can't handle that many jar files accessing BKCommonLib at once. It will overload you with errors and other glitches. Stop asking, I won't, I can't, it won't be useful, it won't have any upsides and is not needed. /rant
-
View User Profile
-
Send Message
Posted Oct 24, 2012Guys, If NoLagg has caused problems in the past, just turn Chunk Loading to off, change everything having to do with items off, and BAM, you're servers running perfect 20.00 TPS
-
View User Profile
-
Send Message
Posted Oct 24, 2012@ray73864
What do you mean? I think he's talking about the /lag examine command, in that case i support it 100%. I use this plugin only for the examiner and it still enabled a lot of pointless resource loving things..
-
View User Profile
-
Send Message
Posted Oct 24, 2012@mrchasez
Why? If you run the program manually (outside of bukkit) it doesn't create a config.yml file, it doesn't load any other parts of NoLagg, the only thing it runs is the examiner.
However, if Bukkit runs the jar file, you do get all that stuff, so i don't see why it should be a seperate plugin.
-
View User Profile
-
Send Message
Posted Oct 24, 2012@BergerKiller Would be great if you made the examine part of the plugin into a download able separate module. Don't want to load all of NoLagg (Or even have it all disabled) for that one feature.
-
View User Profile
-
Send Message
Posted Oct 24, 2012@MrMime22
Looking at your plugin list, I think ptweaks could be conflicting with nolagg, seeing as they both the do same thing, with nolagg having a few more features...take that one out and see if it fixes anything...also try without ClearLagg as well, as all 3 of those plugins do the same thing. Run your server with just nolagg, it really should be the only plugin of that type that you need.. Enable the items per chunk on nolagg if you don't have it already.
Clarification of stop lag: "Stops all intensive server processes such as water and lava flow, redstone propagation, fire, TNT detonation, mob spawning, and other similar events. This is a temporary global toggle that will be disabled on server restart. Players who join will be notified when this mode is on."
Also you can remove your pluginspy plugin, and just go to the config of booscooldowns and change /ver, /gc, /plugin, /pl to do nothing. Just one less plugin running on your server :P
-
View User Profile
-
Send Message
Posted Oct 24, 2012@MrMime22
If you have WorldGuard you can despawn most entities with "/stoplag". It also prevents new ones from spawning until either you do "/stoplag -c" or the plugin reloads.
-
View User Profile
-
Send Message
Posted Oct 24, 2012For some reason, like 30k entities/items randomly spawn on my server for no reasons, causing crashes. makes no sence.
[INFO] Plugins (51): HardcoreDeathBan, GroupManager, FastSoup, FusionJoin, Buycraft, Vault, AntiRelog, RuleBook, Shopkeepers, DisguiseCraft, CraftBay, Permissions, AntiAdvertising, FancyText, godPowers, DrugMeUp, PluginSpy, Tracking-Plugin, Votifier, GAListener, Citizens, LagMeter, HideStream, Ptweaks, BananaBackup, WorldEdit, NoCheatPlus, TagAPI, SimpleExtras, WorldGuard, boosCooldowns, mChatSuite, OPLock, LimitedCreative, BKCommonLib, ZavAutoMessager, ClearLag, Auto arm, MoneyDrop, Essentials, MobDisguisePVPControl, SilkSpawners, MagicSpells, My Worlds, EssentialsChat, MobArena, EssentialsProtect, EssentialsSpawn, NameTags, EssentialsAntiBuild, Factions
-
View User Profile
-
Send Message
Posted Oct 24, 2012What does the nolagg saving do exactully? with this enabled will it save RAM?