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 Jul 13, 2013And I fixed up the main page to be less of a letterfest describing the features. Included some guidelines for Spigot and PTweaks since it is such a hot topic.
-
View User Profile
-
Send Message
Posted Jul 13, 2013@LordKitsuna I recommend looking at the features both plugins offer and choosing between the two. Running both may not be needed unless one plugin offers something the other doesn't. Considering NoLagg is kinda huge at this point, I can't think of anything important I excluded.
Recommendations for using NoLagg and Spigot
Spigot has timings, NoLagg has examiner. Difference is that NoLagg examiner offers per-tick information, and is more accurate this way. Spigot has more timings hooks integrated in the server, so may show more (but less detailed) statistics. The item stacker in NL isn't that much needed. Spigot disables entity ticking beyond a distance, which is better than just limiting spawns. Entity limiter isn't that much needed for that reason. Spigot offers no ways of fixing lighting, NoLagg does. If you have glitches, it's useful. Spigot already has cross-thread checks for spawning entities and thread locking, so that isn't needed that badly. The nolagg thread lock checker does offer a bit more information to what plugin is causing it. Spigot has no way to execute TNT properly without crashing the server, NoLagg TNT does fix that. Then there are some features in the common component to clear entities, clean up memory or unload loaded chunks, which can be useful.
NoLagg chunks is something you really need to configure properly. It gets rid of network lag when players join a server, but if the sending rate fails to adjust to the connection properly it may end up performing worse. The lazy-loading it offers also reduces strain on the server when players join, by spreading the workload over a longer period of time. My recommendation: test it out, if you don't like it, disable it.
Also: this. You really need to understand that your input is kinda worthless to me, I can't fix or improve anything with the information provided. What lag are you experiencing, how can I reproduce and what are your server specs (mainly CPU and player count on the server)
-
View User Profile
-
Send Message
Posted Jul 13, 2013I am wondering if using this and ptweaks together is still ok. i did find something from awhile ago where ptweaks dev said "This plugin and Nolagg do very different things, and help servers in different ways. Your server would run great with them both together." i just wanna make sure this still holds true or if i should disable something in order to run them together.
-
View User Profile
-
Send Message
Posted Jul 12, 2013@aaronfranke
Spigot uses Nolagg code merged into it, well parts of it like the item stacking and tnt buffer. However not all of it, such as the item buffer. Though with a decent server and spigot you don't need the buffer I don't see any reason to use this plugin with spigot myself and I have been hosting and keeping up with the craftiness since alpha.
-
View User Profile
-
Send Message
Posted Jul 12, 2013Are the build servers down?
-
View User Profile
-
Send Message
Posted Jul 12, 2013Is there any reasons whatsoever to use this plugin rather than Spigot? Spigot is built directly into the jar, so it is faster than a plugin. It has many of the same performance improvements with no issues. On an old server I decided to add NoLagg, default config, everything lagged horribly and the plugin ended up breaking the map and crashing the server. I have no issues with Spigot, even with a massive pile of TNT as you have shown in your demonstration.
-
View User Profile
-
Send Message
Posted Jul 12, 2013@CasterAnd
NoLagg likes to do that. Just use spigot instead.
-
View User Profile
-
Send Message
Posted Jul 12, 2013With NoLagg the server is lagging like never before.. Shit makes sense :P
-
View User Profile
-
Send Message
Posted Jul 12, 2013@bergerkiller
Anytime.
-
View User Profile
-
Send Message
Posted Jul 11, 2013@elkidz @lucasbocca Tested working on the current latest development builds of BKCommonLib (1.54-SNAPSHOT) and NoLagg (1.90.1-SNAPSHOT) found the CI-build servers. You need to update NoLagg too since Spigot moved the orebfuscator method around for the third time.
-
View User Profile
-
Send Message
Posted Jul 11, 2013@elkidz @lucasbocca Thanks, looks like spigot server detection failed for some reason and the Spigot-compatibility layer failed to work. I'll try to fix this (in BKCommonLib)
@CosmicVoyager You need to enable the lag messaging thing in the config.yml as well. (and possibly configure the thresholds)
-
View User Profile
-
Send Message
Posted Jul 11, 2013@bergerkiller
Same version of elkidz, Spigot-1.6.2-R0.1 Build #1029
-
View User Profile
-
Send Message
Posted Jul 11, 2013Greetings,
How do I make players get server overloaded messages?
nolagg.notifylagging permission is not working
Thanks
-
View User Profile
-
Send Message
Posted Jul 11, 2013@bergerkiller
-
View User Profile
-
Send Message
Posted Jul 11, 2013@elkidz @lucasbocca Since I can not reproduce it atm (the error occurs in Craftbukkit-specific server code, it should not be possible on the spigot server regardless) I need a bit more information
Perhaps it fixes it: update Spigot to the current latest development build. They might have had a bug.
-
View User Profile
-
Send Message
Posted Jul 11, 2013Doesn't work on spigot. The same error of @lucasbocca
-
View User Profile
-
Send Message
Posted Jul 11, 2013I'm having an error using NoLagg 1.90.0 and BKCommonLib 1.54 (Using Spigot 1.6.2):
http://pastebin.com/MkYmZkt2
-
View User Profile
-
Send Message
Posted Jul 10, 2013@bergerkiller
Oh XD I'm so blind. Thank you :P
-
View User Profile
-
Send Message
Posted Jul 10, 2013@Darunia18 See above your comment, the image Development builds
-
View User Profile
-
Send Message
Posted Jul 10, 2013@bergerkiller
Do you have a dev site at all that we could download from instead of waiting?