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 17, 2012Is there a possibility for you to release your item stacking method as a single plugin. It would be great to have. I've tried another plugin but it didn't do anything like it was supposed to. It's the one thing I love most about this plugin. If I could get just the item stacking as a plugin that would really kick bootay
-
View User Profile
-
Send Message
Posted Sep 16, 2012@bergerkiller
Focus on the annoying stuff first:
Im getting this in the console multiple times.
16:57:18 [WARNING] [Server] The main thread failed to respond after 10 seconds 16:57:19 [WARNING] [Server] Probable Plugin cause: 'NoLagg' 16:57:19 [WARNING] [Server] What follows is the stack trace of the main thread
Realy annoying, please fix, also block drops go off in my server...
-
View User Profile
-
Send Message
Posted Sep 16, 2012Im getting this in the console multiple times.
16:57:18 [WARNING] [Server] The main thread failed to respond after 10 seconds 16:57:19 [WARNING] [Server] Probable Plugin cause: 'NoLagg' 16:57:19 [WARNING] [Server] What follows is the stack trace of the main thread
Realy annoying, please fix, also block drops go off in my server...
-
View User Profile
-
Send Message
Posted Sep 16, 2012Status update for those impatient enough (hehe)
Right now I am rewriting a lot of code. Want proof? This is 30% of it:
https://github.com/bergerkiller/BKCommonLib/commit/c0452a926177fe06a8e7c8648b21450c74dca5c4
I got tired of people using outdated BKCommonLib versions, so I am adding versioning to it. When a plugin REQUIRES a certain version, it will not even enable if this version is not met. Most if not all native nms logic will go into BKCommonLib, which includes all of the reflection fields and more. This ensures that all plugins are updated at once when CraftBukkit changes.
As well I rewrote a fair amount in NoLagg to use BKCommonLib better. First have to completely fix up TrainCarts to fix some reported issues and add new features that were pending for a while now. Hopefully things will get a bit more stable now all of this is in.
@AgentPancakes41
I don't get any errors at all, but my guess you didn't read the big black text (TM) at the top of this page. If you did read it, please list all the errors you are having on PasteBin so I can review them. If you want something fixed, now is the time to report it.
@MrMime22
Working on it, if you know more of this bug, PM me.
-
View User Profile
-
Send Message
Posted Sep 16, 2012Drop issue is realy realy annoying
-
View User Profile
-
Send Message
Posted Sep 16, 2012Can anyone send my your config file? I need a good nolagg config, so there never lagt!
-
View User Profile
-
Send Message
Posted Sep 15, 2012This is a very glitchy plugin.. Before the update there were endless errors, and now there are a big amount of errors... I hope ya'll can fix this because I would love to see this plugin work.
-
View User Profile
-
Send Message
Posted Sep 15, 2012@RobinF
Dont be impacient, they work hard for us, if you are waiting, update it yourself (not a ofence, the source is there for you)
-
View User Profile
-
Send Message
Posted Sep 15, 2012when will it updated? we are waiting!
-
View User Profile
-
Send Message
Posted Sep 14, 2012Oops 1.3.1r2.0 not 1.3.1r0.2
-
View User Profile
-
Send Message
Posted Sep 14, 2012So I was using it with 1.3.1r0.2 but then I removed it because of ur big bold text now ,y serve r wont start because it spams my console with endless errors please help I cant have and less errors on my server.
-
View User Profile
-
Send Message
Posted Sep 14, 2012@aehooo - It works just fine for the dev builds up to #2365. I just tested #2366 and got some errors from nolagg.
-
View User Profile
-
Send Message
Posted Sep 14, 2012Just a quick question. Does it need specifically the beta build, or can I use newer versions of craftbukkit, like 1.3.2-R0.2 build 2366?
-
View User Profile
-
Send Message
Posted Sep 13, 2012@MrMime22
Basically you have a plugin holding the main server thread up. We had this on our game, we still get it on odd ocassions.
I found we had 'VoxelUpdate' plugin installed, and for some reason it could no longer contact the website address it wanted to, so it was locking the server up trying to reach it. Uninstalled that plugin (since we don't have any other voxelbox plugin installed, seriously not sure how this one got installed) and the problem pretty much went away.
-
View User Profile
-
Send Message
Posted Sep 13, 2012@Ta6akus3
We find this all the time on our server, people simply don't read. Berge put a massive big bold piece of text up the top saying you have to use 1.3.2, did you not look at it? or did you look at it and decided you know better?
-
View User Profile
-
Send Message
Posted Sep 13, 2012@Ta6akus3
It isnt use 1.3.2 bukkit build
-
View User Profile
-
Send Message
Posted Sep 13, 2012[WARNING] [NoLagg TLN] The main thread failed to respond after 10 seconds 05:43:26 PM CONSOLE: [WARNING] [NoLagg TLN] This is not caused by NoLagg, it is only being reported! 05:43:26 PM CONSOLE: [WARNING] [NoLagg TLN] Please read the stack trace to find the problematic plugin. 05:43:26 PM CONSOLE: [WARNING] [NoLagg TLN] What follows is the stack trace of the main thread 05:43:26 PM CONSOLE: [WARNING] [NoLagg TLN] This stack trace will be further refined as long as the thread is stuck 05:43:26 PM CONSOLE: Legend:: ballistic> PLZ CAN I JOIN BORNPRO 05:43:32 PM Trix: ini786> lagging 05:43:36 PM CONSOLE: [WARNING] [NoLagg TLN] The main thread is still stuck, updated stack trace is: 05:43:36 PM LochNedMonster: m lagging loads 05:43:36 PM CONSOLE: [INFO] Read timed out 05:43:36 PM CONSOLE: [INFO] Read timed out 05:43:36 PM BornPro: Elite: BORNMLGPRO> lag 05:43:36 PM CONSOLE: [INFO] Read timed out 05:43:36 PM BloodStorm: 05:43:42 PM CONSOLE: [INFO] Read timed out 05:43:42 PM CONSOLE: [INFO] Read timed out 05:43:42 PM CONSOLE: [INFO] Read timed out 05:43:44 PM CONSOLE: [INFO] Read timed out 05:43:44 PM SOS: chazcal10> wtf? 05:43:46 PM Trix: ini786> cant open chests 05:43:46 PM Delta: Warrior: Dylster198> MEH 05:43:48 PM Legend:: ballistic> BORNMLGPRO 05:43:48 PM CONSOLE: [INFO] Read timed out 05:43:50 PM CONSOLE: [INFO] Read timed out 05:43:50 PM CONSOLE: [INFO] Connection reset 05:43:50 PM CONSOLE: [INFO] Read timed out 05:43:52 PM kacpo99: LAG 05:43:54 PM BornPro: Elite: BORNMLGPRO>
-
View User Profile
-
Send Message
Posted Sep 12, 201206:05:10 PM CONSOLE: [SEVERE] java.lang.StringIndexOutOfBoundsException: String index out of range: -1 06:05:10 PM CONSOLE: [SEVERE] at java.lang.String.substring(String.java:1949) 06:05:10 PM CONSOLE: [SEVERE] at com.bergerkiller.bukkit.nolagg.NoLaggUtil.findPlugins(NoLaggUtil.java:70) 06:05:10 PM CONSOLE: [SEVERE] at com.bergerkiller.bukkit.nolagg.threadlocknotifier.ThreadLockChecker.run(ThreadLockChecker.java:80) 06:05:10 PM CONSOLE: [SEVERE] at com.bergerkiller.bukkit.nolagg.NoLaggUtil.findPlugins(NoLaggUtil.java:61) 06:05:10 PM CONSOLE: [SEVERE] at com.bergerkiller.bukkit.common.AsyncTask$1.run(AsyncTask.java:20)
-
View User Profile
-
Send Message
Posted Sep 11, 2012@fffizzz
that was supposed to say cb + + but it tried to markup the text :)
-
View User Profile
-
Send Message
Posted Sep 11, 2012Hrmm, with CB nolagg exmaine cxauses thread lock and crash
http://pastie.org/4704667