XreatOptimizer
针对 Minecraft 服务器(1.8-1.21.11+)的高级性能优化方案
XreatOptimizer 是一款 Bukkit/Spigot 性能插件,通过智能运行时调整来提升服务器的 TPS。它使用二级控制循环,根据实时服务器指标协调多个优化系统。
快速信息
|
|
| 支持版本 |
Minecraft 1.8 - 1.21.11+ |
| 服务器类型 |
Spigot、Paper、Purpur 及其分支 |
| 所需 Java 版本 |
Java 11+ 运行时(推荐 1.21.x 使用 Java 21+) |
| 内存占用 |
基础 ~5-10MB + 监控开销 |
功能介绍
- 实时监控 TPS、内存、实体和区块
- 自动调整 优化配置文件以应对服务器负载
- 降低 服务器压力下的视距
- 启用 服务器空闲时的低功耗模式
- 合并 附近的掉落物和经验球(可选)
- 移除 旧物品并显示倒计时警告(可选)
- 提供 Web 仪表盘和 Prometheus 指标(可选)
默认安全
高风险功能默认禁用。你必须显式启用它们。
已启用:
- 性能监控
- 自动配置文件管理
- 内存节省
- 动态视距
- 空服低功耗模式
未启用(需手动开启):
- 物品移除
- 自动清理
- 休眠
- 预测性加载
- 红石/漏斗优化
- 仪表盘 & Prometheus
- AI 节流
- 自动区块卸载
- 堆叠融合
安装
1. 将 XreatOptimizer.jar 放入 plugins/ 目录
2. 重启服务器
3. 编辑 plugins/XreatOptimizer/config.yml(可选)
4. 运行 /xreatopt stats 进行验证
命令
| 命令 |
描述 |
/xreatopt stats |
显示实时性能指标 |
/xreatopt report |
快速性能摘要 |
/xreatopt boost |
运行手动优化流程 |
/xreatopt reload |
重新加载配置 |
/xreatgui |
打开控制面板 |
别名: /xreat、/xopt、/xoptgui
权限
| 权限 |
默认值 |
描述 |
xreatopt.view |
op |
查看统计数据和 GUI |
xreatopt.admin |
op |
使用管理命令 |
配置
# 核心
level2_control:
enabled: true
# 空服模式
empty_server:
enabled: true
delay_seconds: 30
# 可选功能(默认禁用)
item_removal:
enabled: false
auto_clear:
enabled: false
hibernate:
enabled: false
predictive_loading:
enabled: false
web_dashboard:
enabled: false
metrics:
prometheus:
enabled: false
advanced_entity_optimizer:
stack_fusion: false
Web 仪表盘
启用后,仪表盘提供以下服务:
| 端点 |
描述 |
/ |
主仪表盘 |
/api/stats |
当前指标(TPS、内存、实体等) |
/api/history |
历史数据 (`?range=recent |
/api/config |
功能标志和阈值 |
/api/system |
服务器概览 |
认证: 设置 web_dashboard.auth_token 以通过 ?token=YOUR_TOKEN 或 Authorization: Bearer YOUR_TOKEN 要求身份验证。
常见问题
Q: 为什么我的服务器占用这么多 RAM?
A: Java 服务器本质上会占用大量内存。显示的内存包括整个 JVM(堆 + 非堆部分,如 JIT 编译、元空间、线程栈)。XreatOptimizer 的实际内存占用约为 5-10MB。
Q: 这会删除我的世界数据吗?
A: 不会。XreatOptimizer 永远不会删除世界数据、区块或玩家数据。它仅调整运行时参数,如视距和实体 AI。
Q: 我可以将其与其他优化插件一起使用吗?
A: 请先在测试服务器上试用。多个优化插件可能会发生冲突。
Q: 这适用于最新的 Minecraft 版本吗?
A: 是的。该插件积极支持 Spigot、Paper 和 Purpur 上的 Minecraft 1.8 至 1.21.11+。
构建
mvn clean package
需要 Maven 和 Java 21+。
许可证
请参阅 LICENSE 文件。
下载: SpigotMC | 网站: xreatlabs.space
XreatOptimizer
Advanced performance optimization for Minecraft servers (1.8-1.21.11+)
XreatOptimizer is a Bukkit/Spigot performance plugin that improves server TPS through intelligent runtime adjustments. It uses a Level 2 control loop to coordinate multiple optimization systems based on real-time server metrics.
Quick Facts
|
|
| Supported Versions |
Minecraft 1.8 - 1.21.11+ |
| Server Types |
Spigot, Paper, Purpur, and forks |
| Java Required |
Java 11+ runtime (Java 21+ recommended for 1.21.x) |
| Memory Footprint |
~5-10MB base + monitoring overhead |
What It Does
- Monitors TPS, memory, entities, chunks in real-time
- Adjusts optimization profile automatically based on server load
- Lowers view distance when server is under pressure
- Activates low-power mode when server is empty
- Merges nearby dropped items and XP orbs (optional)
- Removes old items with countdown warnings (optional)
- Provides web dashboard and Prometheus metrics (optional)
Safe by Default
Riskier features are disabled by default. You must explicitly enable them.
Enabled:
- Performance monitoring
- Automatic profile management
- Memory saver
- Dynamic view distance
- Empty-server low-power mode
Disabled (opt-in):
- Item removal
- Auto clear
- Hibernation
- Predictive loading
- Redstone/hopper optimization
- Dashboard & Prometheus
- AI throttling
- Automatic chunk unloading
- Stack fusion
Installation
1. Put XreatOptimizer.jar in plugins/
2. Restart server
3. Edit plugins/XreatOptimizer/config.yml (optional)
4. Run /xreatopt stats to verify
Commands
| Command |
Description |
/xreatopt stats |
Show live performance metrics |
/xreatopt report |
Quick performance summary |
/xreatopt boost |
Run manual optimization pass |
/xreatopt reload |
Reload configuration |
/xreatgui |
Open control panel |
Aliases: /xreat, /xopt, /xoptgui
Permissions
| Permission |
Default |
Description |
xreatopt.view |
op |
View stats and use GUI |
xreatopt.admin |
op |
Use admin commands |
Configuration
# Core
level2_control:
enabled: true
# Empty server mode
empty_server:
enabled: true
delay_seconds: 30
# Optional features (disabled by default)
item_removal:
enabled: false
auto_clear:
enabled: false
hibernate:
enabled: false
predictive_loading:
enabled: false
web_dashboard:
enabled: false
metrics:
prometheus:
enabled: false
advanced_entity_optimizer:
stack_fusion: false
Web Dashboard
When enabled, the dashboard serves:
| Endpoint |
Description |
/ |
Main dashboard |
/api/stats |
Current metrics (TPS, memory, entities, etc.) |
/api/history |
Historical data (`?range=recent |
/api/config |
Feature flags and thresholds |
/api/system |
Server overview |
Authentication: Set web_dashboard.auth_token to require authentication via ?token=YOUR_TOKEN or Authorization: Bearer YOUR_TOKEN.
Common Questions
Q: Why does my server use so much RAM?
A: Java servers inherently use significant memory. The memory shown includes the entire JVM (heap + non-heap like JIT compilation, metaspace, thread stacks). XreatOptimizer's actual footprint is ~5-10MB.
Q: Will this delete my world data?
A: No. XreatOptimizer never deletes world data, chunks, or player data. It only adjusts runtime parameters like view distance and entity AI.
Q: Can I use this with other optimization plugins?
A: Test on a staging server first. Multiple optimization plugins can conflict.
Q: Does this work on the latest Minecraft version?
A: Yes. The plugin actively supports Minecraft 1.8 through 1.21.11+ on Spigot, Paper, and Purpur.
Building
mvn clean package
Requires Maven and Java 21+.
License
See LICENSE file.
Download: SpigotMC | Website: xreatlabs.space
评论 0
登录后参与评分
还没有评论,来抢沙发吧