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 Apr 20, 2013I am not sure why, but today I started getting this spammed in my log, please help!
java.lang.IllegalArgumentException Cannot measure distance between world and world_nether
2013-04-20 11:46:47 [SEVERE] at org.bukkit.Location.distanceSquared(Location.java:381)
2013-04-20 11:46:47 [SEVERE] at com.bergerkiller.bukkit.nolagg.itemstacker.StackingTask.fillNearby(StackingTask.java:113)
2013-04-20 11:46:47 [SEVERE] at com.bergerkiller.bukkit.nolagg.itemstacker.WorldStackFormer.runAsync(WorldStackFormer.java:87)
2013-04-20 11:46:47 [SEVERE] at com.bergerkiller.bukkit.nolagg.itemstacker.StackFormer.run(StackFormer.java:99)
2013-04-20 11:46:47 [SEVERE] at com.bergerkiller.bukkit.common.AsyncTask$1.run(AsyncTask.java:44)
-
View User Profile
-
Send Message
Posted Apr 20, 2013@bergerkiller
I was using an old dev build, i will test now with a new one, I got some erros with the old.
@EDIT1: What is better SLOPE or SPIRAL?
I got this with the latest dev, but I dont even know if its from NoLagg/BkCommonLib or other. Testing without both
@EDIT2: Ok, it is from BkCL or NoLagg (using #800 + latest dev of both plugins).
@EDIT3: md-5 Just reverted updates, link here and I think its all fine again, i will test it (; Still getting the error
-
View User Profile
-
Send Message
Posted Apr 20, 2013@rfsantos1996 Hmn what is the incompatibility right now? (error, void, something) None of the changes appear to conflict with what BKCommonLib does (but I could be wrong)
-
View User Profile
-
Send Message
Posted Apr 20, 2013http://ci.md-5.net/job/Spigot/795/ Can you add combatibility with the next Spigot builds? (BkCommonLib too)
-
View User Profile
-
Send Message
Posted Apr 18, 2013@lenis0012
I sent you a PM (;
-
View User Profile
-
Send Message
Posted Apr 17, 2013@mal67
Could you give me a part of it in a pastebin link?
And give some version information as well please.
-
View User Profile
-
Send Message
Posted Apr 17, 2013ok. so i hope i can find something else to group item drops together. because this plugin just caused a 34,000 line long error... something to do with chunkloading so that doesnt really sound fun...
-
View User Profile
-
Send Message
Posted Apr 17, 2013@diannetea Thanks for reporting! Without your help this problem would have been left unnoticed, and it's quite a big issue too. Fixed it in BKCommonLib build #115
-
View User Profile
-
Send Message
Posted Apr 16, 2013Dev Build #31 of NoLagg and whatever the equivalent of BKCommonLib is with Spigot build 794 and using /nolagg fix in the Nether
http://pastebin.com/p7pDGvU9
-
View User Profile
-
Send Message
Posted Apr 16, 2013@Waannix If you are using CraftBukkit 1.5.1, you need to download the latest development build. We are still working on getting (mainly) BKCommonLib fully functioning on 1.5.1, and some other plugins need changes now and then. The development builds right now are stable enough (well, for NoLagg at least). The main development right now is in TrainCarts, mostly unrelated to NoLagg.
If this still happens on that build, I will need more information to help, such as CraftBukkit build and the server log when enabling the plugins.
-
View User Profile
-
Send Message
Posted Apr 16, 2013Hi i'm french so my english is very bad. So when i download the plugin i reload and stop the serveur, then i go to my document plugins and i can't found the doc Nolagg so i can't modify the config.yml Need Help !
-
View User Profile
-
Send Message
Posted Apr 15, 2013@lst96 Please update all plugins (NoLagg and BKCommonLib) to the latest version found on the CI jenkins server. We are still working on fixing all bugs from the past 3 months...
@The_Wizard Most plugins will work fine, some might fail. My plugins are compatible at least, but I am aware of the changes Spigot made, and some plugins could fail. Try it, it's the best thing to do at least. Spigot is quite well made, Netty aside. The network portion of Spigot is quite flawed...
-
View User Profile
-
Send Message
Posted Apr 14, 2013Getting this error on lastest dev build of bukkit. 1.5.1 R.03
http://pastebin.com/QH9q88Hb
-
View User Profile
-
Send Message
Posted Apr 13, 2013@bergerkiller
I'm using CraftBukkit.
With Spigot and I don't have this problem. Should I use Spigot? I've read about it and people say that is better, but I'm not sure how well it will work with all the plugins I have.
-
View User Profile
-
Send Message
Posted Apr 13, 2013@babababagagaga Yes, use the latest dev builds though, I have made compatibility changes a few days ago.
@The_Wizard You are using CraftBukkit or Spigot? There is some sort of mysterious bug where ProtocolLib enables after BKCommonLib, and I haven't managed to track it down yet.
-
View User Profile
-
Send Message
Posted Apr 12, 2013Does this work with spigot 1.5.1 build?
-
View User Profile
-
Send Message
Posted Apr 12, 2013@bergerkiller
Thank you :D
-
View User Profile
-
Send Message
Posted Apr 12, 2013@bergerkiller
http://pastebin.com/rjLc4inH
Also tried with latest protocollib, dev build #61.
-
View User Profile
-
Send Message
Posted Apr 12, 2013@The_Wizard What is the incompatibility/what is broken/errors/how can I help/resolve?
@zeshan321 The main advantage of using NoLagg with Spigot is the memory optimizations when sending packets, combined with the configurable-multithreaded chunk compression threads. The player-direction based send ordering also eliminates all issues with players joining or walking into the void. I can literally move in minecarts at 400 blocks/second without even glitching out, it's amazing. All of this is in the chunks component.
Adding to that, NoLagg offers entity clearing utilities to quickly get rid of excess entities. The monitor gives excellent overview of server statistics, and the examiner gives a far more detailed per-tick graphical view of server performance. The lighting component can fix ugly lighting bugs, and reduce client FPS lag caused by this. The item buffer can get rid of excess items being spawned. The thread lock notifier is a bit more detailed than Spigots, and can help out. The sync-thread access checker can avoid common bugs with plugins spawning or teleporting entities on other threads, maintaining server stability. The TNT functionality is still not implemented elsewhere and allows you to enable TNT blocks without fear of server freezes.
The only components in NoLagg that become somewhat pointless is ItemStacker and Entity spawn limiter. No idea why I still have them in there anyway, there are superior plugins/server software for this.
-
View User Profile
-
Send Message
Posted Apr 12, 2013Does using nolagg on spigot give any advantage or is there no point?