Java

Java

Java

Topics on Semeru (Java) on IBM Z

 View Only
  • 1.  JDK 11 Temurin performance vs OpenJ9

    Posted Mon May 08, 2023 10:39 AM

    Hello,
    I was wondering if anyone had any performance issues running JDK 11 Temurin.
    In the past, I've used OpenJDK 8 which had some performance issues running on Z which made me switch to OpenJ9.
    Was wondering if there are still known issues around that area?



    ------------------------------
    Tomer Zelberzvig
    ------------------------------


  • 2.  RE: JDK 11 Temurin performance vs OpenJ9

    Posted Mon May 08, 2023 10:47 AM

    Hello Tomer,

    Semeru runtimes with OpenJ9 JVM on zSystems (z/OS and Linux on Z) have specific performance improvement and acceleration that you would not see with Temurin. For example in z16, 
    https://community.ibm.com/community/user/ibmz-and-linuxone/blogs/james-tang1/2022/06/09/java-performance-on-ibm-z16

    So, if you require these performance improvements, then it's strongly recommended to use the Semeru runtimes, downloadable here (select OS and s390x platform):
    https://developer.ibm.com/languages/java/semeru-runtimes/downloads/

    Thanks,
    James



    ------------------------------
    James Tang
    ------------------------------



  • 3.  RE: JDK 11 Temurin performance vs OpenJ9

    Posted Tue May 09, 2023 02:17 AM
    Hi James,

    I would also like to comment on this topic.
    The interesting/problematic thing is that the Linux community does not always adopt Semeru runtimes...
    A very good example is that the Tomcat docker containers for s390x don't have Semeru based image:

    Will the performance with Temurin be reasonable?

    Thanks!
    Offer Baruch
    Chief Technology Officer



    M. +972-54-2278475
    W. www.model9.io
    E. offer.baruch@model9.io
    LinkedIn  |  Facebook







  • 4.  RE: JDK 11 Temurin performance vs OpenJ9

    Posted Wed May 10, 2023 10:40 AM

    Thanks for the reply @James Tang

    As Offer mentioned below it's really problematic that IBM works on a Java addition that the open community doesn't adopt.
    Tomcat is of the examples but almost every s390x docker container is based on temurin and not Semeru.
    Are there plans to share with other releases these acceleration/improvments? 
    Thanks!
    Tomer Zelberzvig



    ------------------------------
    Tomer Zelberzvig
    ------------------------------



  • 5.  RE: JDK 11 Temurin performance vs OpenJ9

    Posted Wed May 10, 2023 04:52 PM
    Edited by Joran Siu Wed May 10, 2023 06:16 PM

    I cannot make any definitive statements on Temurin performance -- I have limited experience, and the answer (as always) is "it depends" :)   That said, the challenge with HotSpot on s390x for Java 8 and older releases is that lack of a JIT in the s390x port. A JIT implementation was contributed to the project for Java 9 [1], so performance is measurably better vs Java 8 HotSpot.

    Semeru / Eclipse OpenJ9 benefits from decades of investment of z specific innovation into the JVM implementation.  In terms of Tomcat performance, here's a dated OpenJ9 blog highlighting some of the benefits with Eclipse OpenJ9 JVM (measurements done on x86): https://blog.openj9.org/2019/11/20/tomcat-tradelite7-performance-of-openj9-with-default-shared-cache/

    Besides the Z hardware exploitation / optimizations that James shared above, Semeru also sports optimizations for cloud deployments:
    - Support for Class Data Sharing to accelerate startup : https://www.eclipse.org/openj9/docs/shrc/  Side note: Semeru container images trains itself with Tomcat to cache bootstrap classes for faster out-of-the-box startup! [2]

    - JITServer capabilities : https://blog.openj9.org/2022/05/25/exploring-jitserver-on-the-new-linux-on-ibm-z16-platform

    We also care very much about metrics like startup performance, time to first response, throughput and footprint: https://www.eclipse.org/openj9/performance/

    I appreciate the challenge you've highlighted where open community packages may not provide Semeru based container images. Thanks Offer for chiming in on the Tomcat issue today -- it's users and advocates like yourself that can help us make inroads in broader adoption, so thank you!

    - Joran

    [1] https://openjdk.org/jeps/294

    [2] https://github.com/ibmruntimes/semeru-containers/blob/ibm/17/jre/ubi/ubi9/Dockerfile.open.releases.full#L76-L97




  • 6.  RE: JDK 11 Temurin performance vs OpenJ9

    Posted Thu May 11, 2023 12:18 AM
    I think it will be great if the IBM community contributed this kind of information to the Tomcat community.
    Specifically there is an active issue discussion about this here:

    I already commented myself. The more the merrier.

    Thanks in advance,