Stressmark
了解你服务器的真正极限。
Stressmark 是一个服务端模组,帮助你确切地了解你的 Minecraft 服务器能够承载什么。无论你是为大活动做准备、选择主机配置,还是仅仅好奇硬件的性能表现,Stressmark 都能为你提供答案。
功能
性能仪表板
通过一条命令即可快速概览服务器的健康状况:
- TPS(每秒刻数) — 你的服务器是否跟得上节奏?
- 内存使用量 — 已用 RAM 与可用 RAM 的对比
- CPU 负载 — 当前的处理器利用率
- 磁盘 I/O — 存储器的读写性能
- JVM 统计信息 — 垃圾回收和运行时长信息
性能评级
不再需要猜测你的服务器是否“足够好”。Stressmark 基于多项指标计算整体性能等级:
- ? 卓越 — 你的服务器运行完美无瑕
- ? 良好 — 性能稳固,无需担忧
- ? 一般 — 可以游玩,但仍有改进空间
- ? 较差 — 玩家会察觉到延迟
- ? 危急 — 需要立即关注
压力测试
真正的亮点所在:生成虚拟玩家以对你的服务器进行压力测试,并找出其崩溃点。
- 生成任意数量的机器人 — 从 10 个开始,可扩展至数百个
- 逼真的移动方式 — 机器人按特定路径飞行,并在过程中加载区块
- 可调节速度 — 控制机器人的移动和区块加载的激进程度
- 实时监控 — 随着负载增加,实时观察性能指标的变化
- 安全测试 — 机器人处于旁观者模式,不会影响游戏玩法
玩家容量估算
根据您的基准测试结果,Stressmark 会估算您的服务器可以舒适支持多少真实玩家。
命令
| 命令 | 功能 |
|---|---|
/benchmark |
快速性能概览 |
/benchmark detailed |
完整指标报告 |
/benchmark stress start <count> |
生成压力测试机器人 |
/benchmark stress stop |
移除所有机器人 |
/benchmark stress status |
检查当前压力测试状态 |
使用场景
- 服务器管理员 — 确定硬件是否能承载当前的玩家群体
- 主机对比 — 使用真实数据对不同主机提供商进行基准测试
- 活动规划 — 在大型服务器活动前测试承载能力
- 优化调优 — 衡量配置更改和插件对性能的影响
- 故障排除 — 识别性能瓶颈
兼容性
- 支持 Fabric 和 NeoForge
- 仅限服务器端(无需安装客户端)
- 适用于专用服务器
要求
- 需要操作者权限以运行命令
- Java 21
Stressmark
Know your server's true limits.
Stressmark is a server-side mod that helps you understand exactly what your Minecraft server can handle. Whether you're preparing for a big event, choosing hosting specs, or just curious about your hardware's performance, Stressmark gives you the answers.
Features
Performance Dashboard
Get an instant overview of your server's health with a single command:
- TPS (Ticks Per Second) — Is your server keeping up?
- Memory Usage — How much RAM is being used vs available
- CPU Load — Current processor utilization
- Disk I/O — Storage read/write performance
- JVM Stats — Garbage collection and uptime info
Performance Grading
No more guessing if your server is "good enough". Stressmark calculates an overall performance grade based on multiple metrics:
- ? Exceptional — Your server is running flawlessly
- ? Good — Solid performance, no concerns
- ? Fair — Playable, but room for improvement
- ? Poor — Players will notice lag
- ? Critical — Immediate attention needed
Stress Testing
The real magic: spawn fake players to stress test your server and find its breaking point.
- Spawn any number of bots — Start with 10, scale up to hundreds
- Realistic movement — Bots fly in patterns, loading chunks as they go
- Adjustable speed — Control how aggressively bots move and load chunks
- Live monitoring — Watch performance metrics change in real-time as load increases
- Safe testing — Bots are in spectator mode and don't affect gameplay
Player Capacity Estimation
Based on your benchmark results, Stressmark estimates how many real players your server can comfortably support.
Commands
| Command | What it does |
|---|---|
/benchmark |
Quick performance overview |
/benchmark detailed |
Full metrics report |
/benchmark stress start <count> |
Spawn stress test bots |
/benchmark stress stop |
Remove all bots |
/benchmark stress status |
Check current stress test |
Use Cases
- Server Admins — Find out if your hardware can handle your player base
- Hosting Comparisons — Benchmark different providers with real data
- Event Planning — Test capacity before big server events
- Optimization — Measure the impact of config changes and plugins
- Troubleshooting — Identify performance bottlenecks
Compatibility
- Works on Fabric and NeoForge
- Server-side only (no client installation needed)
- Works on dedicated servers
Requirements
- Operator permissions to run commands
- Java 21
下载 Stressmark
下载 Stressmark
下载 Stressmark
下载 Stressmark
下载 Stressmark
下载 Stressmark
下载 Stressmark
下载 Stressmark
下载 Stressmark
下载 Stressmark
新功能
- 智能压力测试报告 - 当压力测试结束时,回顾界面现在会显示明确的结论(
PASS/WARN/FAIL)、0-100 的评分,以及对真正重要的问题的回答——这个服务器能承载多少玩家 ——而不仅仅是原始的 TPS 和内存数值。控制台报告、游戏内管理员摘要以及保存的文件都共享相同的分析结果。 - 诚实的玩家容量估算 - 基于实测的单机器人刻消耗和 50 毫秒的刻预算,报告等效的真实玩家范围(例如
~9-17 real players),并附带明确说明:压力测试机器人仅模拟区块加载,因此真实玩家——他们还会增加网络传输和实体追踪负载,而这些是此测试未测量的因素——可能会降低该数值。不再把“5 个机器人没问题”误解为“5 名玩家是我的上限”。 - 瓶颈诊断 - 识别真正的限制资源——单线程主循环、整体 CPU 或内存——以便建议符合实际的瓶颈所在。由于 Minecraft 的刻循环主要是单线程的,它能区分“单个核心满载”与“整机满载”,并且不会在主线程成为瓶颈时建议你增加内存。
- 趋势与内存泄漏检测 - 在运行期间每约 10 秒采样一次性能,并报告 TPS 随时间是保持稳定、下降还是崩溃,而不仅仅是最差的瞬间值。内存状况通过 GC 后的存活集来判断,因此健康的锯齿状堆内存(在每次 GC 前短暂接近 100%)不再被误认为有问题,而持续上升的存活集则会被标记为疑似内存泄漏。
- 优先级排序、硬件感知的建议 - 建议现在按影响程度排序、去重,并根据你的实际硬件(核心数、最大堆内存、GC 类型)进行量化——例如
view-distance 10→8 ≈ -18 ms/tick或increase -Xmx to ~6G,而不是固定的、通用的阈值消息。 - 保存的 Markdown 报告 - 每次运行还会将带时间戳的报告写入
<world>/stressmark-reports/,包含 TPS/MSPT 迷你图、完整的逐样本时间序列表,以及每条建议的操作指南(可能原因、补救措施、确切标志/命令)——这样结果就不会因控制台滚动而丢失,可以保留或分享。
错误修复
- 修复报告中误导性的年轻代 GC 时间 - “Young Gen total ms” 数值曾是一个虚构的比例估算值(
total pause × young / (young + old)),因为从未单独跟踪年轻代和老年代的 GC 暂停时间。现在报告会汇总每个代中每次收集的实际暂停时间。
改进
- 经过验证的分析引擎 - 新的报告逻辑(趋势、内存、瓶颈、容量、评级、建议)位于一个自包含且独立于 Minecraft 的模块中,并配有单元测试,因此其结论是通过合成场景进行检验的,而不仅仅是被动观察到的现象。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
评论 0
登录后参与评分
还没有评论,来抢沙发吧