Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Differences Amazon Corretto and OpenJDK

Tags:

java

corretto

What are the differences between Amazon Corretto and OpenJDK (and Oracle's OpenJDK - but there is already a ticket about this)? Corretto is a OpenJDK version 8 implementation. Both are free and seem to run on most systems (Linux, Mac OS and Windows). So far Corretto is only in preview, but this will change soon. Corretto's documentation doesn't say much about differences. Are there differences in e.g. performance, garbage collection? Why would I prefer one over the other? Would you use Corretto outside of AWS?

like image 611
Kris Avatar asked Nov 14 '18 17:11

Kris


People also ask

Is Amazon Corretto the same as OpenJDK?

General. Q: What is Amazon Corretto? A: Corretto is a build of the Open Java Development Kit (OpenJDK) with long-term support from Amazon. Corretto is certified using the Java Technical Compatibility Kit (TCK) to ensure it meets the Java SE standard and is available on Linux, Windows, and macOS.

Is Corretto an OpenJDK?

Amazon Corretto is a no-cost, multiplatform, production-ready distribution of the Open Java Development Kit (OpenJDK). Corretto comes with long-term support that will include performance enhancements and security fixes.

What is Amazon Corretto used for?

Corretto is certified as compatible with the Java SE standard and is used internally at Amazon for many production services. With Corretto, you can develop and run Java applications on operating systems such as Amazon Linux 2, Windows, and macOS.

Is OpenJDK better than Oracle Java?

Performance. There's no real technical difference between the two, since the build process for Oracle JDK is based on that of OpenJDK. When it comes to performance, Oracle's is much better regarding responsiveness and JVM performance.


1 Answers

From Amazon's description:

"Patches and improvements in Corretto enable Amazon to address high-scale, real-world service concerns, meeting heavy performance and scalability demands. We’re making these available to customers with no-cost, long-term support, with quarterly updates including bug fixes and security patches. AWS will also provide urgent fixes to customers outside of the quarterly schedule"

So Corretto has tweaks that are specific to performance (e.g. for server or cloud applications), and also additional bug fixes that users can take advantage of that aren't necessarily in OpenJDK proper yet. Also with this Amazon is offering proper LTS support of their build, as other commercial companies are starting to do for the JDK (Oracle and Azul come to mind, as well as others).

like image 156
Jason Avatar answered Sep 20 '22 14:09

Jason