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 Mar 14, 2012Just installed 1.77 - /lag and /nolagg are no longer sending tick rates to terminal. /nolagg monitor is working
-
View User Profile
-
Send Message
Posted Mar 14, 2012NoLagg and other components version higher then 1.70 don't work on CB1.1-R4 (me need itemstacker but this is no on 1.70)
but i can't to migrate on 1.1-R6 for use the 1.77 because ModloaderMp, Mforge and others don't ported to R6. For all i know
-
View User Profile
-
Send Message
Posted Mar 13, 2012Aha, Berger I'm not sure. Sucks to have to keep up eh?
-
View User Profile
-
Send Message
Posted Mar 13, 2012@bergerkiller
Ok, I did what you told me to modify. Here is my .exam it's only 2400 ticks. 2 min
Also, NoLaggItemStacker is conflicting with ShowCaseStandalone
-
View User Profile
-
Send Message
Posted Mar 13, 2012@slayer1189 Upgrade CB to the latest build (2060 or so)
@Qwahchees Again?! What did he change now... :/
-
View User Profile
-
Send Message
Posted Mar 13, 2012Chunks need to be updated for Orefubscator.
-
View User Profile
-
Send Message
Posted Mar 13, 2012@bergerkiller
hm what do you mean? I have no Problems to look at the file.. but thanks anyway for trying it :)
-
View User Profile
-
Send Message
Posted Mar 12, 2012I am getting an erro when i start the plugin. 2012-03-13 00:52:39 [INFO] This server is running CraftBukkit version git-Bukkit-1.1-R4-b1938jnks (MC: 1.1) (Implementing API version 1.1-R4)
2012-03-13 00:52:39 [INFO] [BKCommonLib] Loading BKCommonLib v1.15.
2012-03-13 00:52:39 [SEVERE] Error occurred while enabling BKCommonLib v1.15 (Is it up to date?): com.bergerkiller.bukkit.common.PluginBase.getName()Ljava/lang/String;
java.lang.NoSuchMethodError: com.bergerkiller.bukkit.common.PluginBase.getName()Ljava/lang/String;
at com.bergerkiller.bukkit.common.PluginBase.onEnable(PluginBase.java:159)
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:230)
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:1057)
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:380)
at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:200)
at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:183)
at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:142)
at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigurationManager.java:52)
at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:151)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:411)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
2012-03-13 00:52:39 [INFO] Preparing level "world"
2012-03-13 00:52:39 [INFO] Default game type: 0
2012-03-13 00:52:39 [INFO] Preparing start region for level 0 (Seed: 7165217543355508739)
2012-03-13 00:52:40 [INFO] Preparing start region for level 1 (Seed: 7947317217589982902)
2012-03-13 00:52:40 [INFO] Preparing spawn area: 53%
2012-03-13 00:52:40 [INFO] Preparing start region for level 2 (Seed: 7947317217589982902)
2012-03-13 00:52:41 [INFO] [NoLaggItemStacker] Loading NoLaggItemStacker v1.0.
2012-03-13 00:52:41 [SEVERE] Error occurred while enabling NoLaggItemStacker v1.0 (Is it up to date?): com.bergerkiller.bukkit.common.PluginBase.getName()Ljava/lang/String;
java.lang.NoSuchMethodError: com.bergerkiller.bukkit.common.PluginBase.getName()Ljava/lang/String;
at com.bergerkiller.bukkit.common.PluginBase.onEnable(PluginBase.java:159)
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:230)
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:1057)
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:380)
at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:200)
at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:183)
at net.minecraft.server.MinecraftServer.t(MinecraftServer.java:360)
at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:347)
at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:178)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:411)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
-
View User Profile
-
Send Message
Posted Mar 12, 2012Works Fantastic on 1.2.3 Thank you so much for updating this!! It was seriously a Server-Saver
-
View User Profile
-
Send Message
Posted Mar 12, 2012@Killer_Klownz That file is huge O_o Hope my prog can handle it...that's quite a lot of lines...
I do recommend examining smaller time spans, for example, examine 2 minutes or so...
@mcheaven Tried to look at the file, but it ended up in an end of file exception...no idea why. Hope the file didn't get damaged...
EDIT
Ugh I am adding compression in the next update; the size of these files are ridiculous. And most of it is 0 bytes...
EDIT
Ok it managed to open the 12 mb log (wow!) and straight away I noticed the chunk update task of the main NoLagg taking the longest. You may wish to increase the update interval of NoLagg or disable spawn limits if you have that enabled.
-
View User Profile
-
Send Message
Posted Mar 12, 2012@bergerkiller
Can you take a look at my .exam and tell me if it's good or not?
-
View User Profile
-
Send Message
Posted Mar 12, 2012@berkerkiller hmm something is wrong with my server I have very great tick lag and it seems to be caused by every plugin O.o (I used your nice examviewer). Info: This server is running CraftBukkit version git-Bukkit-1.2.3-R0.2-b2060jnks (MC: 1.2.3) (Implementing API version 1.2.3-R0.2)
can you please help me out? :/ here is the .exam
ok basically its caused by residence I guess but the other plugins are not that good too
-
View User Profile
-
Send Message
Posted Mar 11, 2012@bergerkiller
I would like you to know that with nolagg.jar, the command /lag doesn't work. Without nolagg.jar, /lag works.
-
View User Profile
-
Send Message
Posted Mar 11, 2012@luna0316 Mmhh strange, DynMap is loading a chunk from another thread?! Didn't expect them to do that...
Please report it to the DynMap crew immediately, considering the amount of people that use it, this is a quite severe bug...
-
View User Profile
-
Send Message
Posted Mar 11, 2012Get this issues using craftbukkit 2034 dynmap .34 nolagg 1.76(and the whole suite of 1.01 addons) obfucator 1.4.1-beta8 with worldguard/edit 5.2 commandbook 2.0 worldportal, and zperms
11:17:31 [WARNING] Could not properly handle event CHUNK_LOAD: java.lang.IllegalAccessError: Synchronized code got accessed from another thread : java.util.concurrent.ThreadPoolExecutor$Worker at org.bukkit.event.Listener.onChunkLoad(Listener:0) at sun.reflect.GeneratedMethodAccessor1.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.ja va:301) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav a:62) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j ava:441) at net.minecraft.server.ChunkProviderServer.getChunkAt(ChunkProviderServ er.java:103) at org.bukkit.craftbukkit.CraftWorld.getChunkAt(CraftWorld.java:117) at org.bukkit.craftbukkit.CraftWorld.getBlockAt(CraftWorld.java:81) at org.dynmap.bukkit.BukkitWorld.getLightLevel(BukkitWorld.java:59) at org.dynmap.ClientUpdateComponent.buildClientUpdate(ClientUpdateCompon ent.java:52) at org.dynmap.ClientUpdateComponent$1.triggered(ClientUpdateComponent.ja va:18) at org.dynmap.ClientUpdateComponent$1.triggered(ClientUpdateComponent.ja va:15) at org.dynmap.Event.trigger(Event.java:29) at org.dynmap.Events.trigger(Events.java:35) at org.dynmap.JsonFileClientUpdateComponent.writeUpdates(JsonFileClientU pdateComponent.java:155) at org.dynmap.JsonFileClientUpdateComponent$1.run(JsonFileClientUpdateCo mponent.java:58) at org.dynmap.MapManager$DynmapScheduledThreadPoolExecutor$2.run(MapMana ger.java:198) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask. access$201(Unknown Source) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask. run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) 11:17:31 [INFO] This error is logged only once: it could have occurred multiple times by now.
-
View User Profile
-
Send Message
Posted Mar 11, 2012@bergerkiller
There isn't an option to disable the buffered packet loader in 1.77.
-
View User Profile
-
Send Message
Posted Mar 11, 2012@Darkhand81 No more plugins because I also have to attend School..yaknow..learning? Spending too much time on this can cause more trouble IRL Surely I will publish more plugins once schools' over (not too long)
Uploaded version 1.77. I added an option to disable buffered packet creation in NoLaggChunks to make it compatible with ANY packet-listening-based plugin. See the updated config.yml generated by the plugin.
The examiner viewer is improved and the file name is fixed.
The NoLagg.jar now has a performance boost; improved the way it checked if a player was near a chunk. It now looks in one single map, which is significantly faster than looping through all players.
If you have issues with 'Raw critics ore obfuscator for 1.2', disable the Buffered packet loader in NoLaggChunks' config.yml.
-
View User Profile
-
Send Message
Posted Mar 10, 2012@Darkhand81
yes it works for me...no error with orebfuscator or whatsoever...
-
View User Profile
-
Send Message
Posted Mar 10, 2012So is the chunk unload feature working again as of build 2041, now that your bug report has been fixed?
Also, I wonder as well, why no more plugins?
-
View User Profile
-
Send Message
Posted Mar 10, 2012I'm using latest version, although you say it's compatible with Orebfuscator, your plugin still complains that it's not:
09:42:45 [SEVERE] [NoLaggChunks] An error occured in Orebfuscator: support for this plugin had to be removed! 09:42:45 [SEVERE] java.lang.NoClassDefFoundError: lishid/orebfuscator/utils/Calculations 09:42:45 [SEVERE] at com.bergerkiller.bukkit.nolagg.chunks.ChunkCompressionThread.getCompressedPacket(ChunkCompressionThread.java:211) 09:42:45 [SEVERE] at com.bergerkiller.bukkit.nolagg.chunks.ChunkCompressionThread.run(ChunkCompressionThread.java:238) 09:42:45 [SEVERE] [NoLaggChunks] An error occured in Orebfuscator: support for this plugin had to be removed! 09:42:45 [SEVERE] at com.bergerkiller.bukkit.common.AsyncTask$1.run(AsyncTask.java:20) 09:42:45 [SEVERE] Caused by: java.lang.ClassNotFoundException: lishid.orebfuscator.utils.Calculations 09:42:45 [SEVERE] at java.net.URLClassLoader$1.run(URLClassLoader.java:202) 09:42:45 [SEVERE] [NoLaggChunks] An error occured in Orebfuscator: support for this plugin had to be removed! 09:42:45 [SEVERE] at java.security.AccessController.doPrivileged(Native Method) 09:42:45 [SEVERE] at java.net.URLClassLoader.findClass(URLClassLoader.java:190) 09:42:45 [SEVERE] at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:41) 09:42:45 [SEVERE] at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29) 09:42:45 [SEVERE] [NoLaggChunks] An error occured in Orebfuscator: support for this plugin had to be removed! 09:42:45 [SEVERE] at java.lang.ClassLoader.loadClass(ClassLoader.java:306) 09:42:45 [SEVERE] at java.lang.ClassLoader.loadClass(ClassLoader.java:247) 09:42:45 [SEVERE] ... 3 more 09:42:45 [SEVERE] java.lang.NoClassDefFoundError: lishid/orebfuscator/utils/Calculations 09:42:45 [SEVERE] at com.bergerkiller.bukkit.nolagg.chunks.ChunkCompressionThread.getCompressedPacket(ChunkCompressionThread.java:211) 09:42:45 [SEVERE] at com.bergerkiller.bukkit.nolagg.chunks.ChunkCompressionThread.run(ChunkCompressionThread.java:238) 09:42:45 [SEVERE] at com.bergerkiller.bukkit.common.AsyncTask$1.run(AsyncTask.java:20) 09:42:45 [SEVERE] java.lang.NoClassDefFoundError: lishid/orebfuscator/utils/Calculations 09:42:45 [SEVERE] at com.bergerkiller.bukkit.nolagg.chunks.ChunkCompressionThread.getCompressedPacket(ChunkCompressionThread.java:211) 09:42:45 [SEVERE] at com.bergerkiller.bukkit.nolagg.chunks.ChunkCompressionThread.run(ChunkCompressionThread.java:238) 09:42:45 [SEVERE] at com.bergerkiller.bukkit.common.AsyncTask$1.run(AsyncTask.java:20) 09:42:45 [SEVERE] java.lang.NoClassDefFoundError: lishid/orebfuscator/utils/Calculations 09:42:45 [SEVERE] at com.bergerkiller.bukkit.nolagg.chunks.ChunkCompressionThread.getCompressedPacket(ChunkCompressionThread.java:211) 09:42:45 [SEVERE] at com.bergerkiller.bukkit.nolagg.chunks.ChunkCompressionThread.run(ChunkCompressionThread.java:238) 09:42:45 [SEVERE] at com.bergerkiller.bukkit.common.AsyncTask$1.run(AsyncTask.java:20)