Skip to main content
Redhat Developers  Logo
  • Products

    Platforms

    • Red Hat Enterprise Linux
      Red Hat Enterprise Linux Icon
    • Red Hat AI
      Red Hat AI
    • Red Hat OpenShift
      Openshift icon
    • Red Hat Ansible Automation Platform
      Ansible icon
    • See all Red Hat products

    Featured

    • Red Hat build of OpenJDK
    • Red Hat Developer Hub
    • Red Hat JBoss Enterprise Application Platform
    • Red Hat OpenShift Dev Spaces
    • Red Hat OpenShift Local
    • Red Hat Developer Sandbox

      Try Red Hat products and technologies without setup or configuration fees for 30 days with this shared Red Hat OpenShift and Kubernetes cluster.
    • Try at no cost
  • Technologies

    Featured

    • AI/ML
      AI/ML Icon
    • Linux
      Linux Icon
    • Kubernetes
      Cloud icon
    • Automation
      Automation Icon showing arrows moving in a circle around a gear
    • See all technologies
    • Programming languages & frameworks

      • Java
      • Python
      • JavaScript
    • System design & architecture

      • Red Hat architecture and design patterns
      • Microservices
      • Event-Driven Architecture
      • Databases
    • Developer experience

      • Productivity
      • Tools
      • GitOps
    • Automated data processing

      • AI/ML
      • Data science
      • Apache Kafka on Kubernetes
    • Platform engineering

      • DevOps
      • DevSecOps
      • Red Hat Ansible Automation Platform for applications and services
    • Secure development & architectures

      • Security
      • Secure coding
  • Learn

    Featured

    • Kubernetes & cloud native
      Openshift icon
    • Linux
      Rhel icon
    • Automation
      Ansible cloud icon
    • AI/ML
      AI/ML Icon
    • See all learning resources

    E-books

    • GitOps cookbook
    • Podman in action
    • Kubernetes operators
    • The path to GitOps
    • See all e-books

    Cheat sheets

    • Linux commands
    • Bash commands
    • Git
    • systemd commands
    • See all cheat sheets

    Documentation

    • Product documentation
    • API catalog
    • Legacy documentation
  • Developer Sandbox

    Developer Sandbox

    • Access Red Hat’s products and technologies without setup or configuration, and start developing quicker than ever before with our new, no-cost sandbox environments.
    • Explore the Developer Sandbox

    Featured Developer Sandbox activities

    • Get started with your Developer Sandbox
    • OpenShift virtualization and application modernization using the Developer Sandbox
    • Explore all Developer Sandbox activities

    Ready to start developing apps?

    • Try at no cost
  • Blog
  • Events
  • Videos

Diagnose Java applications using Cryostat 4.1

January 14, 2026
Joshua Matsuoka
Related topics:
Developer toolsJavaKubernetesObservability
Related products:
Red Hat build of CryostatRed Hat build of OpenJDK

    With the release of Red Hat build of Cryostat 4.1, you can now perform a set of useful diagnostic operations on Java applications running in Red Hat OpenShift or Kubernetes using the diagnostics card and the new diagnostics/capture page. While previous versions supported invoking garbage collection, with Cryostat 4.1 you can also capture, archive, and download thread and heap dumps.

    Troubleshooting tools

    The Java Virtual Machine (JVM) supports many diagnostic operations for troubleshooting problems with a running application. Among these operations, thread and heap dumps are important for diagnosing issues with concurrency and memory.

    Thread dumps, a profiling tool built into the JVM, allow you to capture a snapshot of all the threads currently running within a JVM process at a specific moment in time. They provide detailed information about each thread to aid in diagnosing performance issues, identifying deadlocks, and determining other problems related to concurrency.

    The heap dumps profiling tool allows you to capture a snapshot of all the memory currently in use within a JVM process at a specific moment in time. They provide detailed information about all Java objects and classes residing in heap memory at the time which aids in diagnosing performance issues, memory leaks, and other problems with memory usage.

    Capturing a thread dump

    To capture a thread dump, Cryostat must have access to a target application. For information on setting up applications for monitoring, go to the Red Hat Product Page or the upstream documentation website. Thread dumps are supported over both JMX and Cryostat Agent HTTP connections.

    To begin, navigate to the Diagnostics/Capture page shown in Figure 1:

    Cryostat Diagnostics page
    Figure 1: The Capture/Diagnostics view of the heap memory usage and thread and heap dumps for a target.

    This page provides an overview of heap memory usage by the target, and has a card with the supported diagnostics operations.

    You can click the Invoke Thread Dump button in the middle of the card at any time to trigger a thread dump that will then be uploaded to the archives. Following this, you can click the button next to the Invoke Thread Dump button to go to the archives, or navigate there manually by clicking on Thread Dumps under Analyze (Figure 2).

    Cryostat Thread Dumps Archive
    Figure 2: The thread dumps table provides access to all thread dumps currently captured for a given target, or all targets if none is selected.

    Once the thread dump has been archived, a new entry will appear in the target JVM's Thread Dumps table. All thread dumps that were saved from the current target will be listed here in their own table.

    Switching to a different target from the dropdown will list only the thread dumps archived from that source target. Alternatively, clearing the target will provide access to the All-Targets view. There is also an All-Archives view that allows access to all thread dumps currently available in storage.

    The name of the thread dumps when downloaded reflects the address of the target application. Thread dumps also support labels for enhanced filtering capabilities.

    Capturing a heap dump

    To capture a heap dump, Cryostat must have access to a target application. For information on setting up applications for monitoring, refer to the Red Hat Product Page or the upstream documentation website. Heap dumps are only supported over Cryostat Agent HTTP connections. For more information on setting up the cryostat agent, read this article.

    To begin, navigate to the Diagnostics/Capture page in Figure 3.

    Cryostat Diagnostics page
    Figure 3: The Capture/Diagnostics view of heap memory usage and thread and heap dumps for a target.

    You can click the Invoke Heap Dump button in the middle of the card at any time to trigger a heap dump that will then be uploaded to the archives. Following this, you can click the button next to the Invoke Heap Dump button to be taken to the archives, or navigate there manually by clicking on Heap Dumps under Analyze (Figure 4):

    Cryostat Heap Dumps Archive
    Figure 4: The heap dumps table provides access to all thread dumps currently captured for a given target or all targets if none selected.

    Once the heap dump has been archived, a new entry will appear in the target JVM's Heap Dumps table. All heap dumps that were saved from the current target will be listed here in their own table.

    Switching to a different target from the dropdown will list only the heap dumps archived from that source target. Alternatively, clearing the target will provide access to the All-Targets view. There is also an All-Archives view that allows access to all heap dumps currently available in storage. This ensures that even if a target goes offline the heap dumps captured from it are still accessible.

    The name of the heap dump in the table reflects the address of the target application. Heap dumps also support labels for enhanced filtering capabilities.

    The diagnostics dashboard card

    In addition to the dedicated diagnostics page, Cryostat also provides a dashboard card with the diagnostics operations available. This allows you to have a flexible view of a number of metrics and other operations supported by the dashboard cards alongside the diagnostic capabilities (Figure 5).

    Cryostat Diagnostics Dashboard Card
    Figure 5: The diagnostics dashboard card allows for capturing thread and heap dumps as well as invoking garbage collection.

    Wrap up

    With the release of Cryostat 4.1, it is now possible to capture advanced diagnostics information about your running applications through thread and heap dumps. For more information and analysis available in Cryostat, refer to the Red Hat Product Page or the upstream documentation website.

    Related Posts

    • Introducing Red Hat build of Cryostat 4.0

    • .NET container troubleshooting in OpenShift 4

    • How to troubleshoot Node.js images in OpenShift

    • How to troubleshoot Spring Boot in OpenShift

    Recent Posts

    • Upgrade volume performance without downtime: VolumeAttributesClass on OpenShift

    • What’s new for developers in OpenShift 4.21

    • Kafka Monthly Digest: January 2026

    • How Developer Hub simplifies Backstage configuration

    • AI-generated product review summaries with OpenShift AI

    What’s up next?

    Learning Path Deploying and Troubleshooting

    Deploying and Troubleshooting Red Hat Developer Hub on OpenShift: A Practical Guide

    In this learning exercise, we'll focus on setting up Red Hat Developer Hub...
    Red Hat Developers logo LinkedIn YouTube Twitter Facebook

    Platforms

    • Red Hat AI
    • Red Hat Enterprise Linux
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform
    • See all products

    Build

    • Developer Sandbox
    • Developer tools
    • Interactive tutorials
    • API catalog

    Quicklinks

    • Learning resources
    • E-books
    • Cheat sheets
    • Blog
    • Events
    • Newsletter

    Communicate

    • About us
    • Contact sales
    • Find a partner
    • Report a website issue
    • Site status dashboard
    • Report a security problem

    RED HAT DEVELOPER

    Build here. Go anywhere.

    We serve the builders. The problem solvers who create careers with code.

    Join us if you’re a developer, software engineer, web designer, front-end designer, UX designer, computer scientist, architect, tester, product manager, project manager or team lead.

    Sign me up

    Red Hat legal and privacy links

    • About Red Hat
    • Jobs
    • Events
    • Locations
    • Contact Red Hat
    • Red Hat Blog
    • Inclusion at Red Hat
    • Cool Stuff Store
    • Red Hat Summit
    © 2025 Red Hat

    Red Hat legal and privacy links

    • Privacy statement
    • Terms of use
    • All policies and guidelines
    • Digital accessibility

    Report a website issue