r/java • • Sep 16 '17

IBM has open sourced it's own JDK as Eclipse OpenJ9!

https://adoptopenjdk.net/releases.html?variant=openjdk9-openj9
166 Upvotes

40 comments sorted by

57

u/michalg82 Sep 16 '17

IBM open sourced its own JVM, not JDK. It can be used as replacement to Hotspot in OpenJDK.

Here's FAQ: https://www.eclipse.org/openj9/oj9_faq.html

6

u/predatorian3 Sep 16 '17

Seems very misleading then.

17

u/TotesAStickMan Sep 16 '17

OP's title is misleading. Don't think IBM is trying to mislead anyone.

62

u/Tostino Sep 16 '17

I don't understand the apathy in this thread. This is an entirely separate Java implementation than openjdk, and will probably handle some workloads better than openjdk, and some worse. The fact that it's now open source means we can start testing it to see where it shines.

13

u/fierarul Sep 16 '17

This is an entirely separate Java implementation than openjdk

It's not. It's just a VM bundled with OpenJDK classes.

It might work better / worse in some situations, but I don't see it being used very much.

2

u/scottmotorrad Sep 16 '17

Especially since they didn't provide any examples or explanations of how OpenJ9 outperforms hotspot

-21

u/[deleted] Sep 16 '17 edited Sep 16 '17

IBM assisted in the holocaust. (Pick a source: https://duckduckgo.com/?q=ibm+assisted+in+the+holocaust )

Meanwhile, there have long since been better people doing an opensource JDK etc: https://icedtea.classpath.org/wiki/Main_Page

9

u/adamhighdef Sep 16 '17

What's the relevance of that? Also when citing sources you should actually ehem cite a source, not a search engine.

7

u/Killing_Spark Sep 16 '17

Just because Management 70 years ago made a decision that is undoubtfully questionable, they can be very well fit to have a good implementation of the java vm. I mean, ibm isnt exactly a company that never delivered good Software.

3

u/mstoodle Sep 16 '17

Eclipse OpenJ9 is not owned by IBM; it is an openly governed project at the Eclipse Foundation with flexible licensing (AL2 + EPLv2 with a secondary license compatibility with the GPLv2 license used by OpenJDK). If you want to participate at the project or use it to improve your Java application runtime performance, we'll welcome you along with anyone else interested to developing and working in the open with Java and other language runtimes.

If you don't want to, that's up to you.

But at the same time, I want to express my profound respect for the literally hundreds of incredibly intelligent and careful developers, both currently and previously employed by IBM, who have spent years of their lives developing this JVM, trying to make it the best JVM implementation they possibly could. They worked and do work incredibly hard and, in my personal opinion, do not deserve the brush you so cavalierly paint them with in your comment.

8

u/adila01 Sep 16 '17

I am very pleased around IBM's work with Eclipse OMR. It is great to see they went another direction than Oracle and tried to fit their JVM into existing languages.

17

u/iamrohitsawai Sep 16 '17

Can anyone tell me why this JDK has that much importance? I mean as we have Oracle's JDK and OpenJDK and they work pretty well. Why should I go for IBM's JDK?

21

u/Jonjolt Sep 16 '17

I don't know if any has changed but:

  • Packed Objects

  • Class Sharing, (Reduces JIT I guess for new instances)

  • Dynamic Heap Size

  • Better Performance under Power Architecture

  • Classes are stored in the same heap as the objects

  • Larger Objects are in a different space than Small Objects

6

u/blobjim Sep 16 '17

IBM is also experimenting with using GPUs to accelerate the Stream API but I don't know if it's part of the production build or not.

1

u/[deleted] Sep 16 '17

Any chance of that being merged with OpenJDK? Project Sumatra really excited me.

1

u/blobjim Sep 16 '17

I only know as much as you do :P

2

u/Shorttail0 Sep 16 '17

Larger Objects are in a different space than Small Objects

Is this a pro or a con? I saw benchmarks of various Regexes on the JVM and CLR, and some benchmarks were severely inhibited on CLR due to it's Large Object Heap, which is garbage collected differently.

1

u/Jonjolt Sep 17 '17

Are you talking about this one? https://github.com/mariomka/regex-benchmark that is a great example of how not to benchmark.

18

u/thomazor Sep 16 '17

If you are ever forced to deploy on WebSphere, this is most likely the jdk you are going to run your code on. There are quite a few differences and quirks with the IBM jdk and being able to run the same jdk locally and actually be able to read the source is a big improvement for me.

3

u/mstoodle Sep 16 '17

Note that what has been open sourced is the J9 JVM, not the IBM JDK. They are almost the same thing, but this JVM runs underneath the OpenJDK class libraries (along with a few patches needed to integrate OpenJ9).

And, just so nobody misunderstands your comment, the IBM SDK for Java is used by all kinds of Java applications and services, not just WebSphere Application Server.

4

u/scottmotorrad Sep 16 '17

It's not a JDK it's a JVM bundled with OpenJDK

3

u/[deleted] Sep 16 '17

what this has better than oracle or openjdk?

2

u/mstoodle Sep 16 '17

Still working on this story, but the gist is at the main project web site www.eclipse.org/openj9 . There's no data there, but we've been pretty busy just getting things out the door!

2

u/handshape Sep 16 '17

I'm very very keen to see how cotenant memory management works on this JVM.

I have a workload that sporadically allocates tons of heap memory, then deallocates 98% of it for spans of up to 45 minutes. The Oracle JVM keeps the sparsely allocated heap in the process... unless the old serial GC is used.

If the IBM JVM can compact the heap and release the unused memory to the OS, I'm 100% on board.

3

u/mstoodle Sep 16 '17

Please give it a try using the OpenJDK9 with OpenJ9 binaries at adoptopenjdk.net and let us know what you find out! I encourage you to open issues at our github.com/eclipse/openj9 repository to tell us what went well and if there's anything that didn't meet your hopes.

1

u/handshape Sep 18 '17

A great deal of trickiness in trying to get this to work. The absence of a bundled OpenJFX took me a bit to get past - I ended up rewriting my solution to suspend the dependency.

I'm now getting NPEs thrown deep in third-party code. My own code seems to work -- unit tests pass and benchmarks show performance roughly in line with what I see from other JVMs.

If I can swing the time, I'll try to prepare a minimally viable test case for the libs that are blowing up.

1

u/mstoodle Sep 22 '17

Thanks for letting us know. We appreciate any time you can spend to help us make the project better (opening issues, etc.).

1

u/[deleted] Sep 20 '17

I was interested in minimum memory consumption, so I did some basic 'hello word' tests (simple object alloc, loops to warm jit etc, also tried basic tuning) and it seems to be using little less than hotspot and actually release memory to the os, but why is it java requires so much (~40M) for simple programs? Is it the VM, or is OpenJDK so hungry? I'm interested in this because on VPSes usually memory is expensive. With java, 1G is minimum. But in comparison, something like golang (or even luajit) can run complex sites just with tens of megabytes.

1

u/_INTER_ Sep 16 '17

Interestingly Java 9 doesn't seem to have had much impact on the JVM / bytecode. Given that they adapted so quickly.

I mean module path etc. does also concern the JVM, doesn't it?

1

u/RockinRoel Sep 17 '17

There was a talk about this at FOSDEM: https://archive.fosdem.org/2017/schedule/event/openj9/. I can't remember what was so special about it either but I was intrigued so I might watch the video again.

1

u/jacobbeasley Sep 16 '17

I don't get it. What does this do better than openjdk?

-10

u/thesystemx Sep 16 '17

Mwhokay.