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 5, 2012Hi,
yesterday i get a error i never seen before: 1000 times this error java.lang.NullPointerException 2012-12-04 21:05:00 [SEVERE] at net.minecraft.server.ItemStack.getMaxStackSize(ItemStack.java:129) 2012-12-04 21:05:00 [SEVERE] at com.bergerkiller.bukkit.nolagg.itemstacker.StackingTask.isMaxed(StackingTask.java:75) 2012-12-04 21:05:00 [SEVERE] at com.bergerkiller.bukkit.nolagg.itemstacker.StackingTask.addNearby(StackingTask.java:120) 2012-12-04 21:05:00 [SEVERE] at com.bergerkiller.bukkit.nolagg.itemstacker.StackingTask.fillNearby(StackingTask.java:110) 2012-12-04 21:05:00 [SEVERE] at com.bergerkiller.bukkit.nolagg.itemstacker.WorldStackFormer.runAsync(WorldStackFormer.java:88) 2012-12-04 21:05:00 [SEVERE] at com.bergerkiller.bukkit.nolagg.itemstacker.StackFormer.run(StackFormer.java:104) 2012-12-04 21:05:00 [SEVERE] at com.bergerkiller.bukkit.common.AsyncTask$1.run(AsyncTask.java:44)
after 1000 time the error above, , i get every sec this error: 2012-12-04 21:05:01 [SEVERE] java.lang.NullPointerException
after a restart both errors are gone.... which item can produce that error?
-
View User Profile
-
Send Message
Posted Dec 5, 2012@bergerkiller
Here are my plugins, sorry for a bit late reaction :X
Some plugins i usualy use but not now becouse of buggs and/or outdated plugins.
- LogBlock
- LogBlockQuestioner
- WorldEdit
- PluginList
- iConomy
- ColoredSigns
- CFBanner
- Vault
- SoftLimit
- PermissionsEx
- Modifyworld
- NoCheat
- Moneydrop
- iChat
- AutoAnnouncer
- Essentials
- Factions
- EssentialsSpawn
- Orebfuscator [NOT USING]
- WorldBorder
- Heroes
- Buycraft
- ChestShop [NOT USING]
- Citizens
- EssentialsChat
- LWC
- MoneyDrop
- NoCheatPlus
- SimpleRegionMarket
- TreasureChest
- WorldGuard
- Websend
- Bankcraft
- BOSEconomy
- EssentialsProtect
- SpawnMob
- EnderPearlDisable
- VoxelSniper
- ECPortals
- BattleTags
- TagAPI
- EssentialsAntiBuild
- Portals
- Dinizens
- Citizens
- HeroScoreBoard
- cncp
- BKCommonLib
- Nolagg
- AntiInvisibilityPotion
-
View User Profile
-
Send Message
Posted Dec 5, 2012@kylepick Sorry, I no longer support that one. It's still there...but it might contain bugs, glitches or whatever that were fixed in the many versions after.
-
View User Profile
-
Send Message
Posted Dec 5, 2012can i have the file for 1.2.5 version plz
-
View User Profile
-
Send Message
Posted Dec 5, 2012@Darkhand81 The processing is probably caused by Orebfuscator, don't forget that it has to obfuscate all the chunks when sending it to clients. If it still supports this: enable the cache so this processing is faster.
-
View User Profile
-
Send Message
Posted Dec 4, 2012Looks like it's working! The paintings and such actually seem to load faster than Bukkit now, and I don't see any problems with Orebfuscator :)
I haven't yet noticed any drop in performance from this, but packet compression has spiked in this build... With 6 of 8 threads on the job, packet compression was reported by /nolagg monitor at just a few percent in the past when loading chunks or teleporting to a new area. With this version with one person it's in the 15-25% range, with spikes all the way up to 190%. A side effect of the entity fix or something else?
Thanks once again for your hard work! I can't imagine a server without Nolagg. :)
-
View User Profile
-
Send Message
Posted Dec 4, 2012I just updated both NoLagg and BKCommonLib to their most up to date dev builds and tested out the gate warps again. I just tested each one of my 5 gates multiple ways back and forth, especially the ones at low and high elevations that were having issues before, and it seemed to work about 9/10 perfectly fine without issues. There was just one time so far that I went again from my low elevation gate to my high elevation one and one chunk didn't load right away. I gave it about 30 seconds or so flying overhead and then it loaded. I'll keep going to see if it repeats.
-
View User Profile
-
Send Message
Posted Dec 4, 2012Can everyone that had problems with:
Please test the development version (see top page for link). There are several fixes for the above in there, but for some of them I need confirmation that it is fixed.
-
View User Profile
-
Send Message
Posted Dec 4, 2012@Darkhand81 Bug confirmed, and I'm now looking into fixing it. Note that it isn't just item frames, it isn't sending entity spawn messages at ALL. This includes mobs, items and possibly other players, too. I think something changed in CraftBukkit and I have to change some of my (now outdated) logic.
EDIT
Fixed it. I added a tick delay between sending the chunk and sending the messages for the entities inside the chunk. Double-checking it and then I'll put it in the dev build.
EDIT2
The development build has been updated. In that version all entities properly spawn again when you join the server. It also gets rid of the duplicate processing times in the examiner for the chunk sending task. (chunk loading was shown twice, both as server operation and as a task)
-
View User Profile
-
Send Message
Posted Dec 4, 2012@bergerkiller
Thanks! I thought it was normal as well since I've used Nolagg for so long, but when I removed it to test the non-existent login problem, the problem was completely eliminated; the walls populated in less than a second.
-
View User Profile
-
Send Message
Posted Dec 4, 2012@Darkhand81 Hmm interesting because I thought it was always happening. I'll do some tests myself, could be I have to change the chunk send timing.
-
View User Profile
-
Send Message
Posted Dec 4, 2012@bergerkiller
Followup: Seems to be working, but are wall items such as pictures and itemframes handled differently in the last few versions? Upon login, a starting room filled with paintings will have bare walls until you move around for a few seconds (or wait for over a minute, presumably while other chunks are loading). Doesn't happen with regular Bukkit chunk sending. It's been something I've noticed for quite a while but it seems to be a bit more prevalent with this one (or maybe it's just me).
-
View User Profile
-
Send Message
Posted Dec 4, 2012@Darkhand81 @MrMime22 Pfew you had me worrying me there for a second, because I did have to rewrite some stuff in the chunks component. Glad it's not me this time. Let me know if you find anything else.
-
View User Profile
-
Send Message
Posted Dec 4, 2012@skewtz
Hah! It figures that I would try updating NoLagg during a ddos. :) Sorry for the scare! I'll go to offline mode and test again.
-
View User Profile
-
Send Message
Posted Dec 4, 2012@MrMime22 @Darkhand81 Those errors are not from Nolagg! The minecraft account servers are being most likely ddos'd atm. I'm also having trouble logging into a minecraft server.
-
View User Profile
-
Send Message
Posted Dec 4, 2012Failed to login: Error
-
View User Profile
-
Send Message
Posted Dec 4, 2012@bergerkiller
EDIT: Stupidly thought the Indev version was causing login problems, but it was a PEBKAC issue: first login of the day, testing NoLagg, and it happened to be during a login server outage. :) Trying again in offline mode!
-
View User Profile
-
Send Message
Posted Dec 4, 2012Everyone: Please try the development version. See the top page link for this development version. If you use any other of my plugins, use the ones in that download. BKCommonLib HAS to be updated!!!
-
View User Profile
-
Send Message
Posted Dec 3, 20122012-12-03 23:11:18 [SEVERE] [NoLagg Chunks] An error occured in Orebfuscator: support for this plugin had to be removed! 2012-12-03 23:11:18 [SEVERE] java.lang.NoSuchMethodError: com.lishid.orebfuscator.obfuscation.Calculations.Obfuscate(Lnet/minecraft/server/Packet51MapChunk;Lorg/bukkit/craftbukkit/entity/CraftPlayer;Z[B)V 2012-12-03 23:11:18 [SEVERE] at com.bergerkiller.bukkit.nolagg.chunks.ChunkCompressionThread.getCompressedPacket(ChunkCompressionThread.java:247) 2012-12-03 23:11:18 [SEVERE] at com.bergerkiller.bukkit.nolagg.chunks.ChunkCompressionThread.run(ChunkCompressionThread.java:275) 2012-12-03 23:11:18 [SEVERE] at com.bergerkiller.bukkit.common.AsyncTask$1.run(AsyncTask.java:44)
-
View User Profile
-
Send Message
Posted Dec 3, 2012I was about to post about Orebfuscator too Berger, thanks! :)
It may not be approved yet, but it's up already. If you subscribe to file updates you can get them before they're approved:
http://dev.bukkit.org/server-mods/orebfuscator/files/93-orebfuscator-1-7-6/
EDIT: Approved now!