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 Dec 20, 2012@ellbristow
That would be very good if you continue nolagg.
-
View User Profile
-
Send Message
Posted Dec 19, 2012Really sucks Bergerkiller is leaving bukkit. However he isn't gone for good, just on bukkit. For those of you who need a plugin similar to this "PTweaks" will be updated for 1.4.5 and hopefully the updates too come. Thank you
-
View User Profile
-
Send Message
Posted Dec 19, 2012@vicente947
If you can link me to your source code I'll update this for 1.4.5. I'm workign on 16 plugins now... what's 1 more!? :)
-
View User Profile
-
Send Message
Posted Dec 19, 2012PLEASE READ AND DONT ASK FOR A NEW UPDATE:
-
View User Profile
-
Send Message
Posted Dec 19, 2012@Adrenalineq
and where is it ?
-
View User Profile
-
Send Message
Posted Dec 19, 2012Bukkit 1.4.5 - Recommended build OUT !!
-
View User Profile
-
Send Message
Posted Dec 18, 2012Guys! Its time for an Update!
-
View User Profile
-
Send Message
Posted Dec 17, 2012I got tired of the errors... nice trip buddy.
-
View User Profile
-
Send Message
Posted Dec 17, 2012@XeonG8
So don't play the game anymore, simple as that.
I for one like how they are doing things, i like the direction they are going, and the few plugins i have made for bukkit should have zero issues moving forward.
-
View User Profile
-
Send Message
Posted Dec 17, 2012yeh thanks Bergerkiller, great work on nolagg and the examine feature...great stuff that has helped a lot... Mojang/bukkit seem to be incompetent at best when it comes to doing anything semi decently, they are a bit of a joke really. They just keep screwing around and releasing crud and buggy updates.
Really sick of it, now have to look forward to a crummy 1.4.6 update and the stupid bukkit build that will break even more plugins. Advantage? fk all
-
View User Profile
-
Send Message
Posted Dec 17, 2012Thank you for your amazing longterm support and benefit to the minecraft community Bergerkiller! Our best wishes to your future projects!
-
View User Profile
-
Send Message
Posted Dec 15, 2012@Brocodo
The "to many files open" error has nothing to do with minecraft. If I am remembering correctly it's a limitation set in the MySQL config(my.cnf) file.
I have to say I am sad to see development of this great plugin coming to a halt :(
-
View User Profile
-
Send Message
Posted Dec 15, 2012@cjoenic
Yeah, it generally means one plugin cancelled the event, and the other plugin hasn't been told that it should expect a cancelled event.
When writing a plugin, and dealing with events, you generally tell the eventhandler what the priority is, and you can also tell it not to bother receiving events if they have been cancelled.
Problem is, not every plugin does that and that's when these errors occur.
-
View User Profile
-
Send Message
Posted Dec 15, 2012@lord0o
Could not pass event PlayerMoveEvent to NoLagg
usually the problem is caused by other plugin, conflict by other plugin prevent nolagg to receive the event.
in my server, i have anti-ad installed, but with pwnfilter, these sort of message appeared. as a conclusion, pwnfilter prevented anti-ad to receive those event. disabling either one will fix it. i guess.
-
View User Profile
-
Send Message
Posted Dec 14, 20122012-12-14 08:05:41 [SEVERE] Could not pass event PlayerMoveEvent to NoLagg v1.89.1 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:341) 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 net.minecraft.server.NetServerHandler.a(NetServerHandler.java:218) at net.minecraft.server.Packet10Flying.handle(SourceFile:136) at net.minecraft.server.NetworkManager.b(NetworkManager.java:290) at net.minecraft.server.NetServerHandler.d(NetServerHandler.java:113) at net.minecraft.server.ServerConnection.b(SourceFile:39) at net.minecraft.server.DedicatedServerConnection.b(SourceFile:30) at net.minecraft.server.MinecraftServer.r(MinecraftServer.java:595) at net.minecraft.server.DedicatedServer.r(DedicatedServer.java:222) at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:493) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:426) at net.minecraft.server.ThreadServerApplication.run(SourceFile:856) Caused by: java.lang.NoSuchMethodError: com.bergerkiller.bukkit.common.utils.MathUtil.locToChunk(D)I at com.bergerkiller.bukkit.nolagg.chunks.ChunkSendQueue.<init>(ChunkSendQueue.java:138) at com.bergerkiller.bukkit.nolagg.chunks.ChunkSendQueue.bind(ChunkSendQueue.java:105) at com.bergerkiller.bukkit.nolagg.chunks.ChunkSendQueue.bind(ChunkSendQueue.java:100) at com.bergerkiller.bukkit.nolagg.chunks.NLCListener.onPlayerMove(NLCListener.java:39) at sun.reflect.GeneratedMethodAccessor86.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:339) ... 14 more
And it floods a lot...
-
View User Profile
-
Send Message
Posted Dec 14, 2012@ray73864
With Some other plugins, i mean small plugins like a chat announcer plugin.
That has totally nothing to do with my error. The error says things like chunk sending and loading. The ONLY plugin that i have installed that loads chunks is NoLagg. So i think that maybe some plugins can't go together with NoLagg, you never know. I think i'll just disable the chunk sending feature and see if it works.
-
View User Profile
-
Send Message
Posted Dec 13, 2012@Brocodo
That line has me worried a bit. What else did you install at the same time as NoLagg??
What you should do when installing plugins, is not just to dive in and install a whole lot at once, that's how issues happen, you should install 1 at a time and make sure it is working first.
What made you come to the conclusion it might be NoLagg? I don't see NoLagg mentioned at all in the stack trace that you posted.
When you installed NoLagg, did you change anything in config.yml at all? I've pretty much had my config.yml on the default for a long time now, i only have the Item Stacker and the TNT part of NoLagg enabled and we've never had issues like you are pointing out.
Personally i think the majority of people who are having issues with NoLagg are either doing something very bad, or, it isn't NoLagg at fault just another plugin messin' with things it shouldn't.
-
View User Profile
-
Send Message
Posted Dec 13, 2012I think NoLagg causes serieus issues to my server. Sometimes my server is spamming 'Too Many Files Open'. So i realy didn't know what it means, i searched on the internet to find out what do do with it, multiple times i saw that people recommended not to sue NoLagg.
So a few minutes ago i saw the error again and opened the log file. So i scrolled back in
history to see any errors that could explain something. Then first i ran into a spam of 'java.lang.ArrayIndexOutOfBoundsException' errors and then, i saw this spammed like 10 times, so i think this is the cause. Becouse the errors started spamming after this error:
2012-12-13 22:12:39 [SEVERE] java.lang.ArrayIndexOutOfBoundsException -3848283
2012-12-13 22:12:40 [SEVERE] at java.util.ArrayList.elementData(ArrayList.java:338)
2012-12-13 22:12:40 [SEVERE] at java.util.ArrayList.set(ArrayList.java:366)
2012-12-13 22:12:40 [SEVERE] at net.minecraft.server.RegionFile.<init>(SourceFile:136)
2012-12-13 22:12:40 [SEVERE] at net.minecraft.server.RegionFileCache.a(SourceFile:61)
2012-12-13 22:12:40 [SEVERE] at net.minecraft.server.RegionFileCache.c(SourceFile:85)
2012-12-13 22:12:40 [SEVERE] at net.minecraft.server.ChunkRegionLoader.a(ChunkRegionLoader.java:42)
2012-12-13 22:12:40 [SEVERE] at net.minecraft.server.ChunkProviderServer.loadChunk(ChunkProviderServer.java:155)
2012-12-13 22:12:40 [SEVERE] at net.timedminecraft.server.TimedChunkProviderServer.loadChunk(TimedChunkProviderServer.java:77)
2012-12-13 22:12:40 [SEVERE] at net.minecraft.server.ChunkProviderServer.getChunkAt(ChunkProviderServer.java:90)
2012-12-13 22:12:40 [SEVERE] at net.timedminecraft.server.TimedChunkProviderServer.getChunkAt(TimedChunkProviderServer.java:126)
2012-12-13 22:12:40 [SEVERE] at net.minecraft.server.PlayerInstance.<init>(PlayerInstance.java:22)
2012-12-13 22:12:40 [SEVERE] at net.minecraft.server.PlayerManager.a(PlayerManager.java:68)
2012-12-13 22:12:40 [SEVERE] at net.minecraft.server.PlayerManager.movePlayer(PlayerManager.java:197)
2012-12-13 22:12:40 [SEVERE] at net.minecraft.server.ServerConfigurationManagerAbstract.d(ServerConfigurationManagerAbstract.java:193)
2012-12-13 22:12:40 [SEVERE] at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:424)
2012-12-13 22:12:40 [SEVERE] at net.minecraft.server.Packet10Flying.handle(SourceFile:136)
2012-12-13 22:12:40 [SEVERE] at net.minecraft.server.NetworkManager.b(NetworkManager.java:290)
2012-12-13 22:12:40 [SEVERE] at net.minecraft.server.NetServerHandler.d(NetServerHandler.java:113)
2012-12-13 22:12:40 [SEVERE] at net.minecraft.server.ServerConnection.b(SourceFile:39)
2012-12-13 22:12:40 [SEVERE] at net.minecraft.server.DedicatedServerConnection.b(SourceFile:30)
2012-12-13 22:12:40 [SEVERE] at net.minecraft.server.MinecraftServer.r(MinecraftServer.java:595)
2012-12-13 22:12:40 [SEVERE] at net.minecraft.server.DedicatedServer.r(DedicatedServer.java:222)
2012-12-13 22:12:40 [SEVERE] at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:493)
2012-12-13 22:12:40 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:426)
2012-12-13 22:12:40 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:856)
2012-12-13 22:12:40 [SEVERE] java.lang.ArrayIndexOutOfBoundsException -3848283
2012-12-13 22:12:40 [SEVERE] at java.util.ArrayList.elementData(ArrayList.java:338)
2012-12-13 22:12:40 [SEVERE] at java.util.ArrayList.set(ArrayList.java:366)
2012-12-13 22:12:40 [SEVERE] at net.minecraft.server.RegionFile.<init>(SourceFile:136)
2012-12-13 22:12:40 [SEVERE] at net.minecraft.server.RegionFileCache.a(SourceFile:61)
2012-12-13 22:12:40 [SEVERE] at net.minecraft.server.RegionFileCache.c(SourceFile:85)
2012-12-13 22:12:40 [SEVERE] at net.minecraft.server.ChunkRegionLoader.a(ChunkRegionLoader.java:42)
----------------------------------------------------------------------------------------------------------
So why i think NoLagg is cousing this is for a few reasons:
1. My server has this issues after i installed Nolagg with some other plugins.
2. The error is saying things about loading chunks and sending them to players.
Nolagg has a feature to load and send chunks differend than default.
I apologize if i'm wrong but i realy don't know what to do now.
Anyway, awesome plugin, i hope i will get an answer soon :)
-
View User Profile
-
Send Message
Posted Dec 13, 2012Thanks for your efforts, bergerkiller! I really appreciate all the time you put into your plugins and the support you provided for them.
-
View User Profile
-
Send Message
Posted Dec 13, 2012te best plugin¡¡¡¡¡¡