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 15, 20122012-08-15 12:28:08 [INFO] This server is running CraftBukkit version git-Bukkit-1.3.1-R1.0-b2320jnks (MC: 1.3.1) (Implementing API version 1.3.1-R1.0) 2012-08-15 12:28:09 [SEVERE] Could not load 'plugins\NoLagg.jar' in folder 'plugins' org.bukkit.plugin.UnknownDependencyException: BKCommonLib at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:195) at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:222) at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:198) at net.minecraft.server.ServerConfigurationManagerAbstract.<init>(ServerConfigurationManagerAbstract.java:50) at net.minecraft.server.ServerConfigurationManager.<init>(SourceFile:11) at net.minecraft.server.DedicatedServer.init(DedicatedServer.java:105) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:380) at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
-
View User Profile
-
Send Message
Posted Aug 15, 2012nolagg is not loading
-
View User Profile
-
Send Message
Posted Aug 14, 2012@lithium210
When it works - it helps all servers :), but befor you go ahead and put this on... make sure ur ready to bug test cause at the moment this plugin isnt working like it should do.
-
View User Profile
-
Send Message
Posted Aug 14, 2012Do you recommend nolagg for a small server? 15 players max but about 7-8 on at a time.
-
View User Profile
-
Send Message
Posted Aug 14, 2012Chunk Buffering is broken on this, whenever I enable it in the config my server spawns as a giant void & chunks aren't loading correctly for anyone. When I disable chunk buffering the server functions as normal again (With all other NoLagg functions enabled).
-
View User Profile
-
Send Message
Posted Aug 14, 2012@Varlonec
Im No expert but im pretty sure you need this, BKCommonLib for no lagg to work and that that is the problem
-
View User Profile
-
Send Message
Posted Aug 14, 2012I get these errors (top 2 when starting up and bottom 1 when shutting server down)
I only have nolagg examine and tnt enabled.
http://pastebin.com/raw.php?i=Vk34yLsJ
-
View User Profile
-
Send Message
Posted Aug 14, 201213:54:39 [INFO] This server is running CraftBukkit version git-Bukkit-1.3.1-R1.0 -b2320jnks (MC: 1.3.1) (Implementing API version 1.3.1-R1.0) 13:54:39 [SEVERE] Could not load 'plugins\NoLagg.jar' in folder 'plugins' org.bukkit.plugin.UnknownDependencyException: BKCommonLib at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager .java:195) at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:222) at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:198) at net.minecraft.server.ServerConfigurationManagerAbstract.<init>(Server ConfigurationManagerAbstract.java:50) at net.minecraft.server.ServerConfigurationManager.<init>(SourceFile:11)
at net.minecraft.server.DedicatedServer.init(DedicatedServer.java:105) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:380) at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
-
View User Profile
-
Send Message
Posted Aug 13, 2012/nolagg stats and /nolagg monitor give me an "Unknown sub-command". The corresponding modules SHOULD be enabled in the config. Anyone have an idea what causes this?
-
View User Profile
-
Send Message
Posted Aug 13, 2012@FlashIT Me to I got the some error.
-
View User Profile
-
Send Message
Posted Aug 13, 2012Remember guys if you have an error in console be sure to create a ticket at the top right of the screen. These comments don't always get read and get missed - the ticket system will get your error seen & maybe faster. PS only use this plugin if you want to bug test and post tickets of errors cause atm there is no stable version. I hope nolagg gets fixed cause when it worked it worked flawlessly and one of the best plugins around!
-
View User Profile
-
Send Message
Posted Aug 13, 2012The problem with the missing chunks is definitely the "chunks: enabled: true" feature. We've just disabled everything else and still have the same chunk on spawn missing. Disabling NoLagg completely fixes this.
-
View User Profile
-
Send Message
Posted Aug 13, 2012What exactly save the mini-save function? because my server crashed and i've lost 30 minutes of changes, world modifications, invertories of all players...
So nothing has been saved.
-
View User Profile
-
Send Message
Posted Aug 12, 2012im getting the same exact error. craftbukkit 2329
-
View User Profile
-
Send Message
Posted Aug 12, 2012@deathnote1029
Yeah, I'm getting the same error. This makes nolagg unusable, because even if most of the time it helps prevent lag, when it has the error, it CAUSES huge lag.
pasting the error again, for the dev's reference: http://pastebin.com/XWhNmSi2
-
View User Profile
-
Send Message
Posted Aug 12, 2012@Underbalanced
Seems like actually its both no lagg and survival games causing issues, removed one, still issue, than other, still issue, removed both and wala!
-
View User Profile
-
Send Message
Posted Aug 12, 2012I'm also getting chunk errors and scheduler errors.
Issues with craftbukkit and with survival games.
Log One
Log Part Two
-
View User Profile
-
Send Message
Posted Aug 12, 2012Same problem with chunks. Having dead chunks...
+ it seems this Nolagg plugin makes more laggs... No offence, but something is wrong.
-
View User Profile
-
Send Message
Posted Aug 12, 2012i've got this error with your plugin :(
Can you figure out what the problem is?
12.08 22:23:50 [Server] INFO at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:408)
12.08 22:23:50 [Server] INFO at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:476)
12.08 22:23:50 [Server] INFO at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:212)
12.08 22:23:50 [Server] INFO at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:512)
12.08 22:23:50 [Server] INFO at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:126)
12.08 22:23:50 [Server] INFO at com.bergerkiller.bukkit.nolagg.examine.TimedWrapper.run(TimedWrapper.java:27)
12.08 22:23:50 [Server] INFO at com.thevoxelbox.voxelupdate.UpdateRunner.run(UpdateRunner.java:27)
12.08 22:23:50 [Server] INFO at com.thevoxelbox.voxelupdate.UpdateManager.needsUpdate(UpdateManager.java:45)
12.08 22:23:50 [Server] INFO at com.thevoxelbox.voxelupdate.UpdateManager.readData(UpdateManager.java:237)
12.08 22:23:50 [Server] INFO at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:205)
12.08 22:23:50 [Server] INFO at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:288)
12.08 22:23:50 [Server] INFO at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:239)
12.08 22:23:50 [Server] INFO at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:123)
12.08 22:23:50 [Server] INFO at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:748)
12.08 22:23:50 [Server] INFO at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:819)
12.08 22:23:50 [Server] INFO at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:488)
12.08 22:23:50 [Server] INFO at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:625)
12.08 22:23:50 [Server] INFO at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:978)
12.08 22:23:50 [Server] INFO at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.next(XMLDocumentScannerImpl.java:1065)
12.08 22:23:50 [Server] WARNING [NoLagg TLN] The main thread is still stuck, updated stack trace is:
12.08 22:23:40 [Server] INFO at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:408)
12.08 22:23:40 [Server] INFO at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:476)
12.08 22:23:40 [Server] INFO at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:212)
12.08 22:23:40 [Server] INFO at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:512)
12.08 22:23:40 [Server] INFO at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:126)
12.08 22:23:40 [Server] INFO at com.bergerkiller.bukkit.nolagg.examine.TimedWrapper.run(TimedWrapper.java:27)
12.08 22:23:40 [Server] INFO at com.thevoxelbox.voxelupdate.UpdateRunner.run(UpdateRunner.java:27)
12.08 22:23:40 [Server] INFO at com.thevoxelbox.voxelupdate.UpdateManager.needsUpdate(UpdateManager.java:45)
12.08 22:23:40 [Server] INFO at com.thevoxelbox.voxelupdate.UpdateManager.readData(UpdateManager.java:237)
12.08 22:23:40 [Server] INFO at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:205)
12.08 22:23:40 [Server] INFO at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:288)
12.08 22:23:40 [Server] INFO at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:239)
12.08 22:23:40 [Server] INFO at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:123)
12.08 22:23:40 [Server] INFO at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:748)
12.08 22:23:40 [Server] INFO at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:819)
12.08 22:23:40 [Server] INFO at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:488)
12.08 22:23:40 [Server] INFO at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:625)
12.08 22:23:40 [Server] INFO at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:978)
12.08 22:23:40 [Server] INFO at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.next(XMLDocumentScannerImpl.java:1065)
12.08 22:23:40 [Server] INFO at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.dispatch(XMLDocumentScannerImpl.java:1169)
12.08 22:23:40 [Server] INFO at com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.setInputSource(XMLDTDScannerImpl.java:260)
12.08 22:23:40 [Server] INFO at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startDTDEntity(XMLEntityManager.java:1259)
12.08 22:23:40 [Server] INFO at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity(XMLEntityManager.java:1292)
12.08 22:23:40 [Server] INFO at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:654)
12.08 22:23:40 [Server] INFO at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1162)
12.08 22:23:40 [Server] INFO at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:633)
12.08 22:23:40 [Server] INFO at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:688)
12.08 22:23:40 [Server] INFO at java.io.BufferedInputStream.read(BufferedInputStream.java:334)
12.08 22:23:40 [Server] INFO at java.io.BufferedInputStream.read1(BufferedInputStream.java:275)
12.08 22:23:40 [Server] INFO at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
12.08 22:23:40 [Server] INFO at java.net.SocketInputStream.read(SocketInputStream.java:146)
12.08 22:23:40 [Server] INFO at java.net.SocketInputStream.socketRead0(Native Method)
12.08 22:23:40 [Server] WARNING [NoLagg TLN] The main thread is still stuck, updated stack trace is:
12.08 22:23:30 [Server] INFO at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
12.08 22:23:30 [Server] INFO at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:408)
12.08 22:23:30 [Server] INFO at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:476)
12.08 22:23:30 [Server] INFO at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:212)
12.08 22:23:30 [Server] INFO at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:512)
12.08 22:23:30 [Server] INFO at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:126)
12.08 22:23:30 [Server] INFO at com.bergerkiller.bukkit.nolagg.examine.TimedWrapper.run(TimedWrapper.java:27)
12.08 22:23:30 [Server] INFO at com.thevoxelbox.voxelupdate.UpdateRunner.run(UpdateRunner.java:27)
12.08 22:23:30 [Server] INFO at com.thevoxelbox.voxelupdate.UpdateManager.needsUpdate(UpdateManager.java:45)
12.08 22:23:30 [Server] INFO at com.thevoxelbox.voxelupdate.UpdateManager.readData(UpdateManager.java:237)
12.08 22:23:30 [Server] INFO at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:205)
12.08 22:23:30 [Server] INFO at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:288)
12.08 22:23:30 [Server] INFO at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:239)
12.08 22:23:30 [Server] INFO at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:123)
12.08 22:23:30 [Server] INFO at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:748)
12.08 22:23:30 [Server] INFO at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:819)
12.08 22:23:30 [Server] INFO at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:488)
12.08 22:23:30 [Server] INFO at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:625)
12.08 22:23:30 [Server] INFO at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:978)
12.08 22:23:30 [Server] INFO at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.next(XMLDocumentScannerImpl.java:1065)
12.08 22:23:30 [Server] INFO at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.dispatch(XMLDocumentScannerImpl.java:1169)
12.08 22:23:30 [Server] INFO at com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.setInputSource(XMLDTDScannerImpl.java:260)
12.08 22:23:30 [Server] INFO at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startDTDEntity(XMLEntityManager.java:1259)
12.08 22:23:30 [Server] INFO at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity(XMLEntityManager.java:1292)
12.08 22:23:30 [Server] INFO at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:654)
12.08 22:23:30 [Server] INFO at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1162)
12.08 22:23:30 [Server] INFO at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:633)
12.08 22:23:30 [Server] INFO at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:688)
12.08 22:23:30 [Server] INFO at java.io.BufferedInputStream.read(BufferedInputStream.java:334)
12.08 22:23:30 [Server] INFO at java.io.BufferedInputStream.read1(BufferedInputStream.java:275)
12.08 22:23:30 [Server] INFO at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
12.08 22:23:30 [Server] INFO at java.net.SocketInputStream.read(SocketInputStream.java:146)
12.08 22:23:30 [Server] INFO at java.net.SocketInputStream.socketRead0(Native Method)
12.08 22:23:30 [Server] WARNING [NoLagg TLN] This stack trace will be further refined as long as the thread is stuck
12.08 22:23:30 [Server] WARNING [NoLagg TLN] What follows is the stack trace of the main thread
12.08 22:23:30 [Server] WARNING [NoLagg TLN] The main thread failed to respond after 10 seconds
-
View User Profile
-
Send Message
Posted Aug 12, 2012Please update Nolagg Because dont works with 1.3.1