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 Sep 20, 2012When i use /nolagg clear fireball -> all fireballs of the world get deleted, but in a few seconds they appear again... like 280 entities removed... if i write it again it says 0, in a few seconds it says again 280 because they appeared again -.-
-
View User Profile
-
Send Message
Posted Sep 19, 2012@diannetea
Just turn off what you don't need in the config.yml, how hard is that?
-
View User Profile
-
Send Message
Posted Sep 19, 2012Could you split the lighting portion of the plugin off into something else? that's all I really use anyway, maybe the TNT part but nobody on my server uses tnt much so :/
-
View User Profile
-
Send Message
Posted Sep 19, 2012This was pretty awesome when I installed it yesterday, but it didn't fix the server lag problems... Today I switched to Bukkit 1.3.2-R0.2 build #2366 which supposedly fixes the horrendous lag, but now I get this error from NoLagg and had to remove it:
java.lang.ClassCastException: com.bergerkiller.bukkit.nolagg.itemstacker.WorldEntityWatcher cannot be cast to net.minecraft.server.WorldManager at net.minecraft.server.World.makeSound(World.java:769) at net.minecraft.server.EntityLiving.damageEntity(EntityLiving.java:665) at net.minecraft.server.EntityMonster.damageEntity(EntityMonster.java:38) at net.minecraft.server.Entity.z(Entity.java:297) at net.minecraft.server.EntityLiving.z(EntityLiving.java:263) at net.minecraft.server.Entity.h_(Entity.java:216) at net.minecraft.server.EntityLiving.h_(EntityLiving.java:435) at net.minecraft.server.EntityMonster.h_(EntityMonster.java:25) at net.minecraft.server.World.entityJoinedWorld(World.java:1245) at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:511) at net.minecraft.server.World.playerJoinedWorld(World.java:1227) at net.minecraft.server.World.tickEntities(World.java:1125) at net.minecraft.server.WorldServer.tickEntities(WorldServer.java:428) at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:563) at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:213) at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:473) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:405) at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
-
View User Profile
-
Send Message
Posted Sep 18, 2012@MrMime22 You really should use the 1.3.2 R0.1 beta build of CraftBukkit and the latest NoLagg version found on GitHub. It gets rid of all the internal errors and main thread locking. Item drops I am not sure about, as I couldn't reproduce much of that yet.
Anyhow, be patient, TrainCarts is now in it's final phase (testing phase before sending it out into the wild). BKCommonLib is already updated, but NoLagg is not yet uploaded. (I want to test it first, for example, to fix your item drop problem)
http://dev.bukkit.org/server-mods/bkcommonlib/
Don't use that BKCommonLib version yet though, the latest uploaded NoLagg version is not yet compatible.
-
View User Profile
-
Send Message
Posted Sep 18, 2012@gamewin1
Do you use myworlds
-
View User Profile
-
Send Message
Posted Sep 18, 2012Im so in need for support now, no answers about nolaggs item drops, no lags Internal Server Error, or nolaggs main thread failing
-
View User Profile
-
Send Message
Posted Sep 18, 2012@bergerkiller
Please help 2012-09-17 21:09:24 [WARNING] [NoLagg TLN] The main thread failed to respond after 10 seconds 2012-09-17 21:09:24 [WARNING] [NoLagg TLN] This appears to be caused by NoLagg, report it! 2012-09-17 21:09:24 [WARNING] [NoLagg TLN] What follows is the stack trace of the main thread 2012-09-17 21:09:24 [WARNING] [NoLagg TLN] This stack trace will be further refined as long as the thread is stuck
-
View User Profile
-
Send Message
Posted Sep 18, 2012@gamewin1 Aha, the saving thing. Disable the auto saving feature (or set the interval really high) of the older NoLagg, I fixed that in the latest though. It was saving too many chunks at once; it was causing a lot of tick lag as you noticed.
@codedonut It will...
@bruceeweed NoLagg uses a tremendous amount of code in BKCommonLib too. BKCommonLib is non-plugin specific logic for all sorts of tasks. Permissions, commands, math and similar are only a tiny bit of it. So yes, The stacking component and NoLagg in general requires BKCommonLib. I made it a library because of the many plugins that shared the same code; this reduced the amount of classes loaded in the JVM.
-
View User Profile
-
Send Message
Posted Sep 18, 2012@bergerkiller
Sounds good, are the things necessary for item stacking all within the nolagg.jar or are they split between the bk and nolagg jars? Also, is the source the whole source for both? I was going to say if they were I would look into doing just the item stacking method for a seperate plugin myself.
-
View User Profile
-
Send Message
Posted Sep 17, 2012@gamewin1
Nolagg doesn't work with any version of bukkit above 2365..
-
View User Profile
-
Send Message
Posted Sep 17, 2012after a while of the server being on (prob like half a minute) it would stop responding for 10 seconds then display this message in the console:
it would happen every time i started up the server. it started happening only recently. it started sometime while i was working on the Multiverse Inventories.
-
View User Profile
-
Send Message
Posted Sep 17, 2012@bergerkiller
I have no issues what so every really. just a random tick drop...
Your plugin seems fine, i get that without it.
-
View User Profile
-
Send Message
Posted Sep 17, 2012@MrMime22
Well SOMETHING is stalling the server, but for some reason you never post the stack trace which explains this :/
(or is it not given?)
Have to work a bit more on TrainCarts unfortunately, big bug is causing bugged self-colliding carts everywhere...has to be fixed first.
@bruceeweed
Ah I see, well wait a bit then. I already fixed compatibility for that build myself (the world listener thing was bugged), but it's on hold for TrainCarts to be fully developed. A lot of fixes in TrainCarts require new functions or fixes in BKCommonLib, which Nolagg needs as well. And since I am going to include versioning, I need to instantly update all of my plugins in one go to use this versioning. Otherwise older stuff starts crashing...
-
View User Profile
-
Send Message
Posted Sep 17, 2012@bergerkiller
I tried that but the itemstacking method doesnt work too well with the dev build 2366 unfortunately. I've been running 2366 for a little while now.
-
View User Profile
-
Send Message
Posted Sep 17, 2012Really need help please please, he main thread failed to respond after 10 seconds whats does it mean, i cant fix it
-
View User Profile
-
Send Message
Posted Sep 17, 201206:20:39 PM CONSOLE: [WARNING] [NoLagg TLN] The main thread failed to respond after 10 seconds 06:20:39 PM CONSOLE: [WARNING] [NoLagg TLN] This is not caused by NoLagg, it is only being reported! 06:20:39 PM CONSOLE: [WARNING] [NoLagg TLN] Please read the stack trace to find the problematic plugin. 06:20:39 PM CONSOLE: [WARNING] [NoLagg TLN] What follows is the stack trace of the main thread 06:20:39 PM CONSOLE: [WARNING] [NoLagg TLN] This stack trace will be further refined as long as the thread is stuck 06:20:47 PM CONSOLE: [WARNING] [NoLagg TLN] The main thread is still stuck, updated stack trace is:
-
View User Profile
-
Send Message
Posted Sep 17, 2012@bergerkiller
Hi, please help me with my block drop issue first, its more important
-
View User Profile
-
Send Message
Posted Sep 17, 2012@MrMime22
Can you upload the full stack trace that follows after that logged warning? Need to know what exactly is causing it to stop responding.
@bruceeweed
No need to, you can disable all other components if you like. (you don't have to enable everything, there is a config.yml where you can disable stuff you don't need)
-
View User Profile
-
Send Message
Posted Sep 17, 2012@MrMime22
A rewrite means alot of that will be fixed.
So more or less all current bugs will be fixed, but it might open up some new ones.