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

OpenJDK 25 now available in Red Hat Enterprise Linux 10.1

Improved performance, memory efficiency, and developer ergonomics

December 4, 2025
Kangcheng Xu
Related topics:
Java
Related products:
Red Hat build of OpenJDK

    Red Hat Enterprise Linux (RHEL) 10.1 includes the Red Hat build of OpenJDK 25 LTS, our latest long-term support release. This update offers better startup performance, memory efficiency, concurrency, and developer ergonomics. Red Hat supports OpenJDK 25 LTS through December 2030, providing a stable, long-term foundation for building and running applications.

    Install OpenJDK 25 on RHEL

    Install OpenJDK 25 on RHEL 10.1 with yum:

    sudo yum install java-25-openjdk
    java --version
    openjdk 25.0.1 2025-10-21 LTS
    OpenJDK Runtime Environment (Red_Hat-25.0.1.0.8-1) (build 25.0.1+8-LTS)
    OpenJDK 64-Bit Server VM (Red_Hat-25.0.1.0.8-1) (build 25.0.1+8-LTS, mixed mode, sharing)

    OpenJDK 25 includes performance features not found in OpenJDK 21. Developers and operators get faster startup times, smaller memory footprints, and better virtual thread performance with high-concurrency workloads.

    Ahead-of-time (AOT) improvements with Project Leyden

    Project Leyden improves application startup and warmup times by performing ahead-of-time computations.

    • Ahead-of-time class loading and linking: Enables AOT class loading and linking with an AOT cache generated during a training run. This provides lower startup latency and performance improvements, especially for short-lived containerized workloads.
    • Ahead-of-time command-line ergonomics: Simplifies AOT cache creation by combining the two steps involved in the process, reducing potential human errors and inconsistency.
    • Ahead-of-time method profiling: Records method-level profiles in the AOT cache to guide JIT optimization on hot methods and reduce the warmup time before reaching peak application performance.

    Garbage collection and memory efficiency

    Generational Shenandoah and more compact object layouts improve garbage collection (GC) performance and reduce memory usage.

    • Generational Shenandoah: Introduces generational collection to Shenandoah, improving throughput and reducing pause times for large, long-lived heaps.
    • Compact object headers: Shrinks object headers to reduce memory footprint, especially beneficial for applications with high object counts.

    Concurrency and scalability

    New features reduce thread pinning and provide faster, safer mechanisms for sharing state across threads.

    • Synchronize virtual threads without pinning: Removes unnecessary pinning of platform threads during synchronization, improving the scalability of virtual-thread–heavy workloads.
    • Scoped values: Provides a safe, high-performance mechanism for sharing immutable data across threads, offering lower space and time costs when used with virtual threads.

    Developer ergonomics

    • Compact source files and instance main methods: Concise source file formats and reduced boilerplate code make utility scripts and examples easier to write:

      cat > hello.java <<EOF
      void main() {
        IO.println("Hello, World!");
      }
      EOF
      java -Xshowversion hello
      Hello, World!

    Conclusion

    See OpenJDK.org for a list of all JEPs in JDK 25 integrated since JDK 21.

    Upgrading from OpenJDK 21 to 25 LTS provides a more responsive runtime, smaller memory usage, and improved scalability. This release maintains the compatibility and predictability required for mission-critical environments, aligned with Red Hat’s long-term maintenance policies.

    Related Posts

    • Red Hat Enterprise Linux 10.1: Top features for developers

    • How does cgroups v2 impact Java, .NET, and Node.js in OpenShift 4?

    • JVM tuning for Red Hat Data Grid on Red Hat OpenShift 4

    • Reproducible OpenJDK builds

    • .NET 10 is now available for RHEL and OpenShift

    • A beginner's guide to the Shenandoah garbage collector

    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?

    Red Hat Enterprise Linux 8, 9, and 10 are now available for Windows Subsystem for Linux (WSL), both as ready-to-run images and through the Red Hat Image Builder service. This cheat sheet gives you quick access to the essential commands and configurations for RHEL on WSL.

    Get the cheat sheet
    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.