Upgrade to Pro — share decks privately, control downloads, hide ads and more …

What's new for Java in the clouds?

What's new for Java in the clouds?

Sebastian Daschner

December 05, 2018
Tweet

More Decks by Sebastian Daschner

Other Decks in Technology

Transcript

  1. What’s new for Java in
    the clouds?
    Sebastian Daschner
    Lead Developer Advocate

    View Slide

  2. © 2015 INTERNATIONAL BUSINESS MACHINES CORPORATION
    @DaschnerS
    About me
    Sebastian Daschner
    Lead Java Developer Advocate @ IBM
    Java Champion
    Consultant, trainer, book author
    JCP Expert Group member & Jakarta EE Committer
    Oracle Developer Champion (Alumni)
    JavaOne Rockstar speaker

    View Slide

  3. © 2015 INTERNATIONAL BUSINESS MACHINES CORPORATION
    @DaschnerS
    Let’s talk about Java

    View Slide

  4. © 2015 INTERNATIONAL BUSINESS MACHINES CORPORATION
    @DaschnerS
    Java: Where are we?
    ● #1 Tiobe Index
    ● Widely used in enterprise software
    ● 20+ years of experience
    ● Often first choice in universities
    ● Powers the smallest to largest runtimes

    View Slide

  5. © 2015 INTERNATIONAL BUSINESS MACHINES CORPORATION
    @DaschnerS
    And the future?

    View Slide

  6. © 2015 INTERNATIONAL BUSINESS MACHINES CORPORATION
    @DaschnerS
    Thinking positively about Java?
    Still learning about features in Java 8?
    Looking at Java 10 or going to Java 11?
    Trying to understand the new feature release process?
    Worried about being able to use Java for free?
    Exploring “Java Platform Module System”?
    Trying out Jshell?
    Figuring out jlink?

    View Slide

  7. © 2015 INTERNATIONAL BUSINESS MACHINES CORPORATION
    @DaschnerS
    It’s easy to focus on now – it’s real and concrete

    View Slide

  8. © 2015 INTERNATIONAL BUSINESS MACHINES CORPORATION
    @DaschnerS
    Updated Java release process
    6 ... 7 ... 8 … 9,10,11,…17958?

    View Slide

  9. © 2015 INTERNATIONAL BUSINESS MACHINES CORPORATION
    @DaschnerS
    Our ecosystem is repositioning for a
    faster pace

    Predictable

    Consistent cadence

    Easier migration

    Increased innovation

    View Slide

  10. © 2015 INTERNATIONAL BUSINESS MACHINES CORPORATION
    @DaschnerS
    More like… Continuous Delivery?

    View Slide

  11. © 2015 INTERNATIONAL BUSINESS MACHINES CORPORATION
    @DaschnerS
    Our ecosystem is repositioning for a
    faster pace
    Are you too?

    View Slide

  12. © 2015 INTERNATIONAL BUSINESS MACHINES CORPORATION
    @DaschnerS
    Updated Oracle JDK support
    Is Java still free?

    View Slide

  13. © 2015 INTERNATIONAL BUSINESS MACHINES CORPORATION
    @DaschnerS
    “free as in beer”
    &&
    ”free as in speech”

    View Slide

  14. © 2015 INTERNATIONAL BUSINESS MACHINES CORPORATION
    @DaschnerS
    Java distribution & support

    Oracle JDK

    Oracle OpenJDK

    AdoptOpenJDK

    Eclipse OpenJ9

    Azul Zulu

    SapMachine

    ...

    View Slide

  15. © 2015 INTERNATIONAL BUSINESS MACHINES CORPORATION
    @DaschnerS
    Is Java still free?
    Short answer: Yes!

    View Slide

  16. © 2015 INTERNATIONAL BUSINESS MACHINES CORPORATION
    @DaschnerS
    Free updates?
    Short answer: It depends

    View Slide

  17. © 2015 INTERNATIONAL BUSINESS MACHINES CORPORATION
    @DaschnerS
    Free & $free Java

    Oracle OpenJDK builds (GPLv2+CE) (six-month cadence)

    Eclipse OpenJ9

    OpenJDK builds by AdoptOpenJDK, Azul, IBM, Red Hat, ...

    View Slide

  18. © 2015 INTERNATIONAL BUSINESS MACHINES CORPORATION
    @DaschnerS
    Hardware & Scale

    View Slide

  19. © 2015 INTERNATIONAL BUSINESS MACHINES CORPORATION
    @DaschnerS
    More, and more,
    and Moore...
    https://commons.wikimedia.org/wiki/File:Moores_law_(1970-2011).PNG

    View Slide

  20. JVMs can now scale from the very
    smallest to the very largest devices
    tiny humongous

    View Slide

  21. From the smallest...
    On the
    smart card
    Next to the processor (separate IC)
    In the processor

    View Slide

  22. ...to the very biggest...

    View Slide

  23. © 2015 INTERNATIONAL BUSINESS MACHINES CORPORATION
    @DaschnerS
    ...to the Clouds
    The sky is the limit

    View Slide

  24. © 2015 INTERNATIONAL BUSINESS MACHINES CORPORATION
    @DaschnerS
    And then we finally achieved
    Compute on Tap, Everything-as-a-Service

    View Slide

  25. © 2015 INTERNATIONAL BUSINESS MACHINES CORPORATION
    @DaschnerS
    New economics
    compute == $
    memory == $
    -Xmx: $100

    View Slide

  26. © 2015 INTERNATIONAL BUSINESS MACHINES CORPORATION
    @DaschnerS
    Very long running, efficient,
    monolithic applications
    Willing to trade startup time for
    throughput

    View Slide

  27. © 2015 INTERNATIONAL BUSINESS MACHINES CORPORATION
    @DaschnerS
    Short lived, container based, micro
    service oriented, instant-on, always
    available, cross server, polyglot
    services
    Now we also need

    View Slide

  28. Demand
    time

    View Slide

  29. Demand
    time
    How does your application respond to demand?

    View Slide

  30. Demand
    time
    One big server running all the time?

    View Slide

  31. Demand
    time
    One big server running all the time?
    Look at all that wasted money!

    View Slide

  32. Demand
    Smaller compute units are better

    View Slide

  33. Demand
    time
    Smaller compute units are better

    View Slide

  34. Time
    Ideal profile
    Memory
    Throughput

    View Slide

  35. Time
    Real data
    OpenJDK 9
    with Hotspot

    View Slide

  36. Time
    Real data
    OpenJDK 9
    with Hotspot
    OpenJDK 9
    with OpenJ9

    View Slide

  37. Time
    Real data
    OpenJDK 9
    with Hotspot
    OpenJDK 9
    with OpenJ9
    OpenJDK 9
    with OpenJ9
    + AOT

    View Slide

  38. IBM donated J9 to Eclipse
    because we believe it’s the
    best way to move Java
    forward
    • It offers a new place to start
    • As the future emerges we can see
    that Java needs to handle new
    technologies, new hardware
    • We can’t do it on our own. We have
    to do it together

    View Slide

  39. https://adoptopenjdk.net/?variant=openjdk8-openj9

    View Slide

  40. © 2015 INTERNATIONAL BUSINESS MACHINES CORPORATION
    @DaschnerS
    The future starts here…
    ?
    Data Analytics Machine Learning

    View Slide

  41. © 2015 INTERNATIONAL BUSINESS MACHINES CORPORATION
    @DaschnerS
    JVMs will need to offer good machine learning &
    data analysis capabilities

    View Slide

  42. GPU’s
    Parallel computation at high scale

    View Slide

  43. “Using a GPU without understanding how
    they work is like driving your car in reverse
    all the time”

    View Slide

  44. IBM + NVIDIA
    Improving Java application
    performance with GPU
    exploitation is available in IBM
    SDK for Java 8 and OpenJDK 9
    with Eclipse Open9
    Standard SE API optimisation as
    well as CUDA4J API for explicit
    low level control
    +

    View Slide

  45. © 2015 INTERNATIONAL BUSINESS MACHINES CORPORATION
    @DaschnerS
    From now on – you and your application will
    have to change as well
    GPUs require you to think differently
    So will AI and Machine Learning.

    View Slide

  46. © 2015 INTERNATIONAL BUSINESS MACHINES CORPORATION
    @DaschnerS
    BTW – what does a server GPU look
    like?
    NVIDIA’s largest graphics card is the DGX-2
    It’s 2 petaflops, 512 gigabyte, 10 kilowatts
    It weighs 160 kg
    That’s as much as a fully grown panda.

    View Slide

  47. © 2015 INTERNATIONAL BUSINESS MACHINES CORPORATION
    @DaschnerS
    Numbers of GPU’s in data centers are
    growing
    Java team is working on improved native code interop
    http://openjdk.java.net/projects/panama/
    Making Java more attractive for new workloads

    View Slide

  48. © 2015 INTERNATIONAL BUSINESS MACHINES CORPORATION
    And beyond?

    View Slide

  49. © 2015 INTERNATIONAL BUSINESS MACHINES CORPORATION
    @DaschnerS

    View Slide

  50. Runtime Language
    Type Safe
    Bytecode: JIT Compiled
    Garbage Collected
    Concurrent Threaded
    All Platforms
    The JVM’s design
    characteristics allow
    us to imagine taking
    it to new places
    No other runtime
    environment comes
    close

    View Slide

  51. © 2015 INTERNATIONAL BUSINESS MACHINES CORPORATION
    @DaschnerS
    The JVM design means that we can easily
    imagine running JVM languages on new forms of
    processors.
    The JVM can take the application model and transform it
    to the something suitable for the hardware

    View Slide

  52. © 2015 INTERNATIONAL BUSINESS MACHINES CORPORATION
    @DaschnerS
    Java Vendor competition and collaboration
    delivered
    • The fastest runtime environments
    • The most scalable runtime environments
    • The best garbage collectors
    • The greatest dynamically re-optimizing compilers
    • And we’re still doing it.

    View Slide

  53. © 2015 INTERNATIONAL BUSINESS MACHINES CORPORATION
    @DaschnerS
    Generating new JVM technologies
    • Container awareness
    • Fast native code interop
    • Re-optimised JITs
    • Re-tuned GC’s
    • AOT
    • Value Objects
    • Jit As A Service

    View Slide

  54. Thank you!
    sebastian-daschner.com
    @DaschnerS
    https://www.eclipse.org/openj9/
    https://medium.com/@javachampions/java-is-still-free-c02aef8c9e04
    https://developer.ibm.com/blogs/2018/11/28/java-licensing-is-
    changing-and-you-could-be-affected/

    View Slide