Overview

Product video
This is a repackaged open source software wherein additional charges apply for extended support with a 24 hour response time.
Built for performance and stability, this AMI features OpenJDK 21 (Java 21) running on the reliable CentOS Stream 10 operating system. Perfect for developers and organizations seeking to leverage the latest Java advancements, this AMI allows for rapid deployment of Java applications in the AWS cloud.
Key Features:
- Latest Java Version: Leverage the enhancements and new features of OpenJDK 21 to improve application performance and developer productivity.
- CentOS 10: Incorporates a stable and secure environment, ideal for enterprise-level applications and services.
- Optimized Performance: Pre-configured for optimal performance and resource usage in cloud environments.
Benefits:
- Rapid Deployment: Quickly spin up Java applications with minimal configuration required.
- Secure and Reliable: Benefit from CentOS's reputation for security and community support.
- Cost-Effective: Open-source foundation alongside flexible cloud pricing options.
Use Cases:
- Enterprise Applications: Deploy large-scale applications requiring Java.
- Web Services: Build and manage Java-based web applications and RESTful services.
- Development and Testing: Use this AMI as a development environment for testing new features in Java 21.
Make the most of your cloud infrastructure with this cutting-edge OpenJDK 21 AMI on CentOS 10, ensuring a powerful foundation for your Java applications.
Try our most popular AMIs on AWS EC2
- Ubuntu 24.04 AMI on AWS EC2
- Ubuntu 22.04 AMI on AWS EC2
- Ubuntu 20.04 AMI on AWS EC2
- Ubuntu 18.04 AMI on AWS EC2
- CentOS 10 AMI on AWS EC2
- CentOS 9 AMI on AWS EC2
- CentOS 8 AMI on AWS EC2
- Debian 12 AMI on AWS EC2
- Debian 11 AMI on AWS EC2
- Debian 10 AMI on AWS EC2
- Debian 9 AMI on AWS EC2
- Red Hat Enterprise Linux 9 (RHEL 9) AMI on AWS EC2
- Red Hat Enterprise Linux 8 (RHEL 8) AMI on AWS EC2
- Red Hat Enterprise Linux 7 (RHEL 7) AMI on AWS EC2
- Oracle Linux 9 AMI on AWS EC2
- Oracle Linux 8 AMI on AWS EC2
- Oracle Linux 7 AMI on AWS EC2
- Amazon Linux 2023 AMI on AWS EC2
- Windows 2022 Server AMI on AWS EC2
- Windows 2019 Server AMI on AWS EC2
- Docker on Ubuntu 20 AMI on AWS EC2
- Docker on CentOS 10 AMI on AWS EC2
Highlights
- OpenJDK 21 on CentOS Stream 10 offers a robust, high-performance development environment ideal for Java applications. With the latest Java 21 features, developers can leverage improved performance, enhanced language constructs, and new APIs for modern application development. The comprehensive support for both enterprise-level applications and microservices makes it a versatile choice for deploying scalable solutions in the cloud.
- This AMI ensures seamless integration within the AWS ecosystem, allowing for easy scaling and management of Java-based applications on EC2. Pre-configured with CentOS 10, it enables developers to focus on code rather than configuration. Users benefit from optimization for cloud computing, including security enhancements and system performance tuned for AWS infrastructure.
- Use cases for OpenJDK 21 on CentOS 10 are versatile, ranging from web servers serving dynamic Java applications to backend services for microservices architecture. Additionally, its compatibility with existing Java frameworks, such as Spring and Hibernate, makes this AMI an ideal choice for enterprises transitioning to cloud-native application architectures in a cost-effective manner.
Details
Introducing multi-product solutions
You can now purchase comprehensive solutions tailored to use cases and industries.
Features and programs
Buyer guide

Financing for AWS Marketplace purchases
Pricing
- ...
Dimension | Cost/hour |
|---|---|
t2.2xlarge Recommended | $0.56 |
t2.micro | $0.21 |
t3.micro | $0.07 |
m7i-flex.4xlarge | $1.12 |
hpc7a.48xlarge | $4.48 |
i2.2xlarge | $0.56 |
h1.2xlarge | $0.56 |
g4dn.metal | $3.36 |
r7a.metal-48xl | $3.36 |
r6in.2xlarge | $0.56 |
Vendor refund policy
The instance can be terminated at anytime to stop incurring charges
How can we make this page better?
Legal
Vendor terms and conditions
Content disclaimer
Delivery details
64-bit (x86) Amazon Machine Image (AMI)
Amazon Machine Image (AMI)
An AMI is a virtual image that provides the information required to launch an instance. Amazon EC2 (Elastic Compute Cloud) instances are virtual servers on which you can run your applications and workloads, offering varying combinations of CPU, memory, storage, and networking resources. You can launch as many instances from as many different AMIs as you need.
Version release notes
System Update
Additional details
Usage instructions
SSH to the instance and login as 'ec2-user' using the key specified at launch.
OS commands via SSH: SSH as user 'ec2-user' to the running instance and use sudo to run commands requiring root access.
verify java version by running
java -version
Resources
Vendor resources
Support
Vendor support
Email support for this AMI is available through the following: https://supportedimages.com/support/ OR support@supportedimages.com
AWS infrastructure support
AWS Support is a one-on-one, fast-response support channel that is staffed 24x7x365 with experienced and technical support engineers. The service helps customers of all sizes and technical abilities to successfully utilize the products and features provided by Amazon Web Services.
Standard contract
Customer reviews
Virtual threads have transformed asynchronous teaching and enterprise development workflows
What is our primary use case?
My main use case for OpenJDK Java is for various development purposes including desktop, web, integration patterns, interoperability, and everything that is usually included in standard enterprise projects and small demo examples that I use in teaching while instructing students at my courses.
What is most valuable?
The best features OpenJDK Java offers depend on the version. Usually, the last few versions included virtual threads and all the optimizations that benefit applications including Spring applications, etc. Nowadays you don't need to rely on platform threads. You can use virtual threads without a problem and create them in vast numbers, not just hundreds, because asynchronous applications are very important for creating an environment in which you can be responsive, and especially in this AI age where you can combine everything together and try to provide your users with the best features and best capabilities of your system. Of course, the latest version includes the Vector API. I'm looking forward to actually using the best features related to that and all those small perks that are added to every single version, such as lambda expression optimizations, HTTP client, JavaFX that I use, and everything that helps you to be productive and to follow the best practices such as SOLID principles, design patterns, and clean code.
OpenJDK Java has positively impacted my organization because the word open actually opens everything more to the community. Usually people don't want to be vendor-locked. That's why they need this opportunity to choose their own platform to create an environment where they feel the most comfortable and of course, the most productive. Every next version of OpenJDK, for example, the last few years we experienced optimization in garbage collectors, etc. Someone can also include their own garbage collector or choose from the list of available and supported garbage collectors. They can have this support that will give them full control over their environments. Everything that is added to the stack every six months also makes the whole community vibrant. We eagerly wait for those short-term releases every six months, but at the end of the day, the latest versions are those that have the most impact to the community.
What needs improvement?
I think that we need to follow the latest trends and include even more optimization in the language to match the best performing languages so we can get more with less code because Java often requires some kind of boilerplate to achieve many things, but other languages don't require that. This is perhaps the only thing that will naturally evolve in the future. Also since Java was released in 1995, nowadays we celebrate 30 to 31 years of Java existence on the market. There are certainly things that can be optimized. This release cycle every six months is a good one, so I think newer features will be added and of course, older features will be removed. For example, I really don't prefer to use primitive types such as int, long, short, and boolean. I would rather use records or reference types. This could be something that might be more promoted to actually use other reference types rather than using primitive types. I understand how deep this is within the language, so it cannot be extracted or cut off from the platform. However, it's our responsibility to promote the best practices and to use, for example, optional types instead of null references to avoid null pointer exceptions. This is something I really appreciate in Java because avoiding common pitfalls and mistakes helps developers to be more productive.
For how long have I used the solution?
I have been using OpenJDK Java since I started programming in 2003 when I was a student.
Which other solutions did I evaluate?
I would like to see some alternative tools that will help developers to start development with AI assistance because JetBrains IntelliJ is something that is really powerful, but when you are no longer a student, you need to pay for the tooling. Before, let's say 20 years ago, we had Eclipse or JDeveloper environments, but they are not keeping pace with the competitors. That's why this open keyword should also popularize the whole Java enterprise and community, etc. It will help to have a tool that will be competitive to the other elements because, for example, we had the Scene Builder for JavaFX that was maintained by Oracle, but they abandoned it. So this parallel thread, let's say Gluon JavaFX is now actually producing good results. That's why this branding is very important. If you actually stand behind a tool that will be created for this new era of development with the help of AI and live coding, it could help the platform to be more popular and of course, involve more than 10 million developers. Although Java is already over 30 years old, it will still be a main competitor on the market. For all enterprise development solutions, Java as an open-source technology could still be the number one choice and stay for a long time as number one.
What other advice do I have?
An example of how I use OpenJDK Java in my teaching and enterprise projects is that since everything I teach is related to Java, I create an object, for example, in the IntelliJ JetBrains environment. Then when a new Java version is released, perhaps version 25 or 26 every six months, I download it through this tool, JetBrains IntelliJ, and configure my project, mostly Spring projects or vanilla Java projects without any specific frameworks to establish the basic functionality, and then I start developing all the features that are required for this purpose.
At the end of the day, Java is a platform and many open-source libraries and projects are added to the technology stack and then we are implementing enterprise applications, web applications, or even console applications just to show that this is something that can cover everything. With AI, it's much easier because the best models are using the latest Java versions without any problems, so you can immediately be very productive and at the end of the day, you can deliver your application much faster than you could five or six years ago.
I want to show many examples of performance, measurements, reports, and automation such as unit testing, CI/CD, and especially integration with AI regarding how I use OpenJDK Java in my teaching and development.
The efficiency of virtual threads is the first thing that comes to mind when I talk about how virtual threads or any of these features have changed the way I and my students develop applications. Instead of creating platform threads that are very heavy for the system because the memory footprint is 1 MB to 2 MB per thread, with virtual threads, you actually have a footprint of 1 KB, which means that you can create many threads and they can be synchronized, especially if you use asynchronous operations or prefer to have non-blocking changes to every resource that you are contacting with. This is something that can be done much more easily and you can create a pool of threads that you use efficiently, so you can be much more productive when you use those things. Of course, your system can utilize the hardware resources much more efficiently and that's why this is the future of asynchronous parallel development. For example, when you synchronize virtual threads with your main thread in JavaFX UI, you can actually create something that will run in the background without taking too much processor time and actually increase the responsiveness of every application.
I want to highlight especially the newest features that are included in the latest releases, such as the Vector API, because I tested the Vector API a few years ago when it was in the incubation period. It was still promising to actually use some features of CPUs to even better optimize the processing of large data. Especially nowadays we use many datasets when we prepare the datasets to train our LLM models. This is something I would like to highlight and I'm looking forward to getting the final version so I can play with it in my own use cases.
My advice for others looking into using OpenJDK Java is that they need to compare their own solutions to OpenJDK Java and then decide for themselves because it's very important to have a choice, not to be vendor-locked. You should have a choice and compare how good this is accepted, how easy you can actually get all the information, and how good it is accepted across the AI landscape. If the AI generates many examples that can be easily integrated or run on OpenJDK Java, that's the way to go. I give this review a rating of 9 out of 10.
High‑throughput data pipelines have processed telecom records efficiently and meet performance goals
What is our primary use case?
My main use case for OpenJDK Java is developing a telecom product which requires OpenJDK 21 with Apache Kafka . We are using Apache NiFi , and that was the major requirement for OpenJDK because we were using the Apache NiFi latest version which uses Java 17 and above versions.
A specific example of how OpenJDK Java fits into our telecom product is that Apache NiFi requires Java 17 and above versions, and OpenJDK is a free version which can be used. We use it and also use virtual threads for Java 21, so we benefit from the features of OpenJDK.
What is most valuable?
The best features OpenJDK Java offers are that it is open source and all the latest Java features can be used in OpenJDK. We used OpenJDK 21 version with those features, including virtual threads and strings which are also part of those features.
The most valuable open-source aspects and latest Java features for us are virtual threads which were the most frequently used in our application.
OpenJDK Java has improved our organization because it has some optimization techniques. Since our application was a high throughput application, we utilized these optimizations. We also make use of other Java features which are widely used in Java 17 as well.
What needs improvement?
OpenJDK Java already has so many features which are not part of other languages. As time evolves, OpenJDK is already getting enhanced with many features including Java Streams. We might need to include many libraries which are part of Python and are not currently part of OpenJDK. This would be a way to improve OpenJDK.
The needed improvements for OpenJDK include documentation and support which is already good from the OpenJDK side, and I do not find any problem currently. The OpenJDK community is not what we had earlier in the Java community, but it is acceptable. OpenJDK is already a part of our work.
For how long have I used the solution?
I have been using OpenJDK Java for around 1.5 years.
Which solution did I use previously and why did I switch?
I do not think we were using a different solution as we started using OpenJDK 21 when I joined this project within our organization which was a product development. The upper management was using this only.
What was our ROI?
I have seen a return on investment as I think a lot of money has been saved, but I do not have that number currently because higher management handles that in our organization.
What's my experience with pricing, setup cost, and licensing?
My experience with pricing, setup cost, and licensing was good.
Which other solutions did I evaluate?
I do not have the answer to whether we evaluated other options before choosing OpenJDK Java because I have been part of a development team, and higher management only chose this. We made use of it.
What other advice do I have?
The optimizations impacted our organization significantly since we were using Apache NiFi with OpenJDK 21, and our application throughput was really high. We were able to process 7,000 records per minute, so the throughput was really high and the performance was also good. The JVM was not running high and the performance was really good. I would rate this product a 9 overall.
Which deployment model are you using for this solution?
If public cloud, private cloud, or hybrid cloud, which cloud provider do you use?
Building diverse applications has empowered long-term innovation and reduced infrastructure costs
What is our primary use case?
A specific example of a project where I used OpenJDK Java is as one of the maintainers of the Pi4J project, which is a library that allows Java developers to interact with electronics connected to a Raspberry Pi. This is one of the main projects that I'm involved in as a pet project, where I also write all the documentation and the release notes for the Azul releases of the OpenJDK Java builds.
What is most valuable?
OpenJDK Java has positively impacted my organization by allowing us to build whatever we want. There are either libraries available to create any kind of application, or it's very easy to add functionality to solve specific issues or even create a library that you can share with the community to help others.
Specific outcomes that show how OpenJDK Java has benefited my organization include that with Azul, we have a lot of data about that. For instance, if you are using Kafka running on the Java runtime and you switch to another distribution of the Java runtime, such as the Zing runtime, then you can achieve up to a 30% cost reduction because you need fewer servers or a smaller deployment environment to achieve the same load and reduce your costs.
What needs improvement?
For how long have I used the solution?
What do I think about the stability of the solution?
What do I think about the scalability of the solution?
How are customer service and support?
Which solution did I use previously and why did I switch?
What was our ROI?
Which other solutions did I evaluate?
What other advice do I have?
Which deployment model are you using for this solution?
If public cloud, private cloud, or hybrid cloud, which cloud provider do you use?
Robust platform has supported secure wallet backends and reduced development costs
What is our primary use case?
In addition to my main use case, while studying, I used JDK to build backend logic for my personal project, which is a form-fill assist application.
What is most valuable?
This feature has helped my development process because creating too many objects can lead to an out of memory situation, but the garbage collection efficiently deletes unused memory.
OpenJDK Java stands out for its portability, as it runs on a write once, run everywhere principle due to its virtual memory and JVM, which converts every code into machine code, making it helpful to run code on any device.
OpenJDK Java has positively impacted my organization by providing a large number of resources to find issues and creating a large environment that helps in many areas.
Having a large environment and many resources has helped my team specifically when we tried to use Redis components, as we could consult previous blogs to maintain it, which was helpful for integrating other components into our code.
What needs improvement?
We would like to see better documentation of new features that are updated in OpenJDK Java.
It would be great to provide AI-related features and proper documentation to study OpenJDK Java.
For how long have I used the solution?
What do I think about the stability of the solution?
How are customer service and support?
Which solution did I use previously and why did I switch?
How was the initial setup?
What was our ROI?
What's my experience with pricing, setup cost, and licensing?
I do not have prior experience with pricing, setup cost, and licensing for OpenJDK Java.
What other advice do I have?
Which deployment model are you using for this solution?
If public cloud, private cloud, or hybrid cloud, which cloud provider do you use?
Building high-performance backend services has improved consistency and reduced operational overhead
What is our primary use case?
I have been using OpenJDK Java for around two years, mainly for building backend services and APIs in microservices architecture.
My primary use case with OpenJDK Java has been building scalable backend systems, including REST APIs, async job processors, and event-driven services.
One example is a booking system I worked on where we handled around 50,000 daily requests using OpenJDK Java with proper JVM tuning, which reduced API response times by about 30% and improved throughput significantly without increasing infrastructure costs.
Beyond APIs, I have also used OpenJDK Java for batch processing jobs and background workers.
What is most valuable?
The best features of OpenJDK Java in my experience include write-once, run-anywhere capability thanks to the JVM, along with powerful performance optimization and garbage collection tuning options for backend systems.
I have seen significant improvements in system stability and resource utilization thanks to OpenJDK Java's garbage collection and JVM tuning capabilities. For instance, in one project, we were able to reduce memory-related issues by over 50% by fine-tuning the JVM's garbage collection settings.
The open-source nature of OpenJDK Java is a significant advantage, giving flexibility to choose different builds such as Amazon Corretto or Red Hat builds. Additionally, the frequent release cycles help us adopt new features quickly.
OpenJDK Java has positively impacted our organization by helping us standardize our backend stack across teams, making onboarding easier. New developers could ramp up faster since Java and OpenJDK Java are widely known and well documented.
What needs improvement?
One area that could improve OpenJDK Java is official enterprise-grade support. While community support is excellent, sometimes companies still prefer vendor-backed guarantees.
The documentation for OpenJDK Java is good overall, but debugging JVM-level issues can still be complex for newer developers. Better, simplified guides around memory tuning and garbage collection would help.
For how long have I used the solution?
I have been using OpenJDK Java for around two years, mainly for building backend services and APIs in microservices architecture.
What do I think about the stability of the solution?
OpenJDK Java is extremely stable. We have had services running for months without restarts, handling high loads without any major JVM crashes.
What do I think about the scalability of the solution?
Scalability is one of OpenJDK Java's strongest points. With proper JVM tuning and containerization, we scaled services to handle 3x traffic spikes during peak hours.
Which solution did I use previously and why did I switch?
We were initially using Oracle JDK but switched to OpenJDK Java due to licensing costs and flexibility concerns, as OpenJDK Java offered the same core functionality without the restrictions.
How was the initial setup?
The experience with pricing, setup cost, and licensing for OpenJDK Java is straightforward and completely free since it is open-source. We usually install it via package manager or Docker images, making onboarding new services quick.
What was our ROI?
The ROI has been strong with OpenJDK Java due to zero licensing costs, stable performance, and reduced operational overhead, overall improving efficiency by around 25% across backend teams.
What's my experience with pricing, setup cost, and licensing?
We cut the licensing cost almost completely by moving from Oracle JDK to OpenJDK Java, saving roughly 20 to 25% annually on infrastructure.
Which other solutions did I evaluate?
Before choosing OpenJDK Java, we evaluated other options including Oracle JDK and some JVM alternatives, but most were either expensive or less flexible compared to OpenJDK Java.
What other advice do I have?
I have found that the learning curve for new developers adopting OpenJDK Java in our team is relatively moderate. They typically already have a background in Java, allowing them to get up to speed quickly and start contributing to our projects with some guidance and resources.
I have had a smooth experience integrating OpenJDK Java with other technologies, particularly Spring Boot and containerization tools such as Docker . OpenJDK Java works seamlessly with Spring Boot , allowing us to develop and deploy applications quickly and efficiently.
I handle security and updates for OpenJDK Java by regularly checking for updates and applying them as soon as possible, while also making sure to follow best practices for secure coding and configuration. I have found that using tools such as Docker and Kubernetes helps streamline the process of keeping our deployments up to date and secure.
We monitor and manage the performance of our applications running on OpenJDK Java using tools such as Java Mission Control and VisualVM, which provide detailed insights into memory usage, CPU usage, and other key metrics.
We have found OpenJDK Java to be highly performant and reliable compared to other Java distributions such as Oracle JDK, and in some cases, even more stable due to its open-source nature and community-driven updates. It has consistently delivered high-quality performance and reliability across various applications and deployments.
We handle version upgrades with OpenJDK Java by regularly checking for updates and applying them as soon as possible to ensure that we have the latest security patches and features.
Since OpenJDK Java is community-driven, we rely mostly on forums and documentation. For critical systems, we sometimes use vendor-supported builds for SLA coverage.
I would recommend starting with OpenJDK Java if you are building backend systems, as it is cost-effective and production-ready. I suggest investing some time in understanding JVM tuning early on.
OpenJDK Java is a very mature and reliable platform, giving enterprise-grade capabilities without the cost overhead, making it an excellent choice for most backend systems. I would rate OpenJDK Java a nine out of ten.