Flare (Spark for 1.12.2)

Quick rating

Flare (Spark for 1.12.2)

No reviews yet

Flare is a performance profiler for 1.12.2 clients and servers. Based off of Spark.

No Theme
No Genre
QoL & Tweaks
Server Utility
Mod Fork/Port
API/Library
Mod Loaders
Forge
Minecraft

Community voices

Reviews

Versions
Loading versions…
Match includes

Click once to include, again to exclude, again to clear

Rating Any
Any 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0
Min
Max
Play Status
Reviews
Time Played
hrs+
Verified developers only
Has developer response
List view
Grid view
Compact view
Sort by
Date
Rating
Helpful
Unhelpful
Edited
Sort ascending
Delete this review?

This removes your review from the project. You can write a new review after.

Review submitted for moderation

Your review has been sent to moderators, who will check that it meets our guidelines before it appears publicly.

No reviews yet. Be the first to review this project!

Get it on

Available Platforms

Compatibility

Supported Environments

Dev Environment
Client Optional
Server Optional

About

Project Details

Type
Mod
License
GNU Lesser General Public License v3.0 only
Latest Version
Flare 0.8.0
Authors
CurseForge
Modrinth

For authors

Embed Badge

If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.

Custom banner text
ModDex rating badge preview

Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.

Identifiers

Platform IDs

CurseForge ID
Modrinth ID

Resources

External Links

Source Issues Wiki Discord

About

Description

Flare Banner

flare is a performance profiler for 1.12.2 clients and servers. [spark fork]

 

Useful Links

What does it do?

flare is made up of a number of components, each detailed separately below.

 CPU Profiler

flare'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/mod.
  • 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 servers 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.

 

 Memory Inspection

flare 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

flare 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, flare 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.

Flare Banner

Derived from spark; flare is a performance profiler and debugger for 1.12.2 Forge & Cleanroom environments.

What does flare do?

flare is made up these separate components:

  • CPU Profiler: Diagnose performance issues.
  • Memory Inspection: Diagnose memory issues.
  • Server Health Reporting: Keep track of overall server health.

✨ CPU Profiler

flare'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/mod.
  • 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

flare 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 next item)
    • 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

flare 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 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, flare 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.

For a comparison between flare, WarmRoast, Minecraft timings and other profiles, see this page in the original spark docs.

How do I use flare?

flare uses Minecraft's command system for the end-user to use flare to its full potential.

License

flare is free & open source. It is released under the terms of the GNU GPLv3 license. Please see LICENSE for more information.

The flare API submodule is released under the terms of the more permissive MIT license. Please see flare-api/LICENSE for more information.

flare is a fork of spark, which was also licensed using the GPLv3.

Screenshots

Gallery

This project has no gallery images yet.

Versions

Files

Relations

Project Relations

More like this

Similar Mods

Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.

On ModDex

Community snapshot

0
Ratings
0
Followers
1
In stacks

By the numbers

Statistics

~320,000
Total Downloads
CurseForge
~310,000
Modrinth
~6,000
Last Updated
CurseForge
Modrinth
Created
CurseForge
Modrinth
Last synced
When ModDex last fetched this project from CurseForge or Modrinth. Every project is re-checked on a schedule, and any project that ships a new file is synced automatically within hours of the release.
New file updates sync automatically
How syncing works