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 11, 2013If I have Spout plugin I can't use nolagg.
It is a way to use spout plugin and nolagg?
I have spout plugin - dev #1439, bkcommonlib - dev #104 and nolagg - dev #29, protocollib devbuild #60
-
View User Profile
-
Send Message
Posted Apr 11, 2013@dogbig Since you didn't get the additional error info I added a few hours ago, I recommend updating BKCommonLib and Nolagg to the latest version as found on the development build CI server. That solves that issue, and probably other things too.
http://ci.dj-tcraft.nl/job/BKCommonLib/ http://ci.dj-tcraft.nl/job/NoLagg/
@sesicraft For now, BKCommonLib supports CraftBukkit, CraftBukkitPlusPlus, Spigot and Libigot. Just supporting only that took time enough. :) MCPC+ support is not yet there, simply because it is a lot of work to get it right. It will, most likely, become a separate fork of BKCommonLib that does this, as the changes are a bit too much. But then again, BKCommonLib is flexible, so who knows.
-
View User Profile
-
Send Message
Posted Apr 11, 2013.....is NoLagg compatible with MCPC+? Your post below says yes, but I can't get it to work.... i thought i read that BKCommonLib isn't compatible with MCPC+, so how is NoLagg compatible??
-
View User Profile
-
Send Message
Posted Apr 11, 2013@bergerkiller
Some sort of stucking.. They cannot move. Also when using creative, walls bounce player little back.
Also got this error when restarting server: 2013-04-11 15:09:13 [INFO] [NoLagg] Disabling NoLagg v1.89.9 2013-04-11 15:09:13 [SEVERE] [NoLagg Chunks] Failed to disable NoLagg component 'Chunks': 2013-04-11 15:09:13 [SEVERE] java.lang.IllegalAccessError: tried to access method com.bergerkiller.bukkit.common.bases.DummyWorldServer.<init>()V from class com.bergerkiller.bukkit.nolagg.chunks.antiloader.DummyPlayerManager 2013-04-11 15:09:13 [SEVERE] at com.bergerkiller.bukkit.nolagg.chunks.antiloader.DummyPlayerManager.<clinit>(DummyPlayerManager.java:20) 2013-04-11 15:09:13 [SEVERE] at com.bergerkiller.bukkit.nolagg.chunks.DynamicViewDistance.deinit(DynamicViewDistance.java:91) 2013-04-11 15:09:13 [SEVERE] at com.bergerkiller.bukkit.nolagg.chunks.NoLaggChunks.onDisable(NoLaggChunks.java:124) 2013-04-11 15:09:13 [SEVERE] at com.bergerkiller.bukkit.nolagg.NoLaggComponent.disable(NoLaggComponent.java:73) 2013-04-11 15:09:13 [SEVERE] at com.bergerkiller.bukkit.nolagg.NoLagg.disable(NoLagg.java:123) 2013-04-11 15:09:13 [SEVERE] at com.bergerkiller.bukkit.common.PluginBase.onDisable(PluginBase.java:716) 2013-04-11 15:09:13 [SEVERE] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:219) 2013-04-11 15:09:13 [SEVERE] at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoader.java:481) 2013-04-11 15:09:13 [SEVERE] at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:400) 2013-04-11 15:09:13 [SEVERE] at org.bukkit.plugin.SimplePluginManager.disablePlugins(SimplePluginManager.java:393) 2013-04-11 15:09:13 [SEVERE] at org.bukkit.craftbukkit.v1_5_R2.CraftServer.disablePlugins(CraftServer.java:277) 2013-04-11 15:09:13 [SEVERE] at net.minecraft.server.v1_5_R2.MinecraftServer.stop(MinecraftServer.java:333) 2013-04-11 15:09:13 [SEVERE] at net.minecraft.server.v1_5_R2.MinecraftServer.run(MinecraftServer.java:440) 2013-04-11 15:09:13 [SEVERE] at net.minecraft.server.v1_5_R2.ThreadServerApplication.run(SourceFile:573) 2013-04-11 15:09:13 [INFO] NoLagg disabled!
-
View User Profile
-
Send Message
Posted Apr 11, 2013@Tarnadas Update both BKCommonLib and NoLagg...also, I think it's time that I am going to detect this sort of thing.
-
View User Profile
-
Send Message
Posted Apr 11, 2013Hi, I get this error with the latest bukkit, nolagg and bkcommonlib dev builds:
2013-04-11 12:12:39 [SEVERE] [NoLagg Chunks] Failed to enable NoLagg component 'Chunks': 2013-04-11 12:12:39 [SEVERE] java.lang.NoSuchMethodError: com.bergerkiller.bukkit.common.bases.DummyWorldServer.newInstance()Lcom/bergerkiller/bukkit/common/bases/DummyWorldServer; 2013-04-11 12:12:39 [SEVERE] at com.bergerkiller.bukkit.nolagg.chunks.antiloader.DummyPlayerManager.<clinit>(DummyPlayerManager.java:20) 2013-04-11 12:12:39 [SEVERE] at com.bergerkiller.bukkit.nolagg.chunks.DynamicViewDistance.init(DynamicViewDistance.java:45) 2013-04-11 12:12:39 [SEVERE] at com.bergerkiller.bukkit.nolagg.chunks.NoLaggChunks.onReload(NoLaggChunks.java:110) 2013-04-11 12:12:39 [SEVERE] at com.bergerkiller.bukkit.nolagg.chunks.NoLaggChunks.onEnable(NoLaggChunks.java:116) 2013-04-11 12:12:39 [SEVERE] at com.bergerkiller.bukkit.nolagg.NoLaggComponent.enable(NoLaggComponent.java:60) 2013-04-11 12:12:39 [SEVERE] at com.bergerkiller.bukkit.nolagg.NoLagg.enable(NoLagg.java:58) 2013-04-11 12:12:39 [SEVERE] at com.bergerkiller.bukkit.common.PluginBase.onEnable(PluginBase.java:649) 2013-04-11 12:12:39 [SEVERE] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217) 2013-04-11 12:12:39 [SEVERE] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:457) 2013-04-11 12:12:39 [SEVERE] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381) 2013-04-11 12:12:39 [SEVERE] at org.bukkit.craftbukkit.v1_5_R2.CraftServer.loadPlugin(CraftServer.java:282) 2013-04-11 12:12:39 [SEVERE] at org.bukkit.craftbukkit.v1_5_R2.CraftServer.enablePlugins(CraftServer.java:264) 2013-04-11 12:12:39 [SEVERE] at net.minecraft.server.v1_5_R2.MinecraftServer.j(MinecraftServer.java:303) 2013-04-11 12:12:39 [SEVERE] at net.minecraft.server.v1_5_R2.MinecraftServer.e(MinecraftServer.java:282) 2013-04-11 12:12:39 [SEVERE] at net.minecraft.server.v1_5_R2.MinecraftServer.a(MinecraftServer.java:242) 2013-04-11 12:12:39 [SEVERE] at net.minecraft.server.v1_5_R2.DedicatedServer.init(DedicatedServer.java:150) 2013-04-11 12:12:39 [SEVERE] at net.minecraft.server.v1_5_R2.MinecraftServer.run(MinecraftServer.java:381) 2013-04-11 12:12:39 [SEVERE] at net.minecraft.server.v1_5_R2.ThreadServerApplication.run(SourceFile:573)
-
View User Profile
-
Send Message
Posted Apr 10, 2013@dogbig I....don't know what exactly you mean by that. 'expect jumping with y: -1...'...hm? I can't really picture what is going on there.
@TimotyC There are 1.5.1 dev build already, it's in progress.
@pcatack What kind of lag? TPS lag I suppose? It's best to try profiling this further, using /lag examine can give some detailed view of what is going on. Also, if you have a lot of entities, this appears to be an issue too.
-
View User Profile
-
Send Message
Posted Apr 10, 2013Hello dogbig,
I dont know what happend, but with the new dev-built (nolagg+bkcommonlib) I have really lag in my server.
20GB Server and lag with only 20 players...
With 200 players I cant keep the lag, and when i do /nolagg memory i can see..
That isnt a memory problem, i have 10GB used only (sometimes it changes)
thank you
-
View User Profile
-
Send Message
Posted Apr 10, 2013Update 1.5.1 ? Please
-
View User Profile
-
Send Message
Posted Apr 10, 2013Also another bug, sometimes pl after login / chunk load expect jumping with y: -1... they have to restart whole minecraft..
@bergerkiller
I have already used latest
-
View User Profile
-
Send Message
Posted Apr 10, 2013@bergerkiller
Thanks for the Fix :) Works!
-
View User Profile
-
Send Message
Posted Apr 10, 2013@dogbig Update both BKCommonLib and NoLagg, some things have changed :)
-
View User Profile
-
Send Message
Posted Apr 10, 2013Examine does not wok 13:24:18 [WARNING] Task of 'NoLagg' generated an exception java.lang.NoSuchMethodError: com.bergerkiller.bukkit.nolagg.examine.PluginLogger$2.write()Z at com.bergerkiller.bukkit.nolagg.examine.PluginLogger.onFinish(PluginLogger.java:188) at com.bergerkiller.bukkit.nolagg.examine.PluginLogger$1.run(PluginLogger.java:168)
-
View User Profile
-
Send Message
Posted Apr 10, 2013@lst96 Looks like you just have a lot of entities on the server, and it's resulting in a heavy tick rate issue. Use /lag monitor to see how many entities are on the server. If this is truly a lot, use /lag clear to remove some of them.
@Spezialeinheit Fixed in build #94
-
View User Profile
-
Send Message
Posted Apr 10, 2013Good Morning, i got with CB Beta Build, BKC #92 and NoLagg Dev #28 this Error: http://pastebin.com/rEUR3VQr
-
View User Profile
-
Send Message
Posted Apr 9, 2013Got this error. It doesn't says what plugin is cause: . http://pastebin.com/Ej2tapV0
-
View User Profile
-
Send Message
Posted Apr 9, 2013@WalyssonDN Fixed in build #26.
-
View User Profile
-
Send Message
Posted Apr 8, 2013Spamming this error in console: http://pastebin.com/rijvU0CL
-
View User Profile
-
Send Message
Posted Apr 8, 2013@bergerkiller
Thanks that worked perfectly :D
-
View User Profile
-
Send Message
Posted Apr 8, 2013@Qentus Yes, I'm working on that issue right now. For the moment, you can install ProtocolLib to overcome this problem.