
spark 是一款适用于 Minecraft 客户端、服务器和代理的性能分析工具。
有用链接
spark 由 BisectHosting 赞助支持。
BisectHosting 是 Minecraft 服务器托管专家,随时准备帮助您创建并托管您自己的服务器!他们是社区中值得信赖且成熟的托管服务提供商,提供卓越的服务水平,我们很乐意推荐。Spark 用户可享受 25% 的特别折扣优惠——点击上方链接立即创建您的服务器。
spark 能做什么?
spark 由三个独立的组件组成:
- CPU 分析器:诊断性能问题。
- 内存检查:诊断内存问题。
- 服务器健康报告:跟踪服务器的整体健康状况。
⚡ CPU 分析器
spark 的分析器可用于诊断性能问题:“卡顿”、低刻率、高 CPU 使用率等。
它具有以下特点:
- 轻量级 - 可以在生产环境中运行,影响极小。
- 易于使用 - 无需配置或设置,只需安装插件即可。
- 快速生成结果 - 仅运行约 30 秒即可产生有用的见解,帮助定位性能问题的关键区域。
- 可定制 - 可以调整以针对特定线程、在特定间隔采样、仅记录“卡顿”时段等。
- 高度可读 - 简单的树状结构便于分析和解释。查看器还可以应用去混淆映射(deobfuscation mappings)。
它的工作原理是对系统活动进行统计数据的采样,并基于这些数据构建调用图。然后,调用图会在在线查看器中显示,供用户进一步分析。
有两种不同的分析引擎:
- 原生
AsyncGetCallTrace+perf_events- 使用 async-profiler (仅在 Linux x86_64 系统上可用) - 内置 Java
ThreadMXBean- 由 sk89q 改进的流行 WarmRoast 分析器 的版本。
⚡ 内存检查
spark 包含多种工具,有助于诊断服务器的内存问题。
- 堆摘要 (Heap Summary) - 获取并分析服务器内存的基本快照
- JVM 堆的简单视图,查看每个类的内存使用情况和实例计数
- 旨在作为专业内存分析工具的补充,而非完全替代品。(见下文)
- 堆转储 (Heap Dump) - 获取服务器内存的完整 (HPROF) 快照
- 转储(并可选压缩)JVM 堆的完整快照。
- 随后可使用常规分析工具检查此快照。
- GC 监控 (GC Monitoring) - 监控服务器上的垃圾回收活动
- 允许用户将 GC 活动与游戏服务器挂起相关联,轻松查看耗时及释放的内存量。
- 观察年轻代/老年代垃圾回收的频率/持续时间,以指导选择哪些 GC 调优标志
⚡ 服务器健康报告
spark 可以报告多项指标,总结服务器的整体健康状况。
这些指标包括:
- TPS - 每秒刻数,比 /tps 命令显示的精度更高
- 刻持续时间 (Tick Durations) - 每个刻所需的时间(最小值、最大值和平均值)
- CPU 使用率 - 服务器进程以及整个系统使用了多少 CPU
- 内存使用率 - 进程使用了多少内存
- 磁盘使用率 - 系统空闲或已使用的磁盘空间
除了提供刻率平均值外,spark 还可以监控单个刻 - 当单个刻的持续时间超过特定阈值时发送报告。这可用于识别相对于其他系统或游戏事件的性能问题的趋势和性质。
使用方法
要安装,只需将 .jar 文件添加到你的 mods 目录中。
有关如何使用命令的信息可在文档中找到。
如果你需要帮助分析分析报告,或者只是想聊聊,欢迎加入我们的 Discord。
指南
文档中包含几个简短的“指南”,涵盖以下主题。

spark is a performance profiler for Minecraft clients, servers and proxies.
Useful Links
- Website - browse the project homepage
- Documentation - read documentation and usage guides
- Downloads - latest plugin/mod downloads
spark is proudly sponsored by BisectHosting.
BisectHosting are Minecraft server hosting experts, ready to help you create and host your very own server! They are a trusted and well-established hosting provider in the community, and provide an outstanding level of service that we are happy to recommend. There is a special 25% off discount available for spark users - click the link above to create your server today.
What does spark do?
spark is made up of three separate components:
- CPU Profiler: Diagnose performance issues.
- Memory Inspection: Diagnose memory issues.
- Server Health Reporting: Keep track of overall server health.
⚡ CPU Profiler
spark's profiler can be used to diagnose performance issues: "lag", low tick rate, high CPU usage, etc.
It is:
- Lightweight - can be ran in production with minimal impact.
- Easy to use - no configuration or setup necessary, just install the plugin.
- Quick to produce results - running for just ~30 seconds is enough to produce useful insights into problematic areas for performance.
- Customisable - can be tuned to target specific threads, sample at a specific interval, record only "laggy" periods, etc
- Highly readable - simple tree structure lends itself to easy analysis and interpretation. The viewer can also apply deobfuscation mappings.
It works by sampling statistical data about the systems activity, and constructing a call graph based on this data. The call graph is then displayed in an online viewer for further analysis by the user.
There are two different profiler engines:
- Native
AsyncGetCallTrace+perf_events- uses async-profiler (only available on Linux x86_64 systems) - Built-in Java
ThreadMXBean- an improved version of the popular WarmRoast profiler by sk89q.
⚡ Memory Inspection
spark includes a number of tools which are useful for diagnosing memory issues with a server.
- Heap Summary - take & analyse a basic snapshot of the servers memory
- A simple view of the JVM's heap, see memory usage and instance counts for each class
- Not intended to be a full replacement of proper memory analysis tools. (see below)
- Heap Dump - take a full (HPROF) snapshot of the servers memory
- Dumps (& optionally compresses) a full snapshot of JVM's heap.
- This snapshot can then be inspected using conventional analysis tools.
- GC Monitoring - monitor garbage collection activity on the server
- Allows the user to relate GC activity to game server hangs, and easily see how long they are taking & how much memory is being free'd.
- Observe frequency/duration of young/old generation garbage collections to inform which GC tuning flags to use
⚡ Server Health Reporting
spark can report a number of metrics summarising the servers overall health.
These metrics include:
- TPS - ticks per second, to a more accurate degree indicated by the /tps command
- Tick Durations - how long each tick is taking (min, max and average)
- CPU Usage - how much of the CPU is being used by the server process, and by the overall system
- Memory Usage - how much memory is being used by the process
- Disk Usage - how much disk space is free/being used by the system
As well as providing tick rate averages, spark can also monitor individual ticks - sending a report whenever a single tick's duration exceeds a certain threshold. This can be used to identify trends and the nature of performance issues, relative to other system or game events.
Usage
To install, just add the .jar file to your mods directory.
Information about how to use commands can be found in the docs.
If you’d like help analysing a profiling report, or just want to chat, feel free to join us on Discord.
Guides
There are a few small "guides" available in the docs, covering the following topics.
下载 spark
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 spark
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 spark
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 spark
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 spark
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 spark
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 spark
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 spark
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 spark
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 spark
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
此次更新将适用于 Minecraft 26.x 的 spark 最新版本发布至 Modrinth。完整更新日志请参阅 。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
AE2:一款流行的自动化与存储模组
模组
添加区块认领和玩家组队功能,并与 Xaero's Minimap 和 World Map 集成
评论 0
登录后参与评分
还没有评论,来抢沙发吧