Live data from Hacker News

Eclipse OpenJ9 – Open-source JVM

github.com

81–90 of 105 posts

Re: Eclipse OpenJ9 – Open-source JVM

#81
post #67

This is really interesting: CUDA support out of the box[1]. I've never seen this before, does any other JVM do it? [1] https://github.com/eclipse/openj9/tree/master/runtime/cuda

All of them do with 3-rd party libraries like JCuda. Bundling that into JVM is even a disservice to the user, because it is much more difficult to keep up to the newest CUDA features.

Re: Eclipse OpenJ9 – Open-source JVM

#82
In my experience J9 needs to be finely tuned to reach maximum performance for a specific use case other than enterprise application throughput. Try using the -Xquickstart flag if you want to improve startup time.

Re: Eclipse OpenJ9 – Open-source JVM

#83
post #61

Let's get straight to the really important question, can J9 or AOT help maybe just a little with clojure startup time woes?

I tried some quick tests using a fully AOT, short-running thing we run in house. Here the cost is the set-up of JVM and loading of Clojure stuff (CentOS 7 Vagrant VM on my Mac). J9: time ./jdk-9+181/bin/java -client -jar l2i-0.1.0-SNAPSHOT-standalone.jar real 0m1.987s user 0m3.383s sys 0m0.161s time ./jdk-9+181/bin/java -server -jar l2i-0.1.0-SNAPSHOT-standalone.jar real 0m2.949s user 0m5.452s sys 0m0.167s OpenJDK 8:…

Apparently there's an option in J9 called -Xquickstart, have you tried that?

Re: Eclipse OpenJ9 – Open-source JVM

#84
post #78

So IBM has OpenJ9 and OMR, Oracle has Graal and Truffle. The JVM space is suddenly getting very interesting. But my question is, why now? While OMR did opened up a year ago it didn't seems to have gained any traction. Then there was the JavaEE last week opened also going to Eclipse, which is strange because it has always been IBM going to Eclipse and Oracle goes to Apache. Not to mention the OpenJDK builds https://bl…

> What is going on in the Java Land

Could. Oracle and IBM are realising that WebLogic and WebSphere licensing revenue isn't going anywhere and if they want to grow revenue and achieve lock-in they have to find a new way.

Re: Eclipse OpenJ9 – Open-source JVM

#85
post #73
post #54

Earlier quoted context omitted.

I used JRockIT for some stuff. We found it to beat HotSpot (at the time) in some of our use cases. Eventually they got brought in house and HotSpot gained those speed improvements. One of the things that was really useful with it was Mission Control, which didn't exist to the same degree with the HotSpot VM.

JRockit's deterministic GC was awesome.

Didn't it make it into HotSpot?

Re: Eclipse OpenJ9 – Open-source JVM

#86
post #79
post #72

Earlier quoted context omitted.

You don't. You use an RTSJ JVM.

That’s not an option, that was the whole point of the discussion.

If changing the JVM spec is an option, then surely so is using an existing spec. IBM has an RTSJ JVM[1], which, I believe, is based on J9.

[1]: https://www.ibm.com/support/knowledgecenter/en/SSSTCZ_3.0.0/...

Re: Eclipse OpenJ9 – Open-source JVM

#87
post #78

So IBM has OpenJ9 and OMR, Oracle has Graal and Truffle. The JVM space is suddenly getting very interesting. But my question is, why now? While OMR did opened up a year ago it didn't seems to have gained any traction. Then there was the JavaEE last week opened also going to Eclipse, which is strange because it has always been IBM going to Eclipse and Oracle goes to Apache. Not to mention the OpenJDK builds https://bl…

Hi,

I do not work at any of the major JVM vendors but can point to trends in the space. Disclosure: My business relies heavily on the JVM and I am heavily involved in the java community from the AI side. We also do a ton of java systems development and have had conversations with many of the JVM vendors over the years including azul,oracle,red hat, and IBM.

Azul started running a "pure openjdk" distro a bit ago that they provide support for. They also provide a licensed embedded version. They are differentiating with a pauseless GC.

Oracle uses the JVM in a lot of their products. App servers are slowing down in favor of microservices now. This unbundling started with spring boot and supporting Java EE annotations.

We can see this with Java EE migrating to eclipse now because the annotations themselves have become commoditized.

Red hat started supporting jdk 7 in RHEL and was probably a bigger proponent of the "open" bits.

Overall here, just of note: Java has always had the JCP. https://jcp.org/en/home/index

I'm guessing that enough of the member organizations started pushing more for opening of the JVM.

Finally overall, we can see in the space that even at java conferences, a lot of conversations are moving towards "JVM as a platform" including scala and clojure in the conferences now.

So overall, I would say it's largely a shift in both the thinking and the way you monetize the JVM.

Re: Eclipse OpenJ9 – Open-source JVM

#88
post #61

Let's get straight to the really important question, can J9 or AOT help maybe just a little with clojure startup time woes?

I tried some quick tests using a fully AOT, short-running thing we run in house. Here the cost is the set-up of JVM and loading of Clojure stuff (CentOS 7 Vagrant VM on my Mac). J9: time ./jdk-9+181/bin/java -client -jar l2i-0.1.0-SNAPSHOT-standalone.jar real 0m1.987s user 0m3.383s sys 0m0.161s time ./jdk-9+181/bin/java -server -jar l2i-0.1.0-SNAPSHOT-standalone.jar real 0m2.949s user 0m5.452s sys 0m0.167s OpenJDK 8:…

Changes with Quickstart and Sharedclasses;

# time for i in `seq 1 10`; do ./jdk-9+181/bin/java -client -Xquickstart -jar l2i-0.1.0-SNAPSHOT-standalone.jar; done

real 0m18.571s user 0m30.429s sys 0m1.374s

# time for i in `seq 1 10`; do ./jdk-9+181/bin/java -client -Xshareclasses -jar l2i-0.1.0-SNAPSHOT-standalone.jar; done

real 0m16.642s user 0m19.483s sys 0m6.307s

Re: Eclipse OpenJ9 – Open-source JVM

#89
post #61

Earlier quoted context omitted.

I tried some quick tests using a fully AOT, short-running thing we run in house. Here the cost is the set-up of JVM and loading of Clojure stuff (CentOS 7 Vagrant VM on my Mac). J9: time ./jdk-9+181/bin/java -client -jar l2i-0.1.0-SNAPSHOT-standalone.jar real 0m1.987s user 0m3.383s sys 0m0.161s time ./jdk-9+181/bin/java -server -jar l2i-0.1.0-SNAPSHOT-standalone.jar real 0m2.949s user 0m5.452s sys 0m0.167s OpenJDK 8:…

The OpenJ9 infrastructure is somewhat different [for the better] than what I'm used to using internally, but I have only ever seen the shared class cache enabled when the -Xshareclasses [1] option is passed to the JVM. Do these numbers change significantly (especially after a warm-up run) if you add that option to J9's option set? [1] https://www.ibm.com/support/knowledgecenter/en/SSYKE2_8.0.0/...

see above

Re: Eclipse OpenJ9 – Open-source JVM

#90
post #61

Earlier quoted context omitted.

I tried some quick tests using a fully AOT, short-running thing we run in house. Here the cost is the set-up of JVM and loading of Clojure stuff (CentOS 7 Vagrant VM on my Mac). J9: time ./jdk-9+181/bin/java -client -jar l2i-0.1.0-SNAPSHOT-standalone.jar real 0m1.987s user 0m3.383s sys 0m0.161s time ./jdk-9+181/bin/java -server -jar l2i-0.1.0-SNAPSHOT-standalone.jar real 0m2.949s user 0m5.452s sys 0m0.167s OpenJDK 8:…

Maybe I'm missing something or I'm just blind but where is there AOT compilation in your example since you seem to run the same jar with the same command-line options. That said I'm not that surprised that class aot compilation didn't really speed up a clojure app.

The Clojure app was AOT compiled (Clojure->bytecode) not the JVM's AOT
Post reply on HN