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 Aug 8, 20122012-08-08 13:21:01 [WARNING] [NoLagg TLN] The main thread failed to respond after 10 seconds 2012-08-08 13:21:01 [WARNING] [NoLagg TLN] What follows is the stack trace of the main thread 2012-08-08 13:21:01 [WARNING] [NoLagg TLN] This stack trace will be further refined as long as the thread is stuck 2012-08-08 13:21:01 [INFO] at java.io.FileInputStream.readBytes(Native Method) 2012-08-08 13:21:01 [INFO] at java.io.FileInputStream.read(Unknown Source) 2012-08-08 13:21:01 [INFO] at com.palmergames.util.FileMgmt.recursiveZipDirectory(Unknown Source) 2012-08-08 13:21:01 [INFO] at com.palmergames.util.FileMgmt.recursiveZipDirectory(Unknown Source) 2012-08-08 13:21:01 [INFO] at com.palmergames.util.FileMgmt.zipDirectories(Unknown Source) 2012-08-08 13:21:01 [INFO] at com.palmergames.bukkit.towny.db.TownySQLSource.backup(Unknown Source) 2012-08-08 13:21:01 [INFO] at com.palmergames.bukkit.towny.object.TownyUniverse.loadSettings(Unknown Source) 2012-08-08 13:21:01 [INFO] at com.palmergames.bukkit.towny.Towny.load(Unknown Source) 2012-08-08 13:21:01 [INFO] at com.palmergames.bukkit.towny.Towny.onEnable(Unknown Source) 2012-08-08 13:21:01 [INFO] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217) 2012-08-08 13:21:01 [INFO] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:365) 2012-08-08 13:21:01 [INFO] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381) 2012-08-08 13:21:01 [INFO] at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:265) 2012-08-08 13:21:01 [INFO] at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:247) 2012-08-08 13:21:01 [INFO] at net.minecraft.server.MinecraftServer.i(MinecraftServer.java:296) 2012-08-08 13:21:01 [INFO] at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:275) 2012-08-08 13:21:01 [INFO] at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:225) 2012-08-08 13:21:01 [INFO] at net.minecraft.server.DedicatedServer.init(DedicatedServer.java:140) 2012-08-08 13:21:01 [INFO] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:378) 2012-08-08 13:21:01 [INFO] at net.minecraft.server.ThreadServerApplication.run(SourceFile:539) 2012-08-08 13:21:11 [WARNING] [NoLagg TLN] The main thread is still stuck, updated stack trace is: 2012-08-08 13:21:11 [INFO] at com.palmergames.util.FileMgmt.recursiveZipDirectory(Unknown Source) 2012-08-08 13:21:11 [INFO] at com.palmergames.util.FileMgmt.recursiveZipDirectory(Unknown Source) 2012-08-08 13:21:11 [INFO] at com.palmergames.util.FileMgmt.zipDirectories(Unknown Source) 2012-08-08 13:21:11 [INFO] at com.palmergames.bukkit.towny.db.TownySQLSource.backup(Unknown Source) 2012-08-08 13:21:11 [INFO] at com.palmergames.bukkit.towny.object.TownyUniverse.loadSettings(Unknown Source) 2012-08-08 13:21:11 [INFO] at com.palmergames.bukkit.towny.Towny.load(Unknown Source) 2012-08-08 13:21:11 [INFO] at com.palmergames.bukkit.towny.Towny.onEnable(Unknown Source) 2012-08-08 13:21:11 [INFO] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217) 2012-08-08 13:21:11 [INFO] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:365) 2012-08-08 13:21:11 [INFO] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381)
uh?! craftbukkit 1.3.1 with cleaninstall of nolagg
-
View User Profile
-
Send Message
Posted Aug 8, 2012<<reply 857668="">>
open up the PermissionDefaults.yml, contains all the permissions.
<<reply 857646="">>
Add the BKCommonLib included in the download in your plugins folder. Yes, it differs from the one in the test versions.
-
View User Profile
-
Send Message
Posted Aug 7, 2012Is it possible to get a list of all the permissions nodes? I would like some moderators to see the low tick rate nag and have access to /nl stat
thanks
-
View User Profile
-
Send Message
Posted Aug 7, 2012With RB and latest 1.3.1 version of NoLagg i get perma spam
2012-08-08 07:02:35 [SEVERE] Could not pass event ChunkLoadEvent to NoLagg org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:332) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462) at net.minecraft.server.ChunkProviderServer.getChunkAt(ChunkProviderServer.java:100) at com.bergerkiller.bukkit.nolagg.examine.TimedChunkProviderServer.getChunkAt(TimedChunkProviderServer.java:146) at com.bergerkiller.bukkit.nolagg.chunks.ChunkSendQueue.sendBatch(ChunkSendQueue.java:366) at com.bergerkiller.bukkit.nolagg.chunks.ChunkSendQueue.update(ChunkSendQueue.java:338) at com.bergerkiller.bukkit.nolagg.chunks.ChunkSendQueue.update(ChunkSendQueue.java:317) at com.bergerkiller.bukkit.nolagg.chunks.ChunkSendQueue.access$2(ChunkSendQueue.java:274) at com.bergerkiller.bukkit.nolagg.chunks.ChunkSendQueue$1$1.handle(ChunkSendQueue.java:67) at com.bergerkiller.bukkit.common.Operation.doPlayers(Operation.java:57) at com.bergerkiller.bukkit.nolagg.chunks.ChunkSendQueue$1$1.run(ChunkSendQueue.java:64) at com.bergerkiller.bukkit.common.Operation.<init>(Operation.java:27) at com.bergerkiller.bukkit.nolagg.chunks.ChunkSendQueue$1$1.<init>(ChunkSendQueue.java:62) at com.bergerkiller.bukkit.nolagg.chunks.ChunkSendQueue$1.run(ChunkSendQueue.java:62) at com.bergerkiller.bukkit.nolagg.examine.TimedWrapper.run(TimedWrapper.java:27) at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:126) at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:512) at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:212) at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:476) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:408) at net.minecraft.server.ThreadServerApplication.run(SourceFile:539) Caused by: java.lang.NoSuchFieldError: MAIN_THREAD at com.bergerkiller.bukkit.nolagg.threadcheck.ThreadCheck.check(ThreadCheck.java:64) at com.bergerkiller.bukkit.nolagg.threadcheck.Listener.onChunkLoad(Listener.java:88) at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:330) ... 22 more 2012-08-08 07:02:35 [SEVERE] Could not pass event ChunkLoadEvent to NoLagg org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:332) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462) at net.minecraft.server.ChunkProviderServer.getChunkAt(ChunkProviderServer.java:100) at com.bergerkiller.bukkit.nolagg.examine.TimedChunkProviderServer.getChunkAt(TimedChunkProviderServer.java:146) at com.bergerkiller.bukkit.nolagg.chunks.ChunkSendQueue.sendBatch(ChunkSendQueue.java:366) at com.bergerkiller.bukkit.nolagg.chunks.ChunkSendQueue.update(ChunkSendQueue.java:338) at com.bergerkiller.bukkit.nolagg.chunks.ChunkSendQueue.update(ChunkSendQueue.java:317) at com.bergerkiller.bukkit.nolagg.chunks.ChunkSendQueue.access$2(ChunkSendQueue.java:274) at com.bergerkiller.bukkit.nolagg.chunks.ChunkSendQueue$1$1.handle(ChunkSendQueue.java:67) at com.bergerkiller.bukkit.common.Operation.doPlayers(Operation.java:57) at com.bergerkiller.bukkit.nolagg.chunks.ChunkSendQueue$1$1.run(ChunkSendQueue.java:64) at com.bergerkiller.bukkit.common.Operation.<init>(Operation.java:27) at com.bergerkiller.bukkit.nolagg.chunks.ChunkSendQueue$1$1.<init>(ChunkSendQueue.java:62) at com.bergerkiller.bukkit.nolagg.chunks.ChunkSendQueue$1.run(ChunkSendQueue.java:62) at com.bergerkiller.bukkit.nolagg.examine.TimedWrapper.run(TimedWrapper.java:27) [ Read 201325 lines ] ^G Get Help ^O WriteOut ^R Read File ^Y Prev Page ^K Cut Text ^C Cur Pos ^X Exit ^J Justify ^W Where Is ^V Next Page ^U UnCut Text
-
View User Profile
-
Send Message
Posted Aug 7, 2012@bergerkiller
There is a new [dev release](http://dl.bukkit.org/downloads/craftbukkit/view/01335_1.3.1-R1.1/) for CraftBukkit that fixes [that bug](https://bukkit.atlassian.net/browse/BUKKIT-1994) that was causing low tick rates for a lot of people including myself. It should have been fixed in the RB, but it looks like it was not. The RB looks like it was just a dev release to apease the skids, there are a lot of open bug tickets still.
-
View User Profile
-
Send Message
Posted Aug 7, 2012I've been using nolagg for quite a while now. It is doing a great job preventing lag for players on my limited ram yet extremely powerful server. :)
I installed chunky blocks plugin recently to keep loaded my farms and what not, but as far as I can tell it is not working. I thought it may be this after reading about the reducing loaded chunks feature, and when I type /nolagg stats I see that there are 1400 unloadable chunks out of 1900.
I am certain there is nothing wrong with chunky blocks. I spoke to the author and he confirmed theres nothing wrong on his side. I also tried some other plugins and they didn't work either.
If it could be this preventing chunky blocks loading chunks could you tell my what I need to change/disable for it to not prevent it? Thanks
-
View User Profile
-
Send Message
Posted Aug 7, 2012<<reply 857241="">>
Well I uploaded 1..87.1 a few minutes before you responded, so that is why I asked. 1.87 had issues with block updates not getting sent. Chat lag I can't really explain, though. See if configuring the chunk sending rate in the Chunks component helps out. Lowering it definitely reduces network usage, and lets the other packets have more time to be sent. (including chat)
If it is related to the tick rate (warnings related to the tick not having completed in time?), then you are not alone. A lot of people are having problems on the CraftBukkit server. Even without plugins the tick rate is very low, so it must be something internal that can't be prevented...
EDIT < I'm off now, will check tomorrow to see if there's something to respond to...
-
View User Profile
-
Send Message
Posted Aug 7, 2012@bergerkiller
My Players are getting lag by Placing and removing blocks and a little lag on chatting (i was using the latest build from github)
-
View User Profile
-
Send Message
Posted Aug 7, 2012@jsne10
The latest from here: https://github.com/bergerkiller/NoLagg/downloads
v1.87.1
-
View User Profile
-
Send Message
Posted Aug 7, 2012Does the lastest version work with 1.3.1?
-
View User Profile
-
Send Message
Posted Aug 7, 2012I should have never ported the Thread lock notifier over...I knew people would have plugins that take 10 seconds (what, seriously?) to enable a plugin...sigh.
-
View User Profile
-
Send Message
Posted Aug 7, 2012Nevermind, question answered.
2012-08-07 20:33:50 [WARNING] [NoLagg TLN] The main thread failed to respond after 10 seconds
2012-08-07 20:33:50 [WARNING] [NoLagg TLN] What follows is the stack trace of the main thread
2012-08-07 20:33:50 [WARNING] [NoLagg TLN] This stack trace will be further refined as long as the thread is stuck
2012-08-07 20:33:50 [INFO] at java.io.FileInputStream.close0(Native Method)
2012-08-07 20:33:50 [INFO] at java.io.FileInputStream.close(FileInputStream.java:304)
2012-08-07 20:33:50 [INFO] at com.earth2me.essentials.EssentialsConf.load(EssentialsConf.java:76)
2012-08-07 20:33:50 [INFO] at com.earth2me.essentials.Warps.reloadConfig(Warps.java:105)
2012-08-07 20:33:50 [INFO] at com.earth2me.essentials.Warps.<init>(Warps.java:28)
2012-08-07 20:33:50 [INFO] at com.earth2me.essentials.Essentials.onEnable(Essentials.java:173)
2012-08-07 20:33:50 [INFO] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217)
2012-08-07 20:33:50 [INFO] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:365)
2012-08-07 20:33:50 [INFO] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381)
2012-08-07 20:33:50 [INFO] at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:265)
2012-08-07 20:33:50 [INFO] at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:247)
2012-08-07 20:33:50 [INFO] at net.minecraft.server.MinecraftServer.i(MinecraftServer.java:296)
2012-08-07 20:33:50 [INFO] at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:275)
2012-08-07 20:33:50 [INFO] at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:225)
2012-08-07 20:33:50 [INFO] at net.minecraft.server.DedicatedServer.init(DedicatedServer.java:140)
2012-08-07 20:33:50 [INFO] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:376)
2012-08-07 20:33:50 [INFO] at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
-
View User Profile
-
Send Message
Posted Aug 7, 2012<<reply 857165="">>
What version is that what you use? Also, what type of lag? Chat lag? Chunk load lag? Block placement or updating lag?
<<reply 857144="">>
Looks like one plugin takes a bit too long loading up. Nothing bad here, it's simply notifying that the main thread is taking a bit too long to execute the first tick.
-
View User Profile
-
Send Message
Posted Aug 7, 2012@bergerkiller
Dont know if its my config or a plugin that isnt fixed, but when I use nolagg, my players notice the lag, without nolagg, isnt lag (lol) (only in 1.3.1 R1.0 RB, 1.2.5 is fine - I love your plugin, and cant live without this, my VPS would explode)
-
View User Profile
-
Send Message
Posted Aug 7, 2012@bergerkiller with 1.87.1:
-
View User Profile
-
Send Message
Posted Aug 7, 2012<<reply 857092="">>
let me guess...no block updates? Because that is the only thing I've noticed, and what I just...kind of...fixed. Lol.
Anyway, v1.87.1 is up. This will hopefully be the final one for today/this week. This one fixes the non-changing blocks caused by block changes. Of which, it restores WorldEdit/Redstone/Physics etc block changes to it actually DOES update to the clients. Had to do with an added chunk property called 'seenByPlayers' I didn't set to true upon sending the initial chunks. Took me 2 hours to find out...sigh.
-
View User Profile
-
Send Message
Posted Aug 7, 2012I am getting lag with the new update (/nolagg and /mem says 20, but my players says LAAAAAAAAG - And I removed the plugin and no lag) try to fix, thanks! And nice work
-
View User Profile
-
Send Message
Posted Aug 7, 2012<<reply 856800="">>
Add the BKCommonLib v1.23. If you used the test version, STILL UPDATE!
(I even added an extra file stating this...sigh)
-
View User Profile
-
Send Message
Posted Aug 7, 2012My server explodes with the dev version.. http://pastebin.com/3tR4kQiK
-
View User Profile
-
Send Message
Posted Aug 7, 2012<<reply 856728="">>
@austindkelly Yeah I always click the reply button, but it fails. Curse you, curse!