LagXpert Free v2.7 — 自主优化器与卡顿诊断
LagXpert 是一款支持多平台(Folia/Paper/Spigot/Bukkit)并兼容基岩版的 Minecraft 服务器性能插件。它主要做两件事:随着负载变化自动进行优化,并告诉你服务器卡顿的原因和位置。
v2.7 更新内容
卡顿诊断
大多数性能插件只会告诉你 TPS。更难的问题是哪个区块正在拖我后腿。/lagxpert diagnose 命令可以回答这个问题。
- 根据相对限制对区块进行排名,而非原始计数。 一个拥有 40 只生物但上限为 200 的区块是正常的。一个拥有 12 个漏斗但上限为 8 的区块才是问题所在。按原始计数排名会选出错误的区块。
- 使用当前实际生效的限制,因此报告内容与玩家此刻的体验相符。
- 统计干预历史。 如果一个区块在过去一小时内被插件清理过二十次,它的排名会高于那些仅仅只是“满”了的区块。
- 用通俗语言解释原因。 无论是负载集中在少数区块还是遍布各处、哪种违规类型占主导、内存压力是否是真正的罪魁祸首、哪个世界承载了负载——以及当原因超出 LagXpert 的处理范围时,让你停止在错误的地方寻找。
- 诊断卡顿不会造成卡顿。 区块快照在所属线程上获取;所有评分过程都在异步进行。结果会短暂缓存,以便同时执行的命令和 GUI 共享一次扫描。
交互式 GUI 提供五个屏幕:概览、分页的热点列表、带有传送按钮的单区块详细分析、纠正操作审计追踪以及历史趋势图。
优先适配基岩版的 GUI 渲染
此处的基岩版支持是结构性的,而非装饰性的。屏幕尺寸来自配置的安全尺寸,每个槽位的位置都基于该实际尺寸计算,因此不会放置任何基岩版客户端无法渲染的内容。Geyser 翻译效果不佳的材质会自动替换,lore(描述文本)会被截断,如果某个物品栏完全无法打开,完整报告将以聊天文本形式发送。
紧急控制器
一个具有迟滞效应以防止状态抖动的四级状态机(NORMAL → WARNING → CRITICAL → EMERGENCY)。每个状态应用分级且可配置的响应措施:生物上限降低、自然生成阻止、强制物品清理、激进区块卸载、AI 距离缩减、红石时钟关闭、全服 AI 冻结,以及可选的自定义命令。
在 v2.7 中,EMERGENCY 层级变得可达,且最后四项响应措施变为功能可用——此前它们虽然可配置和显示,但从未执行。
自适应阈值
每个区块的限制都会根据服务器健康状况进行缩放。结合了两个输入指标:来自 TPS 和内存的连续健康数据,以及离散的紧急状态。两者中更严格的那个胜出;它们永远不会相乘,否则会导致数值叠加到无法游玩的程度。限制只会向下缩放——你配置的值始终是上限——并设有一个可配置的下限。通过 lagxpert.limits.* 权限授予的玩家专属限制会原样保留。
优化配置文件
四种预设配置文件(relaxed, balanced, aggressive, performance),通过 /lagxpert profile <name> 应用。应用配置文件时会快照它所替代的值,因此 revert(恢复)命令能还原你的配置,而不是假设的默认值。auto-revert-minutes 用于防止在处理故障时应用了激进配置文件却忘记撤销的情况。
功能特性
自主优化
- 具有分级状态响应的紧急控制器
- 针对生物、存储、实体和红石的自适应限制
- 智能调度器,根据状态和优先级调整任务间隔:低优先级任务在 WARNING 状态下暂停,紧急优先级任务运行速度最高提升 4 倍
- 闭环机制:检测 → 行动 → 记录
- 所有纠正操作的完整审计追踪,可在游戏内查询
诊断与监控
- 带有通俗语言结论的排名区块热点分析
- 带有传送至热点功能的交互式诊断 GUI
- 1/5/15 分钟窗口内的 TPS、刻时间、卡顿尖峰检测
- 性能历史记录,支持可配置的时间间隔和保留策略,持久化至磁盘
- 每日最差时段检测、峰值玩家追踪、实体增长趋势
限制与清理
- 针对生物、漏斗、箱子、熔炉、 barrels(木桶)、发射器、投掷器、潜影盒、TNT、活塞和观察者的单区块限制
- 带有泛洪填充断路器的红石电路追踪
- 带有警告和深渊回收系统的物品清理器
- 实体清理:无效、重复、废弃、越界以及超过实体上限的区块中的实体
- 智能移除生物,保护命名、驯服、拴绳、骑乘和装备了物品的实体
- 生物 AI 优化器(基于距离和按类型)
- 爆炸半径控制与连锁反应预防
- 载具限制与废弃载具清理
- 鞘翅速度限制与引雷冷却
- 线程安全的控制台日志过滤器
管理
- 交互式 GUI 配置(
/lagxpertgui)
- 按世界覆盖的配置
- 覆盖所有子系统的热重载
- bStats 指标集成
模块与配置文件
| 模块 |
配置文件 |
说明 |
| General |
config.yml |
模块开关、自适应阈值、操作日志、性能历史 |
| Mobs |
mobs.yml |
生物上限、AI 优化器、智能移除 |
| Storage |
storage.yml |
每个区块的方块上限 |
| Redstone |
redstone.yml |
电路追踪、泛洪填充破坏器 |
| Alerts |
alerts.yml |
通知开关、冷却时间、速率限制 |
| Task Scanner |
task.yml |
自动区块扫描间隔 |
| Item Cleaner |
itemcleaner.yml |
地面物品清理 + Abyss 恢复 |
| Entity Cleanup |
entitycleanup.yml |
实体移除目标、每区块实体上限 |
| Monitoring |
monitoring.yml |
TPS、内存、区块、卡顿峰值阈值 |
| Chunks |
chunks.yml |
区块加载/卸载、预加载 |
| Emergency Controller |
emergency-controller.yml |
状态阈值、分级响应 |
| Vehicles |
vehicles.yml |
载具上限、废弃清理 |
| Abilities |
abilities.yml |
鞘翅速度、激流冷却 |
| Explosions |
explosions.yml |
爆炸半径、连锁反应预防 |
| Console Filter |
console-filter.yml |
控制台日志正则过滤器 |
| Profiles |
profiles.yml |
优化预设 |
| Messages |
messages.yml |
所有插件消息(i18n) |
命令
| 命令 |
说明 |
权限 |
/lagxpert |
主命令和帮助 |
lagxpert.use |
/lagxpert diagnose [chat|refresh] |
查找导致卡顿的原因及其位置 |
lagxpert.admin.diagnostics |
/lagxpert status |
性能仪表板 |
lagxpert.admin.status |
/lagxpert optimize |
完整优化流程,包含优化前后对比 |
lagxpert.admin.optimize |
/lagxpert emergency [status|force-normal] |
紧急状态控制 |
lagxpert.admin.emergency |
/lagxpert profile [list|<name>|revert] |
应用优化配置 |
lagxpert.admin.profile |
/lagxpert reload |
热重载所有配置和子系统 |
lagxpert.admin |
/lagxpert inspect <x> <z> [world] |
检查特定区块 |
lagxpert.admin |
/lagxpertgui [open|diagnostics] |
交互式图形界面 |
lagxpert.gui |
/chunkstatus |
当前区块使用信息 |
lagxpert.chunkstatus |
/tps |
服务器性能指标 |
lagxpert.tps |
/abyss |
恢复最近被清除的物品 |
lagxpert.abyss |
/clearitems [all|world] |
手动清理物品 |
lagxpert.clearitems |
权限
lagxpert.admin 包含所有 lagxpert.admin.* 节点。更细粒度的节点允许为受限管理员授予单一能力,而不赋予其他权限——例如,仅拥有只读诊断功能,而无法重写配置文件或移除实体。
| 权限 |
默认值 |
说明 |
lagxpert.use |
true |
基本命令访问权限 |
lagxpert.admin |
op |
所有管理命令 |
lagxpert.admin.status |
op |
只读性能仪表板 |
lagxpert.admin.diagnostics |
op |
只读卡顿分析和诊断 GUI |
lagxpert.admin.diagnostics.teleport |
op |
从 GUI 传送至问题区块 |
lagxpert.admin.optimize |
op |
运行优化(移除实体、卸载区块) |
lagxpert.admin.emergency |
op |
紧急控制,包括强制恢复正常 |
lagxpert.admin.profile |
op |
应用配置(重写配置文件) |
lagxpert.gui |
op |
GUI 访问权限 |
lagxpert.chunkstatus |
true |
区块状态命令 |
lagxpert.tps |
true |
TPS 命令 |
lagxpert.abyss |
true |
物品恢复 |
lagxpert.clearitems |
op |
手动清理 |
lagxpert.emergency.notify |
op |
接收紧急状态广播 |
lagxpert.monitoring.alerts |
op |
接收性能警报 |
lagxpert.alerts.receive |
op |
接收所有限制警报 |
lagxpert.bypass.mobs |
false |
绕过生物上限和紧急生成阻止 |
lagxpert.bypass.redstone |
false |
绕过红石控制 |
lagxpert.bypass.abilities |
false |
绕过能力限制 |
lagxpert.bypass.* |
false |
绕过所有限制 |
lagxpert.limits.mobs.<N> |
false |
玩家或等级的自定义生物上限 |
lagxpert.limits.hoppers.<N> |
false |
玩家或等级的自定义漏斗上限 |
lagxpert.notifications.mob-removal |
false |
接收附近生物移除通知 |
lagxpert.console.view-filtered |
false |
在聊天中接收被屏蔽的控制台消息 |
安装
- 将
LagXpert-2.7.jar 放入 plugins/ 目录
- 启动服务器以生成配置文件
- 运行
/lagxpert diagnose 查看服务器当前状态
- 根据需要调整
.yml 文件
- 执行
/lagxpert reload 无需重启即可应用更改
从 v2.6.x 升级
- 停止服务器并替换 jar 文件
- 重启服务器以生成
emergency-controller.yml 和 profiles.yml
- 现有配置保持兼容;新键使用安全默认值
lagshield.yml 已不再使用,可以删除
要求
- Java 11+
- Minecraft 1.16+ (Spigot / Paper / Purpur / Folia)
- 无必需依赖项。Geyser 和 Floodgate 是用于基岩版玩家检测的可选软依赖项。
开发者 API
// 响应区块过载
@EventHandler
public void onChunkOverload(ChunkOverloadEvent event) {
event.getChunk();
event.getCause();
}
// 统计区块内容
LagXpertAPI.countLivingEntitiesInChunk(chunk);
LagXpertAPI.countTileEntitiesInChunk(chunk, Material.HOPPER);
LagXpertAPI.countAllShulkerBoxesInChunk(chunk);
// 读取配置的限值
LagXpertAPI.getMobLimit();
LagXpertAPI.getHopperLimit();
LagXpertAPI.getLimitForMaterial(Material.HOPPER); // 如果未管理则返回 -1
由于 v2.7 中的限值是动态的,LagXpertAPI 返回的是配置值。如需获取当前正在执行的限值,请通过自适应引擎:
AdaptiveThresholdEngine adaptive = AdaptiveThresholdEngine.getInstance();
```java
// 当前生效的限制,在生命值和紧急缩放之后
adaptive.getEffectiveMobLimit(world);
adaptive.getEffectiveLimit(LimitCategory.STORAGE, ConfigManager.getMaxHoppersPerChunk(world));
adaptive.isCurrentlyThrottling();
// 服务器状态、审计跟踪和历史记录
EmergencyController.getInstance().getCurrentState();
ActionLogger.getInstance().getRecent(50);
PerformanceHistory.getInstance().getEntityTrend(6);
// 诊断报告(回调在主线程上运行)
LagDiagnosticsEngine.getInstance().requestReport(false, report -> {
if (report == null) return; // 扫描已在运行中
report.getTopChunks(10);
report.getObservations();
});
按世界覆盖配置
将以其世界名称命名的文件放入 plugins/LagXpert/config/worlds/ 目录,以仅针对该世界覆盖全局设置。需要在 config.yml 中启用 per-world-settings.enabled: true。
支持的路径:
limits:
mobs-per-chunk, hoppers-per-chunk, chests-per-chunk, furnaces-per-chunk,
blast_furnaces-per-chunk, smokers-per-chunk, barrels-per-chunk,
droppers-per-chunk, dispensers-per-chunk, shulker_boxes-per-chunk,
tnt-per-chunk, pistons-per-chunk, observers-per-chunk
entity-cleanup:
advanced:
max-entities-per-chunk # 该世界的实体总数上限
chunk-management:
auto-unload:
inactivity-threshold-minutes
preload:
enabled
monitoring:
tps:
alert-thresholds:
warning, critical
任何未指定的值将回退到全局值。按世界设置的值在负载下仍会由自适应引擎进行缩放调整。
限制值为 0 表示“无限制”,而非“禁止”。 使用 1 可实现最严格的限制。
Folia 支持
Folia 将服务器划分为独立刻更新的区域,实体只能被拥有其所在区块的线程访问。LagXpert 尊重这一机制:所有读取或移除实体的操作都通过区域调度器按区块分发执行。这涵盖了物品清理器、实体清理、载具清理、按区块实体修剪、紧急 AI 冻结、诊断扫描以及快照和优化报告中的实体计数等功能。
在 Spigot 和 Paper 上,相同的分发机制会在多个刻中将区块分批处理,从而将一次长时间卡顿的刻拆分为多次短暂的刻。这一点至关重要,因为这些清理操作恰好是在服务器已经承受压力时运行的。
一个后果是,清理总数仅在清理扫描完成时才会返回,因此 /clearitems 和 /lagxpert optimize 会在命令完成时报告结果。
已知限制
- 没有自动化测试套件;验证是针对构建产物手动执行的。
/lagxpert optimize 报告的 TPS 为滚动平均值,而非命令前后的差值,因为在该命令的执行期间平均值无法发生显著变化。
支持
Discord:
bStats 插件 ID: 25746
LagXpert Free v2.7 — Autonomous Optimizer & Lag Diagnostics
LagXpert is a Minecraft server performance plugin with multi-platform support
(Folia/Paper/Spigot/Bukkit) and Bedrock compatibility. It does two things: it
optimizes automatically as load changes, and it tells you why your server is
lagging and where.
What's New in v2.7
Lag Diagnostics
Most performance plugins tell you your TPS. The harder question is which build is
doing this to me. /lagxpert diagnose answers that.
- Ranks chunks relative to their limits, not by raw counts. A chunk with 40
mobs against a limit of 200 is fine. A chunk with 12 hoppers against a limit of
8 is the problem. Ranking by raw count surfaces the wrong chunks.
- Uses the limits actually in force, so the report matches what players are
experiencing right now.
- Counts intervention history. A chunk the plugin has cleaned up twenty times
in the last hour ranks above one that is merely full.
- Explains itself in plain language. Whether load is concentrated in a few
chunks or spread everywhere, which violation type dominates, whether memory
pressure is the real culprit, which world carries the load — and when the cause
is outside LagXpert's scope, so you stop looking in the wrong place.
- Diagnosing lag does not cause lag. Chunk snapshots are taken on the owning
thread; all scoring happens asynchronously. Results are cached briefly so a
command and a GUI opened together share one scan.
An interactive GUI provides five screens: overview, paginated hotspot list,
per-chunk drill-down with a teleport button, the corrective-action audit trail,
and historical trends.
Bedrock-first GUI rendering
Bedrock support here is structural, not cosmetic. Screen sizes come from the
configured safe size and every slot position is computed from that actual
size, so nothing is placed where a Bedrock client cannot render it. Materials
Geyser translates badly are substituted automatically, lore is capped, and if an
inventory cannot be opened at all the full report is delivered as chat text.
Emergency Controller
A four-level state machine (NORMAL → WARNING → CRITICAL → EMERGENCY) with
hysteresis to prevent flapping. Each state applies graduated, configurable
responses: mob cap reduction, natural spawn blocking, forced item cleanup,
aggressive chunk unloading, AI distance reduction, redstone clock shutdown,
server-wide AI freeze, and optional custom commands.
In v2.7 the EMERGENCY tier became reachable and the last four responses became
functional — previously they were configurable and displayed but never executed.
Adaptive Thresholds
Every per-chunk limit scales with server health. Two inputs are combined:
continuous health from TPS and memory, and the discrete emergency state. The
more restrictive of the two wins; they are never multiplied, which would
compound into unplayable values. Limits are only ever scaled down — your
configured value is always the ceiling — with a configurable floor. Per-player
limits granted via lagxpert.limits.* permissions are honored verbatim.
Optimization Profiles
Four presets (relaxed, balanced, aggressive, performance) applied with
/lagxpert profile <name>. Applying a profile snapshots the values it replaces,
so revert restores your configuration rather than an assumed default.
auto-revert-minutes guards against applying an aggressive profile during an
incident and forgetting about it.
Features
Autonomous optimization
- Emergency Controller with graduated per-state responses
- Adaptive limits for mobs, storage, entities and redstone
- Smart scheduler that adjusts task intervals by state and priority: low-priority
tasks pause during WARNING, emergency-priority tasks run up to 4x faster
- Closed loop: detect → act → log
- Full audit trail of every corrective action, queryable in-game
Diagnostics & monitoring
- Ranked chunk hotspot analysis with plain-language conclusions
- Interactive diagnostics GUI with teleport-to-hotspot
- TPS across 1/5/15-minute windows, tick times, lag spike detection
- Performance history with configurable interval and retention, persisted to disk
- Worst-hour-of-day detection, peak player tracking, entity growth trends
Limits & cleanup
- Per-chunk limits for mobs, hoppers, chests, furnaces, barrels, droppers,
dispensers, shulker boxes, TNT, pistons and observers
- Redstone circuit tracking with flood-fill circuit breaker
- Item cleaner with warnings and the Abyss recovery system
- Entity cleanup: invalid, duplicate, abandoned, out-of-bounds, and chunks over
the entity ceiling
- Smart mob removal protecting named, tamed, leashed, ridden and equipped
entities
- Mob AI optimizer (distance-based and per-type)
- Explosion radius control and chain-reaction prevention
- Vehicle limits and abandoned vehicle cleanup
- Elytra speed limit and Riptide cooldown
- Thread-safe console log filter
Administration
- Interactive GUI configuration (
/lagxpertgui)
- Per-world configuration overrides
- Hot reload covering every subsystem
- bStats metrics integration
Modules & Config Files
| Module |
Config File |
Description |
| General |
config.yml |
Module toggles, adaptive thresholds, action logger, performance history |
| Mobs |
mobs.yml |
Mob limits, AI optimizer, smart removal |
| Storage |
storage.yml |
Block limits per chunk |
| Redstone |
redstone.yml |
Circuit tracking, flood-fill breaker |
| Alerts |
alerts.yml |
Notification toggles, cooldowns, rate limits |
| Task Scanner |
task.yml |
Auto-chunk scan interval |
| Item Cleaner |
itemcleaner.yml |
Ground item cleanup + Abyss recovery |
| Entity Cleanup |
entitycleanup.yml |
Entity removal targets, per-chunk entity ceiling |
| Monitoring |
monitoring.yml |
TPS, memory, chunk, lag spike thresholds |
| Chunks |
chunks.yml |
Chunk loading/unloading, preloading |
| Emergency Controller |
emergency-controller.yml |
State thresholds, graduated responses |
| Vehicles |
vehicles.yml |
Vehicle limits, abandoned cleanup |
| Abilities |
abilities.yml |
Elytra speed, Riptide cooldown |
| Explosions |
explosions.yml |
Explosion radius, chain reaction prevention |
| Console Filter |
console-filter.yml |
Console log regex filters |
| Profiles |
profiles.yml |
Optimization presets |
| Messages |
messages.yml |
All plugin messages (i18n) |
Commands
| Command |
Description |
Permission |
/lagxpert |
Main command and help |
lagxpert.use |
/lagxpert diagnose [chat|refresh] |
Find what is causing lag and where |
lagxpert.admin.diagnostics |
/lagxpert status |
Performance dashboard |
lagxpert.admin.status |
/lagxpert optimize |
Full optimization pass with before/after |
lagxpert.admin.optimize |
/lagxpert emergency [status|force-normal] |
Emergency state control |
lagxpert.admin.emergency |
/lagxpert profile [list|<name>|revert] |
Apply optimization profiles |
lagxpert.admin.profile |
/lagxpert reload |
Hot-reload all configurations and subsystems |
lagxpert.admin |
/lagxpert inspect <x> <z> [world] |
Inspect a specific chunk |
lagxpert.admin |
/lagxpertgui [open|diagnostics] |
Interactive GUIs |
lagxpert.gui |
/chunkstatus |
Current chunk usage info |
lagxpert.chunkstatus |
/tps |
Server performance metrics |
lagxpert.tps |
/abyss |
Recover recently cleared items |
lagxpert.abyss |
/clearitems [all|world] |
Manual item cleanup |
lagxpert.clearitems |
Permissions
lagxpert.admin implies every lagxpert.admin.* node. The finer nodes exist so a
limited admin can be granted one capability without the rest — for example
read-only diagnostics without the ability to rewrite configs or remove entities.
| Permission |
Default |
Description |
lagxpert.use |
true |
Basic command access |
lagxpert.admin |
op |
All administrative commands |
lagxpert.admin.status |
op |
Read-only performance dashboard |
lagxpert.admin.diagnostics |
op |
Read-only lag analysis and diagnostics GUI |
lagxpert.admin.diagnostics.teleport |
op |
Teleport to a problem chunk from the GUI |
lagxpert.admin.optimize |
op |
Run optimization (removes entities, unloads chunks) |
lagxpert.admin.emergency |
op |
Emergency controls, including force-normal |
lagxpert.admin.profile |
op |
Apply profiles (rewrites config files) |
lagxpert.gui |
op |
GUI access |
lagxpert.chunkstatus |
true |
Chunk status command |
lagxpert.tps |
true |
TPS command |
lagxpert.abyss |
true |
Item recovery |
lagxpert.clearitems |
op |
Manual cleanup |
lagxpert.emergency.notify |
op |
Receive emergency state broadcasts |
lagxpert.monitoring.alerts |
op |
Receive performance alerts |
lagxpert.alerts.receive |
op |
Receive all limit alerts |
lagxpert.bypass.mobs |
false |
Bypass mob limits and emergency spawn blocking |
lagxpert.bypass.redstone |
false |
Bypass redstone control |
lagxpert.bypass.abilities |
false |
Bypass ability limits |
lagxpert.bypass.* |
false |
Bypass all limits |
lagxpert.limits.mobs.<N> |
false |
Custom mob limit for a player or rank |
lagxpert.limits.hoppers.<N> |
false |
Custom hopper limit for a player or rank |
lagxpert.notifications.mob-removal |
false |
Receive nearby mob removal notifications |
lagxpert.console.view-filtered |
false |
Receive suppressed console messages in chat |
Installation
- Drop
LagXpert-2.7.jar into plugins/
- Start the server to generate configuration files
- Run
/lagxpert diagnose to see your server's current state
- Adjust the
.yml files as needed
/lagxpert reload to apply changes without a restart
Upgrading from v2.6.x
- Stop the server and replace the jar
- Restart so
emergency-controller.yml and profiles.yml are generated
- Existing configs remain compatible; new keys use safe defaults
lagshield.yml is no longer used and can be deleted
Requirements
- Java 11+
- Minecraft 1.16+ (Spigot / Paper / Purpur / Folia)
- No required dependencies. Geyser and Floodgate are optional soft dependencies
used for Bedrock player detection.
Developer API
// React to chunk overloads
@EventHandler
public void onChunkOverload(ChunkOverloadEvent event) {
event.getChunk();
event.getCause();
}
// Count contents of a chunk
LagXpertAPI.countLivingEntitiesInChunk(chunk);
LagXpertAPI.countTileEntitiesInChunk(chunk, Material.HOPPER);
LagXpertAPI.countAllShulkerBoxesInChunk(chunk);
// Read configured limits
LagXpertAPI.getMobLimit();
LagXpertAPI.getHopperLimit();
LagXpertAPI.getLimitForMaterial(Material.HOPPER); // -1 if unmanaged
Because limits are dynamic in v2.7, LagXpertAPI returns the configured
value. For the limit currently being enforced, go through the adaptive engine:
AdaptiveThresholdEngine adaptive = AdaptiveThresholdEngine.getInstance();
// Limit in force right now, after health and emergency scaling
adaptive.getEffectiveMobLimit(world);
adaptive.getEffectiveLimit(LimitCategory.STORAGE, ConfigManager.getMaxHoppersPerChunk(world));
adaptive.isCurrentlyThrottling();
// Server state, audit trail and history
EmergencyController.getInstance().getCurrentState();
ActionLogger.getInstance().getRecent(50);
PerformanceHistory.getInstance().getEntityTrend(6);
// Diagnostics report (callback runs on the main thread)
LagDiagnosticsEngine.getInstance().requestReport(false, report -> {
if (report == null) return; // a scan was already running
report.getTopChunks(10);
report.getObservations();
});
Per-world overrides
Drop a file named after your world into plugins/LagXpert/config/worlds/ to
override global settings for that world only. Requires
per-world-settings.enabled: true in config.yml.
Supported paths:
limits:
mobs-per-chunk, hoppers-per-chunk, chests-per-chunk, furnaces-per-chunk,
blast_furnaces-per-chunk, smokers-per-chunk, barrels-per-chunk,
droppers-per-chunk, dispensers-per-chunk, shulker_boxes-per-chunk,
tnt-per-chunk, pistons-per-chunk, observers-per-chunk
entity-cleanup:
advanced:
max-entities-per-chunk # total entity ceiling for this world
chunk-management:
auto-unload:
inactivity-threshold-minutes
preload:
enabled
monitoring:
tps:
alert-thresholds:
warning, critical
Anything omitted falls back to the global value. Per-world values are still
scaled down by the adaptive engine under load.
A limit of 0 means "no limit", not "ban". Use 1 for the strictest
possible restriction.
Folia support
Folia splits the server into independently ticking regions, and an entity may
only be touched by the thread that owns its chunk. LagXpert honors that: every
operation that reads or removes entities is dispatched per chunk through the
region scheduler. This covers the item cleaner, entity cleanup, vehicle cleanup,
per-chunk entity trimming, the emergency AI freeze, the diagnostics scan, and
even entity counting for snapshots and the optimize report.
On Spigot and Paper the same dispatch runs chunks in batches across ticks, which
turns one long stalling tick into several short ones. That matters because these
sweeps run precisely when the server is already under pressure.
A consequence is that cleanup totals arrive when a sweep finishes rather than
instantly, so /clearitems and /lagxpert optimize report their results on
completion.
Known limitations
- There is no automated test suite; verification is performed against the built
artifact.
/lagxpert optimize reports TPS as a rolling average rather than a
before/after delta, because the average cannot move within the span of the
command.
Support
Discord:
bStats Plugin ID: 25746
评论 0
登录后参与评分
还没有评论,来抢沙发吧