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 May 19, 2013@bergerkiller:
I've done some more testing on the chunks not unloading issue. I have a local test server on my home PC. So, I pulled all the plugins/configs/etc. from my server and made sure my test server was identical to the actual server. The only thing that's NOT identical is the OS. On my test server I could NOT reproduce the problem. Chunks seem to unload fine on the test server.
I'll be trying to find the cause of this issue over the next few days. If I find the cause, I'll let you know what it was.
-
View User Profile
-
Send Message
Posted May 19, 2013@UnDrac I noticed that Minebackup cause problem with unloading chunks from memory with Nolagg plugin installed, so check if you have it.
@bergerkiller Thanks. Now it works! :)
-
View User Profile
-
Send Message
Posted May 19, 2013I noticed a problem, but I can't tell if it's from NoLagg or some of the other plugins we have installed, but Chunks don't seem to unload, at all.
It doesn't matter what we set in the config or in the Server's config, chunks just don't get unloaded, and monsters seem to stop spawning while the server is up and they spawn only during a server restart, and that's not all, hostile mobs are supposed to go Idle after a certain distance from the player and disappear if they are 128 blocks away from any player, however I still see hostile mobs that I trapped on a chunk even after going a few thousand blocks away.
-
View User Profile
-
Send Message
Posted May 19, 2013That banner at the top of the page looks like one of those ads where I've apparently just won a car T_T
-
View User Profile
-
Send Message
Posted May 19, 2013@PocK123
No shit Sherlock.
-
View User Profile
-
Send Message
Posted May 19, 2013Works on 1.5.2?
-
View User Profile
-
Send Message
Posted May 18, 2013@Patryk122PL I think you are right, I'll have to look into that. I suspect that the tnt explosion event is broken in Bukkit...
EDIT
Fixed in latest dev build.
@rfsantos1996 The 1-interval task takes over the previous chunk sending logic of the server, as a result it inherits some of the processing time from there. The average shown (0.6133 ms) is not high at all, but I do notice that it occasionally exceeds 50ms in one tick. In case you have a very high chunk sending rate set in the config.yml, lower it. I'll improve nolagg examine a bit in the next version so that it shows all the separate operations properly.
-
View User Profile
-
Send Message
Posted May 17, 2013TNT limiter doesn't seem to work. I tested it out and changing detonation interval or rate does no effect at all. Still all tnt are detonated almost together. So is this broken or disabled or I can't configure it properly? My config file. I think this should trigger 5 nearby tnt per 7 seconds but all I get is 20 tnt after 1 sec, 300 after another sec and so on which of course cause serious server lag (5000 tnt test). I'm using this nolagg ver and this BKCommonLib on bukkit 1.5.2-R0.1 beta build.
-
View User Profile
-
Send Message
Posted May 16, 2013http://aikar.co/timings.php?url=5672476
What is task interval 1? Chunk sending? And 40?
-
View User Profile
-
Send Message
Posted May 14, 2013@zeshan321
Allright.
I am verry happy you got it fixed :)
-
View User Profile
-
Send Message
Posted May 13, 2013Hello its me again...I tried the latest nolagg dev build but my players can not still hit mob/players. I tried with enabled patches and disabled. I think its a compatibly issue with mcMMO
EDIT: Nope not mcmmo Found it it was because i had a out dated ProtocolLib
-
View User Profile
-
Send Message
Posted May 13, 2013@CommodoreAlpha Yeah you can do that, if I have time left I can look into it. My main priority right now is improving performance in this and other plugins.
-
View User Profile
-
Send Message
Posted May 12, 2013@bergerkiller
Just so you won't forget, should I post my "lag monitor" idea as a ticket?
-
View User Profile
-
Send Message
Posted May 12, 2013@bergerkiller
Sorry for making you talk about that here (really, I should looked other way...)
And thanks, I already use Spogot (?) and I will try that, but I think Multiverse dont works so good with it. Thanks anyway (;
-
View User Profile
-
Send Message
Posted May 12, 2013@rfsantos1996 I think I'll get banned from here if I start discussing it (I'm serious, the staff doesn't like other server mods. I know, hypocritical). I'll keep it simple: Lobigot (replace first o with i, just in case of word response alerts to admins) is Spigot, but they left out several things they did not agree with. For example, unlike other server software, their implementation does not enforce package versioning, meaning that plugins will keep working even when the CB version changes. Other than that, they did several other tweaks/changes such as undoing some performance-impeding changes done by md-5 :)
@Maxetto All right, keep me up to date on what the status is. Although I have no idea what it could be...you can always try disabling components in the config.yml to see if it has any effect.
-
View User Profile
-
Send Message
Posted May 12, 2013@bergerkiller
There are like 1500 entities, i block spawn of entities by Bukkit spawn limiter (the one in bukkit.yml), i also block spawning of entities in others world with Multiverse. For Now i think that is a DDoS, i got one other time problems like this (very low TPS without plugins causing it) and lag on 20 TPS. I hope it's that and tomorrow it'll be all ok.
-
View User Profile
-
Send Message
Posted May 12, 2013@bergerkiller
Is Lobigot better than Spigot? (not Nolagg related, but I just descovered that, and I dont know if its better or not) (notable diferences? Better performance?)
-
View User Profile
-
Send Message
Posted May 12, 2013@Maxetto On the latest server builds, cancelling the creature spawn event has become a big crime. You do have WorldGuard running, is WorldGuard possibly cancelling entity spawns? Can be anywhere, world or region related. I am working for a fix in NoLagg and MyWorlds for this, but I can't talk for other plugins...
If you let entities spawn free everywhere (no spawn limits other than animal, water, monster limits) then that is ruled out.
For chunk sending, it isn't even THAT large. Per tick you can spend 50 ms, and you have a TPS of 11. This means you have 90 ms of processing time. Although the sending tasks shows peaks sometimes, on average it's 1 ms/tick...it's not going to cause the amount of lag you are having.
Since no plugin listeners, tasks or chunk load/unload appears to be the issue, I have to blame it on entities. How many entities are there on your server?
-
View User Profile
-
Send Message
Posted May 12, 2013@bergerkiller
@lenis0012 Yes, obiouvsly i have WorldEdit....
@bergerkiller So, what can i do?? I have many lag on my server, sometimes it go to 11 TPS, btw i also think that my host is having a DDoS ATM, so i will see tomorrow or tomorrow again (? I spelled it right .-.)
-
View User Profile
-
Send Message
Posted May 12, 2013Important announcement
The following build is compatible with CraftBukkit/Spigot/Libigot 1.5.1 and slightly compatible with 1.5.2: http://ci.dj-tcraft.nl/job/NoLagg/56/
This is the latest 1.5.1 compatible build, and I just uploaded it to dev-bukkit too as official build. Builds after this build are NOT compatible with 1.5.1 in any way, so be aware of this!
If you need 1.5.2 builds, use the (current) latest NoLagg and BKCommonLib builds.
Thank you.