Skip to main content
Redhat Developers  Logo
  • AI

    Get started with AI

    • Red Hat AI
      Accelerate the development and deployment of enterprise AI solutions.
    • AI learning hub
      Explore learning materials and tools, organized by task.
    • AI interactive demos
      Click through scenarios with Red Hat AI, including training LLMs and more.
    • AI/ML learning paths
      Expand your OpenShift AI knowledge using these learning resources.
    • AI quickstarts
      Focused AI use cases designed for fast deployment on Red Hat AI platforms.
    • No-cost AI training
      Foundational Red Hat AI training.

    Featured resources

    • OpenShift AI learning
    • Open source AI for developers
    • AI product application development
    • Open source-powered AI/ML for hybrid cloud
    • AI and Node.js cheat sheet

    Red Hat AI Factory with NVIDIA

    • Red Hat AI Factory with NVIDIA is a co-engineered, enterprise-grade AI solution for building, deploying, and managing AI at scale across hybrid cloud environments.
    • Explore the solution
  • Learn

    Self-guided

    • Documentation
      Find answers, get step-by-step guidance, and learn how to use Red Hat products.
    • Learning paths
      Explore curated walkthroughs for common development tasks.
    • Guided learning
      Receive custom learning paths powered by our AI assistant.
    • See all learning

    Hands-on

    • Developer Sandbox
      Spin up Red Hat's products and technologies without setup or configuration.
    • Interactive labs
      Learn by doing in these hands-on, browser-based experiences.
    • Interactive demos
      Click through product features in these guided tours.

    Browse by topic

    • AI/ML
    • Automation
    • Java
    • Kubernetes
    • Linux
    • See all topics

    Training & certifications

    • Courses and exams
    • Certifications
    • Skills assessments
    • Red Hat Academy
    • Learning subscription
    • Explore training
  • Build

    Get started

    • Red Hat build of Podman Desktop
      A downloadable, local development hub to experiment with our products and builds.
    • Developer Sandbox
      Spin up Red Hat's products and technologies without setup or configuration.

    Download products

    • Access product downloads to start building and testing right away.
    • Red Hat Enterprise Linux
    • Red Hat AI
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform
    • See all products

    Featured

    • Red Hat build of OpenJDK
    • Red Hat JBoss Enterprise Application Platform
    • Red Hat OpenShift Dev Spaces
    • Red Hat Developer Toolset

    References

    • E-books
    • Documentation
    • Cheat sheets
    • Architecture center
  • Community

    Get involved

    • Events
    • Live AI events
    • Red Hat Summit
    • Red Hat Accelerators
    • Community discussions

    Follow along

    • Articles & blogs
    • Developer newsletter
    • Videos
    • Github

    Get help

    • Customer service
    • Customer support
    • Regional contacts
    • Find a partner

    Join the Red Hat Developer program

    • Download Red Hat products and project builds, access support documentation, learning content, and more.
    • Explore the benefits

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

    • Every layer counts: Defense in depth for AI agents with Red Hat AI

    • Fun in the RUN instruction: Why container builds with distroless images can surprise you

    • Trusted software factory: Building trust in the agentic AI era

    • Build a zero trust AI pipeline with OpenShift and RHEL CVMs

    • Red Hat Hardened Images: Top 5 benefits for software developers

    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
    © 2026 Red Hat

    Red Hat legal and privacy links

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

    Chat Support

    Please log in with your Red Hat account to access chat support.