
版本:1.90.4 | CB 1.7.2
引用 lenis0012 的话:NoLagg 自 1.7.10 版本后便未再更新,更多信息请查看 BKCommonLib。
描述
NoLagg 由多个完全独立的组件构成,你可以自由启用或禁用它们。它们共同提供以下功能:
- 更优雅地发送区块,降低网络压力并减少处理峰值 阅读更多...
- 移除实体、在出现区块空洞时重新发送区块并清理服务器内存 阅读更多...
- 通过深入查看服务器每个刻(tick)的处理过程来检查服务器的刻率性能 阅读更多...
- 阻止大量物品生成并延迟其生成时间,以避免客户端冻结 阅读更多...
- 堆叠物品,支持按世界配置半径 阅读更多...
- 修复导致客户端重新计算光照(从而引发卡顿)的光照错误 阅读更多...
- 跟踪服务器性能指标,如实体数量、刻率、内存等 阅读更多...
- 修复服务器存在的各种错误(Patches 组件)
- 安排自动保存并强制将数据写入磁盘,以防止服务器崩溃时数据丢失(Saving 组件)
- 限制每个世界或全局允许生成的实体数量 阅读更多...
- 密切监控事件,当插件从其他线程调用主线程方法时发出警告 阅读更多...
- 显示详细消息以解释服务器冻结(锁定)的原因 [阅读更多]
- 新的 TNT 执行算法不仅更高效,而且能避免服务器冻结 阅读更多...
重要提示
首次安装 NoLagg 时,请打开 config.yml 并禁用你不需要的组件。这一点非常重要,因为某些组件可能会与你使用的其他插件发生冲突,或者可能无法适应你的需求类型。如果你在日志中看到一条 [Severe] 警告信息随后跟随着堆栈跟踪,这通常意味着主线程在 10 秒内没有响应。该警告并非错误,也不是 Bug,且与 NoLagg 无关。若要禁用此功能,请在 config.yml 中禁用 'threadlocknotifier'。此功能主要用于通知你是什么插件导致了服务器冻结(如果有的话)。它通常用于调试插件,因为它们可能因各种原因卡住。如果 NoLagg 确实出现在那里,则说明这是一个你应该报告的 Bug。
常见问题解答 (FAQ)
在报告任何问题、错误、故障、卡顿甚至发表评论之前,请仔细阅读本页面上的信息。这样做会让我和你的工作都轻松许多。
分离为 jar 文件
NoLagg 由多个可以单独启用和禁用的组件组成。这里说明了为什么不将其作为单独的 jar 文件发布给每个组件。请不要要求分离组件,我只会将你链接到此处。
Spigot 服务器
当你使用 Spigot 服务器时,并非所有组件都是必需的。ItemStacker、ItemBuffer、Spawn Limiter、Thread Checker 和 Thread Lock Notifier 组件是不需要的,因为 Spigot 拥有自己的实现来处理这些问题。如果你仍然希望使用这些组件中的任何一个,可以使用,但最好禁用 Spigot 的替代方案。
其他组件(如 TNT、Chunks、Lighting、Common 等)尚未在 Spigot 中实现(?),并提供额外的功能。
PTweaks
由于大家一直在询问这个问题,我干脆对这两个插件进行了对比。我不会讨论哪个在功能上更优,只会列出它们的重合功能与非重合功能。两个插件都提供了缓解 TNT 卡顿的解决方案,你可以自由选择自己喜欢的方案(两者的实现方式不同)。两个插件也都提供了更改区块保存时机与方式的功能,NoLagg 在此基础上还允许你配置服务器将数据写入磁盘的时机。PTweaks 提供了显示已用内存的功能,NoLagg Monitor 也有类似功能,但提供的信息更多一些。同样,这取决于个人偏好。区块持久化是 PTweaks 提供而 NoLagg 没有的功能。我将此功能从 NoLagg 中移除的原因是,其实现所消耗的算力比它解决的问题还要多(我之前曾有过这个功能)。如果你想尝试一下,PTweaks 是你的选择。Monster Limiter 也集成在 NoLagg 中,但它适用于所有实体,且选项更多。ChunkEdits 是一个棘手的问题:NoLagg chunks 实现了类似的功能,区别在于它还改变了区块发送的速率,这是 NoLagg chunks 的主要功能。此外,增加用于处理区块数据包的线程数量以及重用数据包原始数据的能力,带来了一些 PTweaks 无法提供的优势。
此外,NoLagg 还有许多其他功能是 PTweaks 不具备的,例如检查服务器 Tick 率、物品堆叠器、物品缓冲区、修复光照、清理服务器内存、重新发送区块、通过命令移除实体等(详见说明)。
简而言之:两个插件都提供一些重叠的功能,你需要仔细查看 PTweaks 和 NoLagg 的配置,并禁用会冲突的功能。例如,同时启用两个修改 TNT 爆炸效果的插件会产生奇怪的结果。请比较各项功能,做出决定,然后在 NoLagg 中启用你在 PTweaks 中不想要的功能,反之亦然。
NoLagg 出现在错误堆栈跟踪中
检查组件会在服务器中插入各种钩子以收集测量数据。具体来说,你会发现以下行偶尔会出现。这些钩子类在不进行检查时完全不起作用,除非堆栈跟踪在此处结束(异常后的第一行显示了该堆栈跟踪),否则它们不会导致任何问题。
- org.timedbukkit.craftbukkit.*
- com.bergerkiller.bukkit.common.internal.ChunkProviderServerHook
视频
以下是 BlueDevonMovies (lenis0012) 制作的视频:
指标统计
此插件会将服务器数量统计数据发送到 MCStats.org。你可以在 PluginMetrics/config.yml 文件中(全局)选择不加入统计。
链接
开发构建版本

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.
Links
Development Builds
下载 NoLagg
下载 NoLagg
下载 NoLagg
下载 NoLagg
下载 NoLagg
下载 NoLagg
下载 NoLagg
下载 NoLagg
下载 NoLagg
下载 NoLagg
兼容性
NoLagg 使用 BKCommonLib 来处理所有特定于实现的调用。即便如此,也不能保证它在所有未来版本中都能正常工作。只要确保你始终先将 BKCommonLib 更新到正确的版本,就不会有世界损坏或数据损失的风险。这样即使 NoLagg 出现兼容性问题,你也能看到正确的错误提示,从而知道何时进行更新。
通常情况下,NoLagg 将在所有未来的 Bukkit 构建版本中保持正常运行。这取决于 BKC(BKCommonLib)能够支持到什么程度。
已在 BKCommonLib 1.57 上测试。
更新日志
- 修复了 1.7.2 的支持问题(主要与 BKC 相关)
- 修复了方法弃用问题(block.getTypeId -> block.getType)
点击此处查看完整更新日志。
注意:如果你收到“主线程耗时过长”的警告信息和堆栈跟踪,并且显示 NoLagg 是可能的原因,请向我报告。我希望尽可能消除所有耗时过长的任务,并将负载分散到多个 tick 中处理。
对于其他可能导致线程锁定的问题,请阅读报告的堆栈跟踪。常见原因包括:
- 有人使用 WorldEdit 编辑世界的巨大区域
- 有人导致大量区块加载
- 插件在主线程中读取平面文件或数据库(常见 bug!)
对于使用 MCPC+ 和 MC 1.5.2 的用户:请在 chunks 组件中禁用“缓冲加载”,因为 BKCommonLib 中存在一个导致此功能故障的 bug。修复它需要为 1.5.2 启动一个新的 REVISITED 版本,这需要一些时间。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
插件
ExyliaPlugins 的库。
插件
通过对话框或铁砧界面帮助你的 Anthme
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
插件
用于绘制游戏内地图或在浏览器中随探索实时进行地图绘制的实时地图。







评论 0
登录后参与评分
还没有评论,来抢沙发吧