What are you searching for?

spark

spark

spark is a performance profiler for Minecraft clients, servers and proxies.

download 11.9M Downloads · favorite 1,774 Followers · Updated 1 month ago
Fabric Forge Neoforge Quilt Utility 1.16.5 1.17.1 1.18 1.18.1 1.18.2 +24 more

Versions

inventory_2
1.10.156 (NeoForge 1.21.11)

1.10.156-neoforge · 1 month ago · 3.76 MB

Release download
Neoforge 1.21.11
inventory_2
1.10.156 (Fabric 1.21.11)

1.10.156-fabric · 1 month ago · 3.72 MB

Release download
Fabric 1.21.11
inventory_2
1.10.156 (Forge 1.21.11)

1.10.156-forge · 1 month ago · 3.76 MB

Release download
Forge 1.21.11
inventory_2
1.10.152 (NeoForge 1.21.10)

1.10.152-neoforge · 3 months ago · 3.69 MB

Release download
Neoforge 1.21.9 1.21.10
inventory_2
1.10.152 (Fabric 1.21.10)

1.10.152-fabric · 3 months ago · 3.65 MB

Release download
Fabric 1.21.9 1.21.10

About

spark

spark is a performance profiler for Minecraft clients, servers and proxies.

Useful Links


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.

open_in_new View on Modrinth
Categories
Compatibility
Client: Optional Server: Optional
gavel GPL-3.0-only

Conversation

What are your thoughts?

Related projects

Optimization Utility
FerriteCore
FerriteCore

by malte0811

Memory usage optimizations

download 84.0M
favorite 12,704
Utility
Mod Menu
Mod Menu

by Prospector

Adds a mod menu to view the list of mods you have installed.

download 77.4M
favorite 22,097
Library Management Utility
YetAnotherConfigLib (YACL)
YetAnotherConfigLib (YACL)

by isxander

A builder-based configuration library for Minecraft!

download 65.8M
favorite 7,589
Adventure Transportation Utility
Xaero's Minimap
Xaero's Minimap

by thexaero

Displays a map of the nearby world terrain, players, mobs, entities in the corner of your screen. Lets you create waypoints which help you find the locations you've marked.

download 60.6M
favorite 13,650
lock Cookie consent

SkinMC uses cookies to provide functionality and features.