Skip to content

Instantly share code, notes, and snippets.

@skryvets
Created September 27, 2024 00:46
Show Gist options
  • Save skryvets/f7e2209e7b1be15496b24e1c2b5f5151 to your computer and use it in GitHub Desktop.
Save skryvets/f7e2209e7b1be15496b24e1c2b5f5151 to your computer and use it in GitHub Desktop.

Troubleshooting, Monitoring, and Profiling with Java Flight Recorder, Mission Control, and Cryostat

Speaker: Jeremy Davis


Tools for Profiling Java Applications

  1. Mission Control

    • Available starting with Java 11.
    • Provides powerful tools for monitoring and profiling Java applications.
  2. Cryostat UI
    A user-friendly interface for managing and analyzing Java Flight Recorder (JFR) data:

    • Dashboard: Gives an overview of the system's performance metrics.
    • Automated Analysis: Helps diagnose performance issues.
    • Grafana: Integrates with Grafana for data visualization.
    • Automated Rules: Defines automatic actions and alerts based on system behavior.
    • Recordings: Facilitates the management of JFR recordings.
    • Archive: Allows storing recordings for later analysis.

Monitoring Java Applications

  • JMX (Java Management Extensions):
    You can expose application metrics and diagnostics by using JMX endpoints for monitoring.

  • Kubernetes (K8s):
    If running your Java applications on Kubernetes, you can install an agent to capture monitoring data more effectively.


Notes for myself

  • Look into OpenShift:
    Investigate how OpenShift can be used for managing and monitoring Java applications in containerized environments.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment