? 概览
别再猜测服务器的承载上限,直接测量它。
ServerLimitGauge 是一款专为 Minecraft 服务器(Spigot、Paper、Purpur、Folia)设计的专业基准测试工具。与通用的硬件基准测试(如 Geekbench)不同,该插件测量的是**“实际的 Minecraft 性能”**。
它通过真实场景——区块生成、实体 AI 处理和数学物理运算——对服务器施加压力,从而计算出可靠的**“推荐玩家数量”和“服务器等级”**(从 SSS 到 C)。
为什么要使用它?
- “我买了 i9 配置的服务器,但依然卡顿。” ? 识别是磁盘 I/O 还是内存瓶颈。
- “我能承载多少玩家?” ? 获得计算出的估算值,而非凭空猜测。
- “我的服务器主机是否在欺骗我?” ? 可视化真实性能。
✨ 主要功能
- ? 真实世界指标: 分别测量实体、区块 I/O 和 CPU 数学运算对 MSPT(每刻毫秒数) 的影响。
- ?️ 安全熔断机制: 内置安全限制。如果服务器卡顿严重(TPS 下降),基准测试将立即中止以防止崩溃。
- ? 智能诊断: 自动识别瓶颈。它会告诉你:“CPU 很棒,但你的内存速度限制了性能。”
- ? 高精度: 使用修剪平均逻辑来忽略卡顿尖峰和预热抖动,确保在高配和低配 CPU 上都能得到一致的结果。
- ? 日志报告: 将包含硬件规格(CPU 型号、RAM)的详细基准测试报告保存到
plugins/ServerLimitGauge/logs/ 中。
? 使用方法
- 准备: 确保服务器处于空闲状态(建议没有玩家在线以获得最佳准确性)。
- 命令: 运行
/benchmark start。
- 等待: 插件将执行预热,随后进行 5 轮压力测试:
- 素数计算(CPU 单线程)
- 物理爆炸(数学运算)
- HashMap/内存访问(内存延迟)
- 区块生成与 I/O(磁盘速度)
- 实体处理(怪物 AI)
- 结果: 在聊天框或控制台中查看服务器等级和推荐玩家数量。
注意: 基准测试会创建临时实体并加载区块,但会立即清理它们。
? 命令与权限
| 命令 |
描述 |
权限 |
| /benchmark start |
开始性能基准测试。 |
slg.admin |
| /benchmark reload |
重新加载配置文件。 |
slg.admin |
(默认情况下,slg.admin 权限授予 OP)
⚙️ 配置
你可以自定义压力负载和安全限制。
# ==========================================
# ServerLimitGauge Configuration
# ==========================================
# 将基准测试结果保存到 /logs 文件夹中的文本文件。
save-logs: true
# 安全设置
safety:
# 如果为 true,当 MSPT 超过 250ms (TPS < 4) 时,基准测试将中止以防止崩溃。
# 如果你想测试低配机器的绝对极限,请设置为 false。
enable-mspt-limit: true
? 截图

高端环境 (i9-11900KF):显示 SSS 等级和高玩家承载量。
=============== [Result Report] ===============
OS: Windows 11 (amd64)
CPU Model: 11th Gen Intel(R) Core(TM) i9-11900KF @ 3.50GHz
CPU Cores: 16 threads
Allocated RAM: 10240 MB
Overall Score: 30700
Server Rank: SSS (Extreme)
Recommended Player Count: 245 Players
Max Capacity (Limit): 307 Players
[Detailed Metrics]
- CPU Integer/Math: 28.04 ns
- RAM Latency: 74.99 ns
- Disk/Chunk I/O: 20.96 ms
- Entity Processing: 26.05 ns/entity
[Bottleneck Diagnosis]
⚠ Memory Capacity (10240 MB) is the primary bottleneck.
Your CPU could handle 426 players,
but memory constraints limit this to 307 players.
-> Allocating more RAM will drastically improve your Server Rank.
✔ CPU single-thread performance is legendary (Monster Class).
✔ Disk I/O & Terrain generation speeds are healthy.
============================================
瓶颈检测:当内存不足或磁盘 I/O 缓慢时显示警告。
? bStats
? Overview
Stop guessing your server's capacity. Measure it.
ServerLimitGauge is a professional benchmarking tool designed specifically for Minecraft servers (Spigot, Paper, Purpur, Folia). Unlike generic hardware benchmarks (like Geekbench), this plugin measures "actual Minecraft performance".
It stresses the server with real-world scenarios—Chunk Generation, Entity AI processing, and Math physics—to calculate a reliable "Recommended Player Count" and "Server Rank" (SSS to C).
Why use this?
- "I bought an i9 server, but it lags." ? Identify if it's a Disk I/O or RAM bottleneck.
- "How many players can I host?" ? Get a calculated estimate, not a guess.
- "Is my server host scamming me?" ? Visualize the true performance.
✨ Key Features
- ? Real-World Metrics: Measures MSPT (Milliseconds Per Tick) impact from Entities, Chunk I/O, and CPU math separately.
- ?️ Safety Circuit Breaker: Features a built-in safety limit. If the server lags too much (TPS drops), the benchmark aborts immediately to prevent crashes.
- ? Intelligent Diagnosis: Automatically identifies bottlenecks. It tells you: "CPU is great, but your RAM speed is limiting performance."
- ? High Precision: Uses Trimmed Averaging logic to ignore lag spikes and warm-up jitters, ensuring consistent results on both high-end and budget CPUs.
- ? Log Reports: Saves detailed benchmark reports with hardware specs (CPU Model, RAM) to
plugins/ServerLimitGauge/logs/.
? How to Use
- Prepare: Ensure your server is idle (no players online is recommended for best accuracy).
- Command: Run
/benchmark start.
- Wait: The plugin will perform a Warm-up followed by 5 loops of stress tests:
- Prime Number Calculation (CPU Single-thread)
- Physics Explosion (Math)
- HashMap/RAM Access (Memory Latency)
- Chunk Generation & I/O (Disk Speed)
- Entity Processing (Mob AI)
- Result: Check the chat or console for the Server Rank and Recommended Player Count.
Note: The benchmark creates temporary entities and loads chunks, but cleans them up immediately.
? Commands & Permissions
| Command |
Description |
Permission |
| /benchmark start |
Starts the performance benchmark. |
slg.admin |
| /benchmark reload |
Reloads the configuration file. |
slg.admin |
(By default, slg.admin is granted to OPs)
⚙️ Configuration
You can customize the stress load and safety limits.
# ==========================================
# ServerLimitGauge Configuration
# ==========================================
# Save benchmark results to a text file in /logs folder.
save-logs: true
# Safety Settings
safety:
# If true, the benchmark will abort if MSPT exceeds 250ms (TPS < 4) to prevent crashing.
# Set to false if you want to test low-spec machines to their absolute limit.
enable-mspt-limit: true
? Gallery

High-End Environment (i9-11900KF): Shows SSS Rank and high player capacity.
=============== [Result Report] ===============
OS: Windows 11 (amd64)
CPU Model: 11th Gen Intel(R) Core(TM) i9-11900KF @ 3.50GHz
CPU Cores: 16 threads
Allocated RAM: 10240 MB
Overall Score: 30700
Server Rank: SSS (Extreme)
Recommended Player Count: 245 Players
Max Capacity (Limit): 307 Players
[Detailed Metrics]
- CPU Integer/Math: 28.04 ns
- RAM Latency: 74.99 ns
- Disk/Chunk I/O: 20.96 ms
- Entity Processing: 26.05 ns/entity
[Bottleneck Diagnosis]
⚠ Memory Capacity (10240 MB) is the primary bottleneck.
Your CPU could handle 426 players,
but memory constraints limit this to 307 players.
-> Allocating more RAM will drastically improve your Server Rank.
✔ CPU single-thread performance is legendary (Monster Class).
✔ Disk I/O & Terrain generation speeds are healthy.
============================================
Bottleneck Detection: Shows warnings when RAM is insufficient or Disk I/O is slow.
? bStats
评论 0
登录后参与评分
还没有评论,来抢沙发吧