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 Sep 29, 2012Hi, I´m also have the item drop bug. But I have this bug only in one world, all other worlds are without problems.
I´m using ShowcaseStandalone, an they are in the world with the Bug.
-
View User Profile
-
Send Message
Posted Sep 29, 2012I would recommend waiting for the new nolagg, dont use this with the latest 1.3.2 RB having some major chunk problems right now, hoping a restart + removal of nolagg fixes ._.
-
View User Profile
-
Send Message
Posted Sep 29, 2012please make this work for tekkit
I have tryed every version from 1.2.3 to 1.3.2
and i awlys get this error :|
12:37:24 [SEVERE] java.lang.Exception: Field 'x' does not exist in class file 'W orld'! 12:37:24 [SEVERE] at com.bergerkiller.bukkit.common.SafeField.<init>(SafeF ield.java:25) 12:37:24 [SEVERE] at com.bergerkiller.bukkit.common.WorldListener.<clinit> (WorldListener.java:18) 12:37:24 [SEVERE] at com.bergerkiller.bukkit.nolagg.itemstacker.StackForme r.init(StackFormer.java:49) 12:37:24 [SEVERE] at com.bergerkiller.bukkit.nolagg.itemstacker.NoLaggItem Stacker.onEnable(NoLaggItemStacker.java:80) 12:37:24 [SEVERE] at com.bergerkiller.bukkit.nolagg.NoLaggComponent.enable (NoLaggComponent.java:59) 12:37:24 [SEVERE] at com.bergerkiller.bukkit.nolagg.NoLagg.enable(NoLagg.j ava:49) 12:37:24 [SEVERE] at com.bergerkiller.bukkit.common.PluginBase.onEnable(Pl uginBase.java:179) 12:37:24 [SEVERE] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlug in.java:215) 12:37:24 [SEVERE] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin( JavaPluginLoader.java:337) 12:37:24 [SEVERE] at org.bukkit.plugin.SimplePluginManager.enablePlugin(Si mplePluginManager.java:386) 12:37:24 [SEVERE] at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftSe rver.java:264) 12:37:24 [SEVERE] at org.bukkit.craftbukkit.CraftServer.enablePlugins(Craf tServer.java:246) 12:37:24 [SEVERE] at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer .java:198) 12:37:24 [SEVERE] at net.minecraft.server.ServerConfigurationManager.<init
(ServerConfigurationManager.java:59)
12:37:24 [SEVERE] at net.minecraft.server.MinecraftServer.init(MinecraftSe rver.java:177) 12:37:24 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftSer ver.java:438) 12:37:24 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(Sour ceFile:492) 12:37:24 [WARNING] [NoLagg ItemStacker] Failed to hook into world access listene rs, will use a slower alternative! 12:37:24 [SEVERE] [NoLagg SpawnLimiter] Failed to initialize spawn limiter: coul d not bind to world entity listener 12:37:24 [INFO] [NoLagg Saving] will write world data to all region files every 12000 ticks (10.0 minutes) 12:37:24 [INFO] NoLagg version 1.83 enabled! 12:37:24 [INFO] Preparing level "build" 12:37:24 [INFO] Default game type: 0
-
View User Profile
-
Send Message
Posted Sep 29, 2012I got this issue in my server:
eTypix> lagg. 02:52:52 PM CONSOLE: [SEVERE] java.lang.StringIndexOutOfBoundsException: String index out of range: -1 02:52:52 PM CONSOLE: [SEVERE] at java.lang.String.substring(String.java:1949) 02:52:52 PM CONSOLE: [SEVERE] at com.bergerkiller.bukkit.nolagg.NoLaggUtil.findPlugins(NoLaggUtil.java:70) 02:52:52 PM CONSOLE: [SEVERE] at com.bergerkiller.bukkit.nolagg.NoLaggUtil.findPlugins(NoLaggUtil.java:61) 02:52:52 PM CONSOLE: [SEVERE] at com.bergerkiller.bukkit.nolagg.threadlocknotifier.ThreadLockChecker.run(ThreadLockChecker.java:80) 02:52:52 PM CONSOLE: [SEVERE] at com.bergerkiller.bukkit.common.AsyncTask$1.run(AsyncTask.java:20) 02:52:55 PM CONSOLE: [INFO] FactionChat OMGARAIDRS: Acl16: lag 02:52:57 PM WiccaStabz: brucelee2013> LAGY LAGY LAGGITY LAG 02:52:59 PM GRB:
-
View User Profile
-
Send Message
Posted Sep 29, 2012@TheMimey
Just start the nolagg.jar.
-
View User Profile
-
Send Message
Posted Sep 29, 2012also How do i open the nolagg .exam files
-
View User Profile
-
Send Message
Posted Sep 29, 2012@ricktza
The plugin is clearly nolagg, since its not only me getting this issue, its very anooying. /Nolagg reload fixed the issues for 1-2 hours then item drops go off again, i have turned item stacked and limits off and it still happends. Im now going to add a console command to run every 1h ( /nolagg clear notneutral ) maybe that will help me with this nolagg bug? Also how do i open the nolagg.exam files
-
View User Profile
-
Send Message
Posted Sep 29, 2012@TheMimey
Maybe a conflicting plugin.
Have you tested without nolagg?
-
View User Profile
-
Send Message
Posted Sep 29, 20121-2 HOURS = ITEM DROP BUG ISSUES
-
View User Profile
-
Send Message
Posted Sep 28, 2012Newest Bukkit = 1.3.2 R1.0 Newest Nolagg, Newest Library
Getting this when /nolagg examine on empty server over console or when i join freshly startet server and command it ingame. after that error, server crashes.
28.09 23:19:28 [Server] INFO Connection reset 28.09 23:19:28 [Multicraft] Skipped 9 lines due to rate limit (30/s) 28.09 23:19:18 [Server] INFO at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:511) 28.09 23:19:18 [Server] INFO at net.minecraft.server.World.entityJoinedWorld(World.java:1245) 28.09 23:19:18 [Server] INFO at net.citizensnpcs.npc.entity.EntityHumanNPC.h_(EntityHumanNPC.java:124) 28.09 23:19:18 [Server] INFO at net.citizensnpcs.npc.entity.CitizensHumanNPC.update(CitizensHumanNPC.java:134) 28.09 23:19:18 [Server] INFO at org.bukkit.Location.getChunk(Location.java:73) 28.09 23:19:18 [Server] INFO at org.bukkit.craftbukkit.CraftWorld.getChunkAt(CraftWorld.java:476) 28.09 23:19:18 [Server] INFO at org.bukkit.craftbukkit.CraftWorld.getChunkAt(CraftWorld.java:107) 28.09 23:19:18 [Server] INFO at net.timedminecraft.server.TimedChunkProviderServer.getChunkAt(TimedChunkProviderServer.java:81) 28.09 23:19:18 [Server] INFO java.lang.NoSuchMethodError: org.bukkit.craftbukkit.util.LongObjectHashMap.get(II)Ljava/lang/Object; 28.09 23:19:18 [Server] SEVERE Encountered an unexpected exception NoSuchMethodError 28.09 23:19:18 [Server] SEVERE at net.minecraft.server.ThreadServerApplication.run(SourceFile:539) 28.09 23:19:18 [Server] SEVERE at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:405) 28.09 23:19:18 [Server] SEVERE at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:473) 28.09 23:19:18 [Server] SEVERE at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:213) 28.09 23:19:18 [Server] SEVERE at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:563) 28.09 23:19:18 [Server] SEVERE at net.minecraft.server.WorldServer.tickEntities(WorldServer.java:428) 28.09 23:19:18 [Server] SEVERE at net.minecraft.server.World.tickEntities(World.java:1125) 28.09 23:19:18 [Server] SEVERE at net.minecraft.server.World.playerJoinedWorld(World.java:1227) 28.09 23:19:18 [Server] SEVERE at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:511) 28.09 23:19:18 [Server] SEVERE at net.minecraft.server.World.entityJoinedWorld(World.java:1245) 28.09 23:19:18 [Server] SEVERE at net.citizensnpcs.npc.entity.EntityHumanNPC.h_(EntityHumanNPC.java:124) 28.09 23:19:18 [Server] SEVERE at net.citizensnpcs.npc.entity.CitizensHumanNPC.update(CitizensHumanNPC.java:134) 28.09 23:19:18 [Server] SEVERE at org.bukkit.Location.getChunk(Location.java:73) 28.09 23:19:18 [Server] SEVERE at org.bukkit.craftbukkit.CraftWorld.getChunkAt(CraftWorld.java:476) 28.09 23:19:18 [Server] SEVERE at org.bukkit.craftbukkit.CraftWorld.getChunkAt(CraftWorld.java:107) 28.09 23:19:18 [Server] SEVERE at net.timedminecraft.server.TimedChunkProviderServer.getChunkAt(TimedChunkProviderServer.java:81) 28.09 23:19:18 [Server] SEVERE java.lang.NoSuchMethodError: org.bukkit.craftbukkit.util.LongObjectHashMap.get(II)Ljava/lang/Object; 28.09 23:19:18 [Server] INFO You will be notified when the report has been generated 28.09 23:19:18 [Server] INFO The server will be examined for 500 ticks (25 seconds)
-
View User Profile
-
Send Message
Posted Sep 28, 2012@TheFluffey
Hey i'm not a idiot, but yes i was unaware of the drop protections.
Though at least i was smart enough to go to a older build :). thanks for letting me know i will now move to the newer essentials and disable the drop protection :).
Thanks :)
-
View User Profile
-
Send Message
Posted Sep 28, 2012@PatoTheBest Being made compatible, next version will support 1.3.2 R0.1 AND R0.2.
@watdidyusaey @selfservice0 I suspect this has to do with the item stacker then. It uses a separate thread to operate on items, it could be it glitches some of the items making them 'unpickupable'. I'll have a quick checkup later today to see if it has to do with this. 'not being able to pick up' is unrelated to the spawn limiter, so it has to be the item stacker.
-
View User Profile
-
Send Message
Posted Sep 28, 2012@bergerkiller
I don't use essentials and I have this issue.
-
View User Profile
-
Send Message
Posted Sep 28, 201211:38:04 AM CONSOLE: [SEVERE] java.lang.ClassCastException: com.bergerkiller.bukkit.nolagg.spawnlimiter.EntityWorldWatcher cannot be cast to net.minecraft.server.WorldManager 11:38:04 AM CONSOLE: [SEVERE] at net.minecraft.server.World.makeSound(World.java:769) 11:38:04 AM CONSOLE: [SEVERE] at net.minecraft.server.EntityLiving.aH(EntityLiving.java:257) 11:38:04 AM CONSOLE: [SEVERE] at net.minecraft.server.EntityLiving.z(EntityLiving.java:267) 11:38:04 AM CONSOLE: [SEVERE] at net.minecraft.server.Entity.h_(Entity.java:216) 11:38:04 AM CONSOLE: [SEVERE] at net.minecraft.server.EntityLiving.h_(EntityLiving.java:435) 11:38:04 AM CONSOLE: [SEVERE] at net.minecraft.server.World.entityJoinedWorld(World.java:1245) 11:38:04 AM CONSOLE: [SEVERE] at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:511) 11:38:04 AM CONSOLE: [SEVERE] at net.minecraft.server.World.playerJoinedWorld(World.java:1227) 11:38:04 AM CONSOLE: [SEVERE] at net.minecraft.server.World.tickEntities(World.java:1125) 11:38:04 AM CONSOLE: [SEVERE] at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:213) 11:38:04 AM CONSOLE: [SEVERE] at net.minecraft.server.WorldServer.tickEntities(WorldServer.java:428) 11:38:04 AM CONSOLE: [SEVERE] at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:473) 11:38:04 AM CONSOLE: [SEVERE] at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:563) 11:38:04 AM CONSOLE: cannot be cast to net.minecraft.server.WorldManager 11:38:04 AM CONSOLE: [SEVERE] Encountered an unexpected exception ClassCastException 11:38:04 AM CONSOLE: [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:539) 11:38:04 AM CONSOLE: [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:405) 11:38:04 AM CONSOLE: [SEVERE] This crash report has been saved to: /home/minecraft/Minecraft/./crash-reports/crash-2012-09-28_02.37.22-server.txt
-
View User Profile
-
Send Message
Posted Sep 27, 2012@bergerkiller
This isn't nolaggs fault, these idiots are unaware of essentials AntiBuild new drop and pickup protections. Your plugin is fine.
-
View User Profile
-
Send Message
Posted Sep 27, 2012Hello, i'm getting a lot of errors with craftbukkit 1.3.2 R2. is it compatible?
-
View User Profile
-
Send Message
Posted Sep 27, 2012@ricktza
Ive experienced the nolagg drop bug and i do not use essentials. ( i have not seen thebug recently)
-
View User Profile
-
Send Message
Posted Sep 27, 2012@ricktza Better hope this is not true...because if it is I am going to get pretty mad at everyone blaming NoLagg for everything...
-
View User Profile
-
Send Message
Posted Sep 27, 2012@bergerkiller
Drop bug, you mean they cannot pickup items right???
This is essentials if so... i went back to a older version of essentials and it was fine :)
Essentials-Pre2.9.4.2 = Drop bug (cannot pickup items)
Essentials-Pre2.9.4.1 = Works fine :)
Essentials-Pre2.9.4.5 = personally not tested it...
-
View User Profile
-
Send Message
Posted Sep 27, 2012@TheMimey Does this drop bug go away when disabling the spawn limiter? If so, I recommend you do this until it is fixed. If not, then I am looking in the wrong component. And you can open it using nolagg.jar. Double-click (or open with Java) NoLagg.jar and drag-drop the exam file onto the file path. Or click the open button. NoLagg.jar is both a plugin and a runnable executable.