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 9, 2012@zyxep
Nice village. If only I could get the kids that play on my server to be so creative ;)
-
View User Profile
-
Send Message
Posted Aug 9, 2012when e.g. teleported to my shop it took proberly 30 sec to get it fully loaded after 'useDynamicView'
http://cl.ly/image/1J1n443V163D
picture of the load, after 5-10 sec from it was taken the rest got loaded.
-
View User Profile
-
Send Message
Posted Aug 9, 2012<<reply 861507="">>
<<reply 861726="">>
Add the BKCommonLib.jar in the download. It IS needed or it will not work. At all.
-
View User Profile
-
Send Message
Posted Aug 9, 201212:00:40 CONSOLE: [SEVERE] Could not pass event PlayerMoveEvent to NoLagg 12:00:40 CONSOLE: java.lang.NoSuchFieldError: MAIN_THREAD 12:00:40 CONSOLE: java.lang.NoSuchFieldError: MAIN_THREAD 12:00:40 CONSOLE: [SEVERE] Could not pass event PlayerMoveEvent to NoLagg 12:00:40 CONSOLE: [SEVERE] Could not pass event PlayerMoveEvent to NoLagg 12:00:40 CONSOLE: [SEVERE] Could not pass event PlayerMoveEvent to NoLagg 12:00:40 CONSOLE: [SEVERE] Could not pass event PlayerMoveEvent to NoLagg 12:00:40 CONSOLE: [SEVERE] Could not pass event PlayerMoveEvent to NoLagg
^^^ NoLagg Causes major lag
-
View User Profile
-
Send Message
Posted Aug 9, 2012I did use false for dynamic view but still no good. This is the error i get:
2012-08-09 11:10:10 [SEVERE] Could not pass event WorldSaveEvent 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.MinecraftServer.saveChunks(MinecraftServer.java:314) at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:480) 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.onWorldSave(Listener.java:112) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:330) ... 7 more
-
View User Profile
-
Send Message
Posted Aug 9, 2012@bergerkiller
I followed your suggestion and my bad spot has disappeared. I know this isn't conclusive proof of anything, but I thought it might be helpful information.
-
View User Profile
-
Send Message
Posted Aug 9, 2012I have a suspicion it has to do with the dynamic view distance. In the config.yml, set 'useDynamicView' to false. See if that resolves the issue. I've been having these freezes too, where entities simply didn't get pinged and they 'froze'. The dynamic view distance is probably causing unloaded chunks in view of the player...not very useful.
-
View User Profile
-
Send Message
Posted Aug 9, 2012I'm also having issues with 1.87.2. Missing chunks of the world all the way down to the bottom layer of blue. I thought it was a worldedit issue and did a regen on the chunk and it appeared. I go away and come back and it's a hole through the world again.
-
View User Profile
-
Send Message
Posted Aug 9, 2012Seems to be working for me, EXCEPT that it deletes all items. Drops cannot be made. You cannot drop with Q, you cannot mine, nothing.
-
View User Profile
-
Send Message
Posted Aug 9, 2012CHunks dont force load, lag spikes every 20-40 seconds...random freezes...low RAM also.
-
View User Profile
-
Send Message
Posted Aug 8, 2012@bergerkiller
I was the only player on the server. and ya it was like when not all chunks are loaded and you flew in that way you got stuck by a tree e.g. but you can't see it.
after a quit/join it will appear.
-
View User Profile
-
Send Message
Posted Aug 8, 2012-
View User Profile
-
Send Message
Posted Aug 8, 2012hate to say it, but this 1.3.1 release was completely screwed for me. Error messages constantly coming up and caused massive lag and world chunk loading errors. Was fine before hand though so hope it may be working right soon :)
-
View User Profile
-
Send Message
Posted Aug 8, 2012<<reply 859119="">>
Does is stay stuck in that function or was that random? Looks like it is loading a lot of chunks near the player...maybe a lot of players joined or something?
-
View User Profile
-
Send Message
Posted Aug 8, 201220:55:01 [WARNING] [NoLagg TLN] The main thread is still stuck, updated stack trace is: 20:55:01 [INFO] at java.lang.Thread.sleep(Native Method) 20:55:01 [INFO] at net.minecraft.server.DedicatedServer.a(DedicatedServer.java:195) 20:55:01 [INFO] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:436)
-
View User Profile
-
Send Message
Posted Aug 8, 2012Nolagg seems to be lagging:
2012-08-08 18:35:22 [WARNING] [NoLagg TLN] The main thread failed to respond after 10 seconds
2012-08-08 18:35:22 [WARNING] [NoLagg TLN] What follows is the stack trace of the main thread
2012-08-08 18:35:22 [WARNING] [NoLagg TLN] This stack trace will be further refined as long as the thread is stuck
2012-08-08 18:35:22 [INFO] at java.io.RandomAccessFile.read(Native Method)
2012-08-08 18:35:22 [INFO] at java.io.RandomAccessFile.readInt(RandomAccessFile.java:771)
2012-08-08 18:35:22 [INFO] at net.minecraft.server.RegionFile.a(SourceFile:184)
2012-08-08 18:35:22 [INFO] at net.minecraft.server.RegionFileCache.c(SourceFile:91)
2012-08-08 18:35:22 [INFO] at net.minecraft.server.ChunkRegionLoader.a(ChunkRegionLoader.java:46)
2012-08-08 18:35:22 [INFO] at net.minecraft.server.ChunkProviderServer.loadChunk(ChunkProviderServer.java:132)
2012-08-08 18:35:22 [INFO] at com.bergerkiller.bukkit.nolagg.examine.TimedChunkProviderServer.loadChunk(TimedChunkProviderServer.java:96)
2012-08-08 18:35:22 [INFO] at net.minecraft.server.ChunkProviderServer.getChunkAt(ChunkProviderServer.java:76)
2012-08-08 18:35:22 [INFO] at com.bergerkiller.bukkit.nolagg.examine.TimedChunkProviderServer.getChunkAt(TimedChunkProviderServer.java:146)
2012-08-08 18:35:22 [INFO] at com.bergerkiller.bukkit.nolagg.chunks.ChunkSendQueue.sendBatch(ChunkSendQueue.java:366)
2012-08-08 18:35:22 [INFO] at com.bergerkiller.bukkit.nolagg.chunks.ChunkSendQueue.update(ChunkSendQueue.java:338)
2012-08-08 18:35:22 [INFO] at com.bergerkiller.bukkit.nolagg.chunks.ChunkSendQueue.update(ChunkSendQueue.java:317)
2012-08-08 18:35:22 [INFO] at com.bergerkiller.bukkit.nolagg.chunks.ChunkSendQueue.access$2(ChunkSendQueue.java:274)
2012-08-08 18:35:22 [INFO] at com.bergerkiller.bukkit.nolagg.chunks.ChunkSendQueue$1$1.handle(ChunkSendQueue.java:67)
2012-08-08 18:35:22 [INFO] at com.bergerkiller.bukkit.common.Operation.doPlayers(Operation.java:57)
2012-08-08 18:35:22 [INFO] at com.bergerkiller.bukkit.nolagg.chunks.ChunkSendQueue$1$1.run(ChunkSendQueue.java:64)
2012-08-08 18:35:22 [INFO] at com.bergerkiller.bukkit.common.Operation.<init>(Operation.java:27)
2012-08-08 18:35:22 [INFO] at com.bergerkiller.bukkit.nolagg.chunks.ChunkSendQueue$1$1.<init>(ChunkSendQueue.java:62)
2012-08-08 18:35:22 [INFO] at com.bergerkiller.bukkit.nolagg.chunks.ChunkSendQueue$1.run(ChunkSendQueue.java:62)
2012-08-08 18:35:22 [INFO] at com.bergerkiller.bukkit.nolagg.examine.TimedWrapper.run(TimedWrapper.java:27)
2012-08-08 18:35:22 [INFO] at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:126)
2012-08-08 18:35:22 [INFO] at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:512)
2012-08-08 18:35:22 [INFO] at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:212)
2012-08-08 18:35:22 [INFO] at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:476)
2012-08-08 18:35:22 [INFO] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:408)
2012-08-08 18:35:22 [INFO] at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
-
View User Profile
-
Send Message
Posted Aug 8, 2012Hi, thx for great plugin and fast upgrade.
What would you recommend to change in config if my mc server has these specs Intel i7-2600 12GB (allocated to MC alone)
Right now i have 45 active plugins, 2 more will come.
After i added 1.87.2 i don't get any errors in my console, great but when e.g. when i teleport to one of my towns i take longer time to load than without NoLagg, why thats? I plan du have the server limit to 200, and largebiomes.
-
View User Profile
-
Send Message
Posted Aug 8, 2012Hey,
I get this on startup with nolagg 1.87.1:
http://pastebin.com/DFqmrPaH
Not sure what causes it
Hope you can help :)
Thanks!
deathnote1029
-
View User Profile
-
Send Message
Posted Aug 8, 2012<<reply 858178="">>
See the 'IMPORTANT' notice above this page...sigh. Or just intall v1.87.2, I added a check to prevent it logging that message when starting up the server.
<<reply 858179="">>
1.87.1 only works on 1.3.1, not on 1.2.5.
-
View User Profile
-
Send Message
Posted Aug 8, 2012New ver = hundreds of errors:
2012-08-08 13:22:59 [INFO] [NoLagg] Enabling NoLagg v1.87.1
2012-08-08 13:22:59 [SEVERE] [NoLagg Chunks] Failed to enable NoLagg component 'Chunks':
2012-08-08 13:22:59 [SEVERE] java.lang.NoClassDefFoundError net/minecraft/server/ChunkMap
2012-08-08 13:22:59 [SEVERE] at com.bergerkiller.bukkit.nolagg.chunks.ChunkCompressionThread.<init>(ChunkCompressionThread.java:95)
2012-08-08 13:22:59 [SEVERE] at com.bergerkiller.bukkit.nolagg.chunks.ChunkCompressionThread.init(ChunkCompressionThread.java:76)
2012-08-08 13:22:59 [SEVERE] at com.bergerkiller.bukkit.nolagg.chunks.NoLaggChunks.onReload(NoLaggChunks.java:81)
2012-08-08 13:22:59 [SEVERE] at com.bergerkiller.bukkit.nolagg.chunks.NoLaggChunks.onEnable(NoLaggChunks.java:94)
2012-08-08 13:22:59 [SEVERE] at com.bergerkiller.bukkit.nolagg.NoLaggComponent.enable(NoLaggComponent.java:59)
2012-08-08 13:22:59 [SEVERE] at com.bergerkiller.bukkit.nolagg.NoLagg.enable(NoLagg.java:49)
2012-08-08 13:22:59 [SEVERE] at com.bergerkiller.bukkit.common.PluginBase.onEnable(PluginBase.java:179)
2012-08-08 13:22:59 [SEVERE] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:215)
2012-08-08 13:22:59 [SEVERE] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:336)
2012-08-08 13:22:59 [SEVERE] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381)
2012-08-08 13:22:59 [SEVERE] at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:256)
2012-08-08 13:22:59 [SEVERE] at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:238)
2012-08-08 13:22:59 [SEVERE] at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:190)
2012-08-08 13:22:59 [SEVERE] at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigurationManager.java:53)
2012-08-08 13:22:59 [SEVERE] at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:157)
2012-08-08 13:22:59 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:423)
2012-08-08 13:22:59 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
2012-08-08 13:22:59 [SEVERE] Caused by: java.lang.ClassNotFoundException net.minecraft.server.ChunkMap
2012-08-08 13:22:59 [SEVERE] at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
2012-08-08 13:22:59 [SEVERE] at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
2012-08-08 13:22:59 [SEVERE] at java.security.AccessController.doPrivileged(Native Method)
2012-08-08 13:22:59 [SEVERE] at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
2012-08-08 13:22:59 [SEVERE] at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:41)
2012-08-08 13:22:59 [SEVERE] at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29)
2012-08-08 13:22:59 [SEVERE] at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
2012-08-08 13:22:59 [SEVERE] at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
2012-08-08 13:22:59 [SEVERE] ... 17 more
2012-08-08 13:22:59 [SEVERE] java.lang.Exception Field 'x' does not exist in class file 'World'!
2012-08-08 13:22:59 [SEVERE] at com.bergerkiller.bukkit.common.SafeField.<init>(SafeField.java:25)
2012-08-08 13:22:59 [SEVERE] at com.bergerkiller.bukkit.common.WorldListener.<clinit>(WorldListener.java:18)
2012-08-08 13:22:59 [SEVERE] at com.bergerkiller.bukkit.nolagg.itemstacker.StackFormer.init(StackFormer.java:49)
2012-08-08 13:22:59 [SEVERE] at com.bergerkiller.bukkit.nolagg.itemstacker.NoLaggItemStacker.onEnable(NoLaggItemStacker.java:80)
2012-08-08 13:22:59 [SEVERE] at com.bergerkiller.bukkit.nolagg.NoLaggComponent.enable(NoLaggComponent.java:59)
2012-08-08 13:22:59 [SEVERE] at com.bergerkiller.bukkit.nolagg.NoLagg.enable(NoLagg.java:49)
2012-08-08 13:22:59 [SEVERE] at com.bergerkiller.bukkit.common.PluginBase.onEnable(PluginBase.java:179)
2012-08-08 13:22:59 [SEVERE] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:215)
2012-08-08 13:22:59 [SEVERE] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:336)
2012-08-08 13:22:59 [SEVERE] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381)
2012-08-08 13:22:59 [SEVERE] at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:256)
2012-08-08 13:22:59 [SEVERE] at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:238)
2012-08-08 13:22:59 [SEVERE] at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:190)
2012-08-08 13:22:59 [SEVERE] at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigurationManager.java:53)
2012-08-08 13:22:59 [SEVERE] at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:157)
2012-08-08 13:22:59 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:423)
2012-08-08 13:22:59 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
2012-08-08 13:22:59 [WARNING] [NoLagg ItemStacker] Failed to hook into world access listeners, will use a slower alternative!
2012-08-08 13:22:59 [SEVERE] [NoLagg SpawnLimiter] Failed to initialize spawn limiter: could not bind to world entity listener