spark 是一款适用于 Minecraft 客户端、服务端和代理端的性能分析器。
实用链接
- 网站 - 浏览项目主页
- 文档 - 阅读文档和使用指南
- 下载 - 最新的插件/模组下载
spark 由 BisectHosting 自豪地赞助。
BisectHosting 是 Minecraft 服务器托管专家,随时准备帮助您创建并托管自己的服务器!他们是社区中值得信赖且成熟的托管服务提供商,提供卓越的服务水平,我们很乐意推荐他们。spark 用户可享受 25% 的特别折扣 - 点击上方链接立即创建您的服务器。
spark 能做什么?
spark 由三个独立的组件组成:
- CPU 分析器:诊断性能问题。
- 内存检查:诊断内存问题。
- 服务器健康报告:跟踪服务器整体健康状况。
⚡ CPU 分析器
spark 的分析器可用于诊断性能问题:“卡顿”、低 tick 速率、高 CPU 占用等。
它:
- 轻量 - 可在生产环境中运行,影响极小。
- 易于使用 - 无需配置或设置,只需安装插件。
- 快速产生结果 - 仅运行约 30 秒就足以对性能问题区域产生有用的见解。
- 可自定义 - 可调整以针对特定线程、按特定间隔采样、仅记录“卡顿”时段等
- 高度可读 - 简单的树状结构便于分析和解读。查看器还可以应用反混淆映射。
它的工作原理是采样有关系统活动的统计数据,并基于这些数据构建调用图。然后调用图会显示在在线查看器中,供用户进一步分析。
有两种不同的分析器引擎:
- 原生 AsyncGetCallTrace + perfevents - 使用 async-profiler(仅在 Linux x8664 系统上可用)
- 内置 Java ThreadMXBean - sk89q 流行的 WarmRoast 分析器的改进版本。
⚡ 内存检查
spark 包含许多可用于诊断服务器内存问题的工具。
- 堆摘要 - 获取并分析服务器内存的基本快照
- JVM 堆的简单视图,查看每个类的内存使用和实例数量
- 并非旨在完全替代专业的内存分析工具。(见下文)
- 堆转储 - 获取服务器内存的完整(HPROF)快照
- 转储(并可选择压缩)JVM 堆的完整快照。
- 然后可以使用常规分析工具检查此快照。
- GC 监控 - 监控服务器上的垃圾回收活动
- 允许用户将 GC 活动与游戏服务器卡顿关联起来,并轻松查看它们花费多长时间以及释放了多少内存。
- 观察新生代/老年代垃圾回收的频率/持续时间,以决定使用哪些 GC 调优标志
⚡ 服务器健康报告
spark 可以报告许多汇总服务器整体健康状况的指标。
这些指标包括:
- TPS - 每秒 tick 数,比 /tps 命令指示的更精确
- Tick 持续时间 - 每个 tick 花费的时间(最小值、最大值和平均值)
- CPU 使用率 - 服务器进程以及整个系统使用了多少 CPU
- 内存使用 - 进程使用了多少内存
- 磁盘使用 - 系统有多少磁盘空间可用/已使用
除了提供 tick 速率平均值外,spark 还可以监控单个 tick - 每当单个 tick 的持续时间超过某个阈值时发送报告。这可用于识别趋势以及性能问题的性质,相对于其他系统或游戏事件。
用法
要安装,只需将 .jar 文件添加到您的 mods 目录中。
有关如何使用命令的信息可以在文档中找到。
如果您需要帮助分析分析报告,或者只是想聊天,欢迎加入我们的 Discord。
指南
文档中有一些小的“指南”,涵盖以下主题。
- Tick 循环
- 查找卡顿尖峰的原因
如何安装 spark
With Millida Launcher
Install Millida Launcher
The launcher is free: download it at millida.net/launcher and sign in with any nickname.
Click “Install” on this page
The launcher opens and installs the mod for Minecraft 1.16.5–26.3 on Fabric, Forge or NeoForge automatically.
Launch the game
A profile with it appears in the launcher: click “Play”.
Manually
Install Fabric, Forge or NeoForge
The loader must match the game version of the mod file, for example Minecraft 26.3. After installing it, a separate profile appears in your launcher.
Download the file for your version
In the version list above, pick the file spark-1.10.187-neoforge.jar (3.7 MB) for your game version and loader.
Put it in the mods folder
The folder is inside .minecraft (Windows: %appdata%\.minecraft\mods). If it does not exist, create it.
Launch the loader profile
Open “Mods” in the main menu: spark should be in the list.
On a server
A server on Fabric, Forge or NeoForge
The mod only works on a server with the same loader and game version, for example 26.3.
File goes into the server’s mods folder
Stop the server, put the mod file into the mods folder and start the server again.
Use the “To server” button
On Millida Hosting, the button at the top of the page uploads the file to your server and restarts it for you.
版本
含依赖项
| Minecraft | 加载器 | 文件 | 日期 | 操作 |
|---|---|---|---|---|
| 26.3 | NeoForge | 26.33.7 MB 1 | ||
| 26.3 | Fabric | 26.33.7 MB 33 | ||
| 26.3 | Forge | 26.33.7 MB 4 | ||
| 26.2 | NeoForge | 26.23.9 MB | ||
| 26.2 | Fabric | 26.23.8 MB | ||
| 26.2 | Forge | 26.23.9 MB | ||
| 26.2 | NeoForge | 26.23.8 MB | — | |
| 26.1 | NeoForge | 26.13.8 MB | — |
评价
成为第一个评价 spark 的人


