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.
I think this might crash the server when I try to claim a bunch of land with Towny with a huge number of these: http://pastebin.com/FVH1yWzb
Getting a couple of these every short while:
http://pastie.org/3037103
updateInterval: 200 does not have any effect on my server. It still looks like I'm dropping stacks all the time. So updateinterval seems to be still about 20 or 10 ticks. Could you maybe have a look at that?
Is there a config so I can turn off some things ?
NoLagg + McBans mess with eachother: http://pastebin.com/LU3Fj5X1
Not sure if this has to do with NoLagg but it crashes my server. But on the few last lines, it says nolagg
@SirMonsterSlayer Then the 30 dirt stays as it is, the pile of 20 and 1 iron disappear and a new item of 21 iron is spawned.
Will it make piles of items from different players ? SO if player 1 drops 30 dirt and player 2 drops 20 iron and player 1 then drops 1 iron. Where would all the iron appear ? if stacked at all ?
See the new 1.53 download link. Removed the iterator system and just used a separate list to remove elements. This should get rid of those concurrent modification exceptions some of you were having.
@TheStriker095 Wow um please post such long errors in pastie.org or something :) I'll look at it # The stacktrace for the error is missing - I see no message of Nolagg for one. I'll install UltraBans and check for myself.
2011-12-16 22:07:28 [INFO] Lil_Dre [/72.88.208.8:51454] logged in with entity id 145 at ([world] 3239.8649388547906, 111.0, -943.9762432228372) 2011-12-16 22:07:30 [SEVERE] [NoLagg] An error occured while performing a routine update: 2011-12-16 22:07:30 [SEVERE] java.util.ConcurrentModificationException 2011-12-16 22:07:30 [SEVERE] at java.util.HashMap$HashIterator.remove(HashMap.java:824) 2011-12-16 22:07:30 [SEVERE] at com.bergerkiller.bukkit.nolagg.meta.WorldMetaData.updateChunks(WorldMetaData.java:258) 2011-12-16 22:07:30 [SEVERE] at com.bergerkiller.bukkit.nolagg.meta.WorldMetaData.update(WorldMetaData.java:233) 2011-12-16 22:07:30 [SEVERE] at com.bergerkiller.bukkit.nolagg.meta.WorldMetaData.updateAll(WorldMetaData.java:63) 2011-12-16 22:07:30 [SEVERE] at com.bergerkiller.bukkit.nolagg.NoLagg$2.run(NoLagg.java:100) 2011-12-16 22:07:30 [SEVERE] at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:137) 2011-12-16 22:07:30 [SEVERE] at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:493) 2011-12-16 22:07:30 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425) 2011-12-16 22:07:30 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
Getting tons of these with .9
Kick error
08:50 PM [SEVERE] Could not pass event PLAYER_KICK to NoLagg 08:50 PM [INFO] [Backup] was not last player to leave. 08:50 PM [SEVERE] Exception in thread "AWT-EventQueue-0" 08:50 PM [SEVERE] org.bukkit.command.CommandException: Unhandled exception executing command 'kick' in plugin UltraBan v0.1.4 08:50 PM [SEVERE] at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42) 08:50 PM [SEVERE] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:165) 08:50 PM [SEVERE] at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:378) 08:50 PM [SEVERE] at me.escapeNT.pail.GUIComponents.ServerControlPanel$KickPlayerListener.actionPerformed(ServerControlPanel.java:234) 08:50 PM [SEVERE] at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) 08:50 PM [SEVERE] at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source) 08:50 PM [SEVERE] at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) 08:50 PM [SEVERE] at javax.swing.DefaultButtonModel.setPressed(Unknown Source) 08:50 PM [SEVERE] at javax.swing.AbstractButton.doClick(Unknown Source) 08:50 PM [SEVERE] at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source) 08:50 PM [SEVERE] at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source) 08:50 PM [SEVERE] at java.awt.Component.processMouseEvent(Unknown Source) 08:50 PM [SEVERE] at javax.swing.JComponent.processMouseEvent(Unknown Source) 08:50 PM [SEVERE] at java.awt.Component.processEvent(Unknown Source) 08:50 PM [SEVERE] at java.awt.Container.processEvent(Unknown Source) 08:50 PM [SEVERE] at java.awt.Component.dispatchEventImpl(Unknown Source) 08:50 PM [SEVERE] at java.awt.Container.dispatchEventImpl(Unknown Source) 08:50 PM [SEVERE] at java.awt.Component.dispatchEvent(Unknown Source) 08:50 PM [SEVERE] at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) 08:50 PM [SEVERE] at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) 08:50 PM [SEVERE] at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) 08:50 PM [SEVERE] at java.awt.Container.dispatchEventImpl(Unknown Source) 08:50 PM [SEVERE] at java.awt.Window.dispatchEventImpl(Unknown Source) 08:50 PM [SEVERE] at java.awt.Component.dispatchEvent(Unknown Source) 08:50 PM [SEVERE] at java.awt.EventQueue.dispatchEventImpl(Unknown Source) 08:50 PM [SEVERE] at java.awt.EventQueue.access$000(Unknown Source) 08:50 PM [SEVERE] at java.awt.EventQueue$1.run(Unknown Source) 08:50 PM [SEVERE] at java.security.AccessController.doPrivileged(Native Method) 08:50 PM [SEVERE] at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source) 08:50 PM [SEVERE] at java.awt.EventQueue$2.run(Unknown Source) 08:50 PM [SEVERE] at java.security.AccessController.doPrivileged(Native Method) 08:50 PM [SEVERE] at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source) 08:50 PM [SEVERE] at java.awt.EventQueue.dispatchEvent(Unknown Source) 08:50 PM [SEVERE] at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) 08:50 PM [SEVERE] at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) 08:50 PM [SEVERE] at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) 08:50 PM [SEVERE] at java.awt.EventDispatchThread.pumpEvents(Unknown Source) 08:50 PM [SEVERE] at java.awt.EventDispatchThread.run(Unknown Source) 08:50 PM [SEVERE] Caused by: java.lang.IllegalAccessError: Synchronized code got accessed from another thread: java.awt.EventDispatchThread 08:50 PM [SEVERE] at com.all.bukkit.threadcheck.ThreadCheck.check(ThreadCheck.java:79) 08:50 PM [SEVERE] at com.bergerkiller.bukkit.nolagg.ChunkSendQueue.remove(ChunkSendQueue.java:346) 08:50 PM [SEVERE] at net.minecraft.server.PlayerInstance.b(PlayerInstance.java:63) 08:50 PM [SEVERE] at net.minecraft.server.PlayerManager.removePlayer(PlayerManager.java:109) 08:50 PM [SEVERE] at net.minecraft.server.ServerConfigurationManager.disconnect(ServerConfigurationManager.java:159) 08:50 PM [SEVERE] at net.minecraft.server.NetServerHandler.disconnect(NetServerHandler.java:128) 08:50 PM [SEVERE] at org.getspout.spout.SpoutNetServerHandler.disconnect(SpoutNetServerHandler.java:560) 08:50 PM [SEVERE] at org.bukkit.craftbukkit.entity.CraftPlayer.kickPlayer(CraftPlayer.java:185) 08:50 PM [SEVERE] at com.modcrafting.ultrabans.commands.Kick.onCommand(Kick.java:113) 08:50 PM [SEVERE] at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40) 08:50 PM [SEVERE] ... 41 more
@bergerkiller
Uh... I'm getting it in Java 6_u29... and your latest version >_>
@bergerkiller
Ya. I know it's a balance between report info and screen space. Just thoughts and wishes. ;o)
I did notice that it's on the terminal output that I don't get the player count. I'm usually monitoring the server at work through terminal and it would be nice to have the player count in there. Maybe that could be a place for the other info as well. I want it mostly for checking performance balance and making adjustments to the config.
I may not be understanding something here but, would it be possible to have an option to dump chunks faster if the used RAM gets to close to the available RAM. I'm trying to offer as much as possible within a fairly tight RAM allotment and I don't know if that would help in some situations where it runs out of memory. If I don't understand, I'd really appreciate a link or pointers. Thanks!!
@robxu9 I looked at that error today and couldn't find a real cause for it. In 1.52.9 I replaced the values iterator with an entryset iterator in the hopes of getting rid of that error. (it appears that only Java 7 has that issue, on Java 6 I had no issues...)
So try the 1.52.9 version which does try to fix that issue.
Oh god, this is like a horror movie on the console:
http://slexy.org/view/s2wLsua1Jh
Every second I get that. Just that same thing.
@Chrispm84
Getting this aswell
@bergerkiller: I just thought that I'd report this issue. I've had them in the past and they've usually been caused by spout, but I'm on the latest spout dev build. Anyways, here's the error on pastebin.com: http://pastebin.com/pxpwfbZx
@SERVERCONSOLE I could add millions of counts, but sadly the chat isn't large enough to enable them all :) Did consider it though...having some sort of bar like the memory bar, but then for entities. And I believe the player count is still shown.
Getting ready to upload 1.52.7. Thanks for the fixes!
Wasn't there a player count in the previous monitor report? Could you add that (back) in?
Also wondering if you could add counts for mob types (aggr/pass/aqua)?
Thanks!
@Pantheis Yes, it will.
Also, updated it to 1.52.7, fixing some issues with the meta data and added event thread checking. (to prevent lots of other errors in other plugins if some plugin misbehaves)