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 Oct 1, 2012Hi, I used this plugin for a while during 1.2, and it was a godsend. It cut lag in half. Literally. However I just trialed it on my server a few minutes ago (I run a 10 slot server over a connection rated for half a slot, yes I know it's stupid, but it works.) and it pushed the bandwidth usage up to full constantly. Without the plugin, I'm averaging up to 10KB with people standing still or walking around inside one chunk, with quick jumps up to the full 70KB when they move. (I'm measuring in KB and not Kb because that's how GKrellM works.) Perhaps the plugin is re-sending chunk data unnecessarily? It'd be great to have a fix, since this was a good plugin. -CarrotPCdude.
-
View User Profile
-
Send Message
Posted Oct 1, 2012@gabizou
I'm also getting this.
On another note the plugin doesnt seem to be compatible with the newest version of ShowCaseStandalone.
-
View User Profile
-
Send Message
Posted Oct 1, 2012@gabizou
Experiencing the same thing. Pretty rare however.
@thoosequa
probably outdated BKCommonLib.
@TheMimey
Definetly outdated BKCommonLib. (out ouf your errorreport: BKCommonLib v.1.24)
-
View User Profile
-
Send Message
Posted Oct 1, 2012Nolaggs Issues: - Spawn Limiter Down - Often crashes:
Description: Exception in server tick loop
http://pastie.org/4892422
-
View User Profile
-
Send Message
Posted Oct 1, 2012NoLagg broke for us completly upon the newest bukkit version. It says it is monitoring the server but it is not sending the player any information and /nolagg fix just throws a nullpointer and an internal exception. Easy to recreate
-
View User Profile
-
Send Message
Posted Oct 1, 2012@ZeEye
Nolaggs mob limiter doesnt work
-
View User Profile
-
Send Message
Posted Oct 1, 2012I'm getting random chunks not loading when teleporting to players or players being teleported across the map with portals. This issue doesn't happen when walking. I presume it's more of an issue on loading chunks immediately around a player on teleport.
Running NoLagg 1.88.5 and BKCommonLib 1.29 and CraftBukkit 1.3.2-R1.0
-
View User Profile
-
Send Message
Posted Oct 1, 2012@bergerkiller
But why does it create more than 1000 monsters from time to time then?
-
View User Profile
-
Send Message
Posted Oct 1, 2012@ZeEye Maybe there are a lot of animals on the server? You could add certain mobs to the removal list that you don't want to be persistent anyhow, like cows and chickens.
@TheMimey Use the test build version<sub>,I'll post it again (like I did in the PM)</sub>
https:dl.dropbox.com/u/3681706/NoLagg%20v1.88.6%20test.zip
-
View User Profile
-
Send Message
Posted Oct 1, 201212:30:06 PM Citizens: Loaded 21 NPCs (21 spawned). 12:30:06 PM Citizens: Metrics started. 12:30:06 PM CONSOLE: [INFO] /88.89.9.170:13764 lost connection 12:30:06 PM CONSOLE: [INFO] /110.174.89.32:61682 lost connection 12:30:06 PM CONSOLE: [INFO] /72.93.10.82:54253 lost connection 12:30:06 PM CONSOLE: [SEVERE] java.lang.ClassCastException: com.bergerkiller.bukkit.nolagg.spawnlimiter.EntityWorldWatcher cannot be cast to net.minecraft.server.WorldManager 12:30:06 PM CONSOLE: [SEVERE] at net.minecraft.server.World.makeSound(World.java:769) 12:30:06 PM CONSOLE: [SEVERE] at net.minecraft.server.Entity.h_(Entity.java:216) 12:30:06 PM CONSOLE: [SEVERE] at net.minecraft.server.EntityItem.h_(EntityItem.java:49) 12:30:06 PM CONSOLE: [SEVERE] at net.minecraft.server.Entity.z(Entity.java:254) 12:30:06 PM CONSOLE: [SEVERE] at net.minecraft.server.World.entityJoinedWorld(World.java:1245) 12:30:06 PM CONSOLE: [SEVERE] at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:511) 12:30:06 PM CONSOLE: [SEVERE] at net.minecraft.server.World.playerJoinedWorld(World.java:1227) 12:30:06 PM CONSOLE: [SEVERE] at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:563) 12:30:06 PM CONSOLE: [SEVERE] at net.minecraft.server.World.tickEntities(World.java:1125) 12:30:06 PM CONSOLE: [SEVERE] at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:213) 12:30:06 PM CONSOLE: [SEVERE] at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:473) 12:30:06 PM CONSOLE: [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:539) 12:30:06 PM CONSOLE: [SEVERE] at net.minecraft.server.WorldServer.tickEntities(WorldServer.java:428) 12:30:06 PM CONSOLE: [SEVERE] Encountered an unexpected exception ClassCastException 12:30:06 PM CONSOLE: cannot be cast to net.minecraft.server.WorldManager 12:30:06 PM CONSOLE: [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:405) 12:30:06 PM CONSOLE: [SEVERE] This crash report has been saved to: /home/minecraft/Minecraft/./crash-reports/crash-2012-10-01_03.29.26-server.txt 12:30:24 PM CONSOLE: [SEVERE] java.lang.StringIndexOutOfBoundsException: String index out of range: -1 12:30:24 PM CONSOLE: [SEVERE] at java.lang.String.substring(String.java:1949) 12:30:24 PM CONSOLE: [SEVERE] at com.bergerkiller.bukkit.nolagg.NoLaggUtil.findPlugins(NoLaggUtil.java:70) 12:30:24 PM CONSOLE: [SEVERE] at com.bergerkiller.bukkit.nolagg.NoLaggUtil.findPlugins(NoLaggUtil.java:61) 12:30:24 PM CONSOLE: [SEVERE] at com.bergerkiller.bukkit.nolagg.threadlocknotifier.ThreadLockChecker.run(ThreadLockChecker.java:80) 12:30:24 PM CONSOLE: [SEVERE] at com.bergerkiller.bukkit.common.AsyncTask$1.run(AsyncTask.java:20)
-
View User Profile
-
Send Message
Posted Sep 30, 2012About the testbuild: I still can't limit mobs. I still have about 1500-2000 mobs with this settings.
What is my mistake?
-
View User Profile
-
Send Message
Posted Sep 30, 2012@ZeEye Aha! So that wasn't fixed. I'll have to change a few things then. Probably has to do with how a separate thread marks the item as 'dead', it probably has a synch problem along the way somewhere. Like partially removed.
-
View User Profile
-
Send Message
Posted Sep 30, 2012Oh god thanks :) This helps our server a lot. Awesome.
EDIT: Encountered another bug with itemstacker. If you produce many items at once (like harvesting wheat) it leaves ghosts of some items. Meaning you already picked the item up but still can see it laying on the ground. If you drop the same item on top it stacks and if you pick up the ghost is gone.
Increasing/Decreasing the tick interval doesn't help. Disabling the feature does. Newest BKCommonLib 1.29 & Bukkit 1.3.2 R1.0.
-
View User Profile
-
Send Message
Posted Sep 30, 2012@ZeEye Mhh never thought of that, good idea if I add some better parsing for it. Will add that in a few hours, got to go unfortunately.
The chunk sending problem was fixed for a while, but the entire system is a bit sensitive. I'll do the nether check when I get back to see how well it works/what needs fixing.
-
View User Profile
-
Send Message
Posted Sep 30, 2012Ah very nice, thanks for the test build.
I also encountered a little problem with the new chunk sending. If i enable it ppl get stuck in the block below them after using a netherportal. In most cases they can get out through spamming jump+forward but sometimes they seem to be in the void and can't get out.
minRate: 0.5 maxRate: 0.9
Increasing both doesn't really help either. Disabling the feature fixes this.
And a last question about the clear command: Any way to clear only certein items? tried /nolagg clear itemdoor but it deletes every item. (Kinda need on a hardmode zombie server with many doors)
-
View User Profile
-
Send Message
Posted Sep 30, 2012@ZeEye Well I changed it in the last build because people didn't want to lose their animals. It only cancels 'newly spawned' entities. This means that when chunks load with a lot of monsters in them, they are not deleted, and thus the spawned count will be more than the limit. It does prevent the spawning of new monsters, though.
The next version will change this, though. I made it configurable:
https:dl.dropbox.com/u/3681706/NoLagg%20v1.88.6%20test.zip
This is the latest test build for 1.3.2 R1.0. I added ways to remove already spawned entities from the world. It contains a list of entity type or group names the spawn limiter will remove from loaded chunks. If a certain entity is in this list, it will be removed when added to the world through a chunk load. This allows you to accurately 'force' a limit. If you had monsters somewhere they can be removed then, though.
-
View User Profile
-
Send Message
Posted Sep 30, 2012Hi there,
how excactly does the spawn limiting work? it seems like no matter which limits i set, its still the same amount of monsters in the world. I have lots of spawners in the world, is that the problem? That they keep spawning no matter what?
-
View User Profile
-
Send Message
Posted Sep 30, 2012My god people..use friggen pastebin. NOW. I am tired of seeing these huge-ass comments all the time. If you want your bug known, please pastebin it. Your comment will end up on page 2 and I'll never see it then. Thank you.
And MyWorlds/BKCommonLib has been updated, NoLagg is next.
For those having problems: USE BKCOMMONLIB. IT HAS A PAGE NOW. UPDATE TO THE LATEST BUILD TO REMAIN COMPATIBLE. Yes, all of the errors posted below are related to people not reading a huge banner on the download page. Please be a bit witty people...
The only compat. problems with 1.3.2 R1.0 <> NoLagg right now is the getChunk in nms that became deprecated. I have seen no other problems on my server. But I have to add some other stuff, too, that was requested.
-
View User Profile
-
Send Message
Posted Sep 30, 2012NOT COMPATIBLE with latest stable build of CB :((
2012-09-30 13:23:36 [INFO] [NoLagg] Enabling NoLagg v1.88.5
2012-09-30 13:23:36 [SEVERE] [NoLagg Examine] Failed to enable NoLagg component 'Examine':
2012-09-30 13:23:36 [SEVERE] java.lang.NoClassDefFoundError: com/bergerkiller/bukkit/common/reflection/classes/CraftSchedulerRef
-
View User Profile
-
Send Message
Posted Sep 30, 2012oh no.. crashed again... WTH, latest build
2012-09-30 01:10:06 [SEVERE] Could not pass event WorldInitEvent to NoLagg
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:335)
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 org.bukkit.craftbukkit.CraftServer.createWorld(CraftServer.java:699)
at org.bukkit.Bukkit.createWorld(Bukkit.java:155)
at org.bukkit.WorldCreator.createWorld(WorldCreator.java:235)
at com.onarandombox.MultiverseCore.utils.WorldManager.doLoad(WorldManager.java:392)
at com.onarandombox.MultiverseCore.utils.WorldManager.doLoad(WorldManager.java:373)
at com.onarandombox.MultiverseCore.utils.WorldManager.doLoad(WorldManager.java:359)
at com.onarandombox.MultiverseCore.utils.WorldManager.loadWorlds(WorldManager.java:639)
at com.onarandombox.MultiverseCore.MultiverseCore.onEnable(MultiverseCore.java:296)
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217)
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:368)
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381)
at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:265)
at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:247)
at net.minecraft.server.MinecraftServer.i(MinecraftServer.java:296)
at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:275)
at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:225)
at net.minecraft.server.DedicatedServer.init(DedicatedServer.java:140)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:378)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.bergerkiller.bukkit.nolagg.examine.PluginLogger
at net.timedminecraft.server.TimedChunkProviderServer.<init>(TimedChunkProviderServer.java:60)
at net.timedminecraft.server.TimedChunkProviderServer.convert(TimedChunkProviderServer.java:43)
at net.timedminecraft.server.TimedChunkProviderServer.convert(TimedChunkProviderServer.java:39)
at com.bergerkiller.bukkit.nolagg.examine.NLEListener.onWorldInit(NLEListener.java:14)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
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:333)
... 22 more