top | item 18450189

(no title)

thom_nic | 7 years ago

I have not used Java in many years now, but I'm curious if anyone has anecdotal experience using OpenJDK in production? Performance vs Oracle Java, bugs/ idiosyncrasies due to internal API differences, etc?

discuss

order

nicktelford|7 years ago

We've been using OpenJDK in production since Java 7 without issue. Since Java 8, Oracle JDK has been built from OpenJDK with a couple of proprietary editions (Java Flight Recorder, SNMP support, different font rendering etc.).

In practice, none of the differences had any impact on our uses.

Since Java 11, Oracle JDK and OpenJDK are the same. Oracle JDK is just a build that's commercially supported by Oracle.

There's a ton of FUD around OpenJDK and has been for years. For a long time many Apache projects recommended Oracle JDK solely on the grounds that they hadn't been tested on OpenJDK by the maintainers.

SanderMak|7 years ago

As of JDK 11, there is feature parity between OpenJDK and Oracle JDK, which is the JDK that most people used until now. In JDK 8, the Oracle version had several closed source additional features (such as Java Flight Recorder and the Z garbage collector). Also, implementations of things like graphics rendering used to be different in Oracle JDK 8 and earlier. That's no longer the case. Oracle JDK and OpenJDK should be drop-in replacements for each other as of JDK 11.

ausjke|7 years ago

Amazon's OpenJDK is 1.8.0 which is JDK8, so it still 'misses' those Oracle's closed features?

p0rkbelly|7 years ago

James Gosling, says that Amazon uses Corretto in production...which is OpenJDK. So most of AWS/Amazon uses that.

bhauer|7 years ago

In our spot tests, we have not seen any performance difference or idiosyncratic behavior. Today, their differences seem more about licensing and support, and less about technology.

notyourwork|7 years ago

Opening this up to the world should be not so subtle hint to answer your question with real world experience.

rjkennedy98|7 years ago

Used OpenJDK in production for years. Never seen any issues or bugs. And with the changes in the OracleJDK license going forward we are essentially forced to use OpenJDK.