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

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

    • OpenJDK 25 now available in Red Hat Enterprise Linux 10.1

    • Migrating Red Hat Ansible Automation Platform: From RPM to container on Red Hat Enterprise Linux

    • Python 3.9 reaches end of life: What it means for RHEL users

    • Upgrade air-gapped OpenShift with self-signed certificates

    • Tame Ray workloads on OpenShift AI with KubeRay and Kueue

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

    Red Hat legal and privacy links

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

    Report a website issue