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 Apr 24, 2012@guyag Hm. We have RAID-10 And we have 90-140 ms of load "Loading chunks from file" with 105 players "on board". And it drops tick perfonance as well. Nolagg plugins doenst help at all with this. So i don't have idea how to increase perfomance of the "chunk loading". :(
BTW "NoLagg examine" is helping a lot to find out laggy plugin! :)
-
View User Profile
-
Send Message
Posted Apr 24, 2012@mast3rpyr0
Don't let them do /plugins then...
-
View User Profile
-
Send Message
Posted Apr 24, 2012@mast3rpyr0 Maybe one day I will re-merge them, but I first need to find a way to 100% seal all components off again. Actually, I think I will HAVE to do this, as BKCommonLib has a supported plugin cap. The more plugins that use it, the more chances are something will stop working internally. Bukkit class loaders fail...
More people request this, so I'll work right now on figuring out a good way to separate them.
@Mayhem777 Probably related to the error as well, I'll see what I can do about it.
-
View User Profile
-
Send Message
Posted Apr 24, 2012I get this...
13:22:43 [ADVERTENCIA] Task of 'NoLaggItemBuffer' generated an exception java.util.ConcurrentModificationException at java.util.HashMap$HashIterator.nextEntry(Unknown Source) at java.util.HashMap$KeyIterator.next(Unknown Source) at com.bergerkiller.bukkit.nolagg.itembuffer.ChunkItems.update(Chu s.java:81) at com.bergerkiller.bukkit.nolagg.itembuffer.ItemMap$2.run(ItemMap 52) at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeart raftScheduler.java:126) at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:520 at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:4 at net.minecraft.server.ThreadServerApplication.run(SourceFile:490 13:22:49 [INFORMACIËN] Fetching addPacket for removed entity: CraftItem 13:23:27 [INFORMACIËN] Fetching addPacket for removed entity: CraftItem 13:23:27 [INFORMACIËN] Fetching addPacket for removed entity: CraftItem 13:23:28 [INFORMACIËN] Fetching addPacket for removed entity: CraftItem 13:23:53 [INFORMACIËN] Fetching addPacket for removed entity: CraftItem 13:23:56 [INFORMACIËN] Fetching addPacket for removed entity: CraftItem
The last line "Fetching addPacket for removed entity: CraftItem" don't stops ...
-
View User Profile
-
Send Message
Posted Apr 24, 2012Will these ever be merged into one plugin again? I like to advertise my server as being semi-vanilla with only a few plugins to manage permissions and protect things, but its hard to convince idiots that that is the case when 30 plugins show up because nolagg is at least 7 of them.
-
View User Profile
-
Send Message
Posted Apr 23, 2012@diggormortis
When I broke a chest containing my nether items, I lost about 20-30% of them or so and yielded no chest.
-
View User Profile
-
Send Message
Posted Apr 23, 2012@bergerkiller
It only affects users in the nether while players outside the nether are unaffected, so I guess it must be a client issue. In that case there's probably not much that NoLagg can do about it.
@Bigdownloader
I have noticed this as well. Not sure what I lost, but I did break a double chest, picked up all items from it, and somehow only had one chest in my inventory. Don't think there was anything super valuable in there though.
-
View User Profile
-
Send Message
Posted Apr 22, 2012@horrorduck123
Id like to jump in and reply to this. I Use World border. I like it cause you can set your border then have it generate the chunks all at one time for the world. (new world) or set it up in a old world and have it trim off the edges to shrink the world size. works wonderfully in my opinion by putting all the chunk generation lag in a short time span when maybe people are offline.
-
View User Profile
-
Send Message
Posted Apr 22, 2012Hi there. Not that I doubt the nolagg examine portion of this suite, indeed to the contrary I find it so incredibly useful but I was wandering how much attention I should pay to the chunk loading portion of this plugin. Using the standard examine over 500 ticks it says that 100 or even up to 200 milliseconds is spent on loading chunks from disk, which is weird as we are running a ssd. Your opinion would be greatly valued! Thanks.
-
View User Profile
-
Send Message
Posted Apr 22, 2012I'm not sure if it has been mentioned, but there seems to be a problem with the latest NoLagg (v1.82) using CraftBukkit 1.2.5-R1.2 (Build #02157). The problem (I think) was also existent in 1.2.5-R1.0. In game, when breaking a chest, it would usually result in a loss of multiple items from that chest. I also had quite a few errors in the log, but sadly it seems the log was overwritten when I restarted the server. I was using both Orebfuscator and NoLagg with unmodified settings. I switched to Ptweaks and the problem was no more. Is anyone else noticing item loss with NoLagg? Is there some sort of incompatibility with Orebfuscator?
-
View User Profile
-
Send Message
Posted Apr 22, 2012I have a simple question: Are the Spawn Limits per chunk or per world?
-
View User Profile
-
Send Message
Posted Apr 22, 2012i have noticed the same thing too. i think that the world_nether has become corrupt. same thing on my world.
-
View User Profile
-
Send Message
Posted Apr 22, 2012@Dustinduse Well it's not the examiner, it is the auto-saver. It is locking up at the internal saving routines, which is quite weird. To resolve it, try setting the auto-save interval to 60 or so. (or disable the main NoLagg.jar)
@GudfareN92 Did you use /lag gc and then read the memory? Because there is a difference between static memory and dynamic memory. The memory is never the same and can easily reach 2 gigs while only 1 gig is in use.
@horrorduck123 If it is chunk generating that is lagging (most likely), get 'Chunk border' (plugin) on your server and prevent the world from increasing in size. This way no new chunks are generated.
@diggormortis Is this client or server lag? This looks kind of like a lighting issue to me, especially since block lighting is (not yet) fixed properly.
-
View User Profile
-
Send Message
Posted Apr 20, 2012Thank you bergerkiller for this plugin. It reduces my server CPU usage by 80% and makes the thing playable. For several MC versions now, whether there's a working NoLagg build for the latest MC release has been the deciding factor in when I update my MC client.
I was wondering if NoLagg can be conveniently made to address the extreme lag we've been seeing in the Nether over the last couple of MC versions, or whether it or another plugin can already handle it. The Nether used to run silky smooth, but now taking a step in a given direction can be dangerous if the server chooses that moment to lag for several seconds and assumes that you're walking the whole time, possibly near lava-sea-cliffs...
Any advice on dealing with this would be appreciated.
-
View User Profile
-
Send Message
Posted Apr 20, 2012@horrorduck123
I'm also experiencing this issue. Anyone know how to fix or explain it in a more proper way?
-
View User Profile
-
Send Message
Posted Apr 20, 2012i examed my server with nolagg examine command for 25 seconds it says whats making my server lag in tps mostly is chunk creation what does that mean and what can i do to reduce or take out complete that lag :( PLEASE HELP
-
View User Profile
-
Send Message
Posted Apr 20, 2012The server uses allot more ram with NoLagg. But i guess that is the point. Because of the chunk stuff nolagg does. xD
-
View User Profile
-
Send Message
Posted Apr 20, 2012Hello i have been getting random lockups on my server... seems to happen after about 40 hours of running. so thinking it was a craftbukkit error. i switched to craftbukkitplusplus... as you may know CBplusplus has a nice reporting thing for when the server stops responding. so when it happened i posted on the forms there. and they told me it is all caused by your Examiner plugin.
Log: http:pastebin.com/rdr3YPF4
-
View User Profile
-
Send Message
Posted Apr 19, 2012@lbb601 Latest still supports 1.2.5
-
View User Profile
-
Send Message
Posted Apr 19, 2012Update to 1.2.5 coming any time soon?