Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What performance benefits does Oracle's commercial Hotspot JVM have over OpenJDK?

As described in this question:

OpenJDK vs Java HotspotVM

Oracle's commercial Hotspot JVM is essentially OpenJDK, plus several commercial-client-only features.

But - do these extra features actually contribute to performance on single machines and/or small clusters, with consumer-off-the-shelf hardware only? Or are they only relevant to large corporations with certain organizational needs and huge systems with custom hardware?

I'm specifically asking about "Java Flight Recorder, Application Class Data Sharing and Cooperative Memory Management" mentioned as the main commercial features in the linked-to question.

like image 294
einpoklum Avatar asked Mar 06 '23 14:03

einpoklum


1 Answers

Java Flight Recorder and Application Class Data Sharing have been open-sourced in the meantime, donated to the OpenJDK project.

Oracle plans to open-source all commercial-only features, or just remove them if nobody uses them. Mark Reinhold talks about this in this video from the JVM language summit just a few weeks ago https://youtu.be/15s5xP5BRxk?t=10m25s . He says:

In order to create a level playing field we've open-sourced all of [Apllication Class-Data Sharing, Java Flight Recorder, Java Mission Control, ZGC], these are now all open source. There's some remaining tiny, tiny commercial features that we will either open-source or we will just remove from the commercial offering because, well, it turns out not many customers are actually using them any way.

To quote the Oracle.com blog:

From Java 11 forward, therefore, Oracle JDK builds and OpenJDK builds will be essentially identical.

So if any of these commercial features gave any performance benefit, you can now get that benefit just by using OpenJDK as well.

like image 150
Jorn Vernee Avatar answered Apr 09 '23 00:04

Jorn Vernee