Graalvm Specific Benefits

Total Page:16

File Type:pdf, Size:1020Kb

Graalvm Specific Benefits 1 About Me Stuart Douglas ● Senior Principal Engineer at Red Hat ● Quarkus Co-founder ● Servlet Specification Co-lead ● Founder of the Undertow Project ● Core Contributor to WildFly 2 3 Benefit No. 1: Developer Joy A cohesive platform for optimized developer joy: ● ● ● ● ● 4 Benefit No. 2: Supersonic Subatomic Java Quarkus + Native Quarkus + JVM Traditional (via GraalVM) (via OpenJDK) Cloud-Native Stack 12 MB 73 MB 136 MB 5 Benefit No. 2: Supersonic Subatomic Java Quarkus + Native Quarkus + JVM Traditional (via GraalVM) (via OpenJDK) Cloud-Native Stack 28 MB 145 MB 209 MB 6 Benefit No. 2: Supersonic Subatomic Java Quarkus + Native (via GraalVM) 0.016 Seconds Quarkus + JVM (via OpenJDK) 0.943 Seconds Traditional Cloud-Native Stack 4.3 Seconds Quarkus + Native (via GraalVM) 0.042 Seconds Quarkus + JVM (via OpenJDK) 2.033 Seconds Traditional Cloud-Native Stack 9.5 Seconds 7 Benefit No. 3: Unifies Imperative and Reactive @Inject @Inject @Channel(”kafka”) SayService say; Publisher<String> reactiveSay; @GET @GET @Produces(MediaType.TEXT_PLAIN) @Produces(MediaType.SERVER_SENT_EVENTS) public String hello() { public Publisher<String> stream() { return say.hello(); return reactiveSay; } } ● ● ● 8 Benefit No. 4: Best of Breed Frameworks & Standards 9 Quarkus Benefits Developer Joy Supersonic Subatomic Java Unifies Best of breed imperative and reactive libraries and standards 10 11 F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F MONOLITH F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F ● ● ● 12 Enterprise Java was Designed for 3-Tier Architecture 13 How Application Services Deployed Java Apps 14 Microservices Changed How We Deploy Apps 15 The hidden truth about Java + containers ● ○ ● ○ RSS 16 The hidden truth about Java + containers 17 The hidden truth about Java + containers Node Node Node Node NodeJS Quarkus Quarkus Go Go Go Traditional Cloud-Native Java Stack NodeJS Quarkus Quarkus Go Go Go Traditional Cloud-Native NodeJS Quarkus Quarkus Go Go Go Java Stack NodeJS Quarkus Quarkus Go Go Go Traditional Cloud-Native NodeJS Quarkus Quarkus Go Go Go Java Stack NodeJS Quarkus Quarkus Go Go Go Traditional Cloud-Native Java Stack NodeJS Quarkus Quarkus Go Go Go CONTAINER ORCHESTRATION 18 Java on cloud native: a Red Hat journey Standards Ahead of time compilation ● Java EE streamlining ● Lead gcj ● Eclipse MicroProfile ● Looked at Dalvik, Avian, Excelsior JET Runtimes OpenJDK ● WildFly on OpenShift ● Container ergonomics ● JVM metadata reduction Hardware architectures ● Raspberry Pi and Plug Computer ● Android 19 How does a framework start? @ </> @ Build time (maven, gradle…) How does a framework start? @ </> @ Load config file from file system Parse it How does a framework start? @ </> @ Classpath scanning to find annotated classes Attempt to load class to enable/disable features How does a framework start? @ </> @ Build its model of the world. How does a framework start? @ </> @ Start the management (thread, pool…) The Quarkus way @ </> @ @ </> @ The Quarkus way - Closed-World Assumption @ </> @ Limited variability The Quarkus way - Benefits @ </> @ Prepared No FS access at No scanning at Optimized initialization runtime runtime configuration (ready to serve) No need for a Less reflection Less reflection parser at runtime and classloading (proxy at runtime generation) JDK JIT - HotSpot AOTC - GraalVM Native Image 29 Conclusion Full stack Massive productivity wins 30 Sulong (LLVM) Truffle Graal Compiler JVM CI Substrate VM Java HotSpot VM 32 AOTC - GraalVM native image - Dead code elimination 33 The Dark Side Not supported OK with caveats in usage ● ● ● ● ● ● ● ● ● ● ● 34 The Dark Side Not supported OK with caveats in usage ● ● ● ● ● ● ● ● ● ● ● 35 When to use which VM with Quarkus JIT - OpenJDK HotSpot AOT - GraalVM native image High memory density requirements Highest memory density requirements High request/s/MB Highest request/s/MB Fast startup time for low heap size usages Faster startup time Best raw performance (CPU) 10s of ms for Serverless Best garbage collectors Higher heap size usage Known monitoring tools Compile Once, Run anywhere Libraries that only works in standard JDK 36 GraalVM specific benefits 100% of the ecosystem supported on GraalVM Drives the gathering of metadata needed by GraalVM ● ● ● Minimize dependencies Help dead code elimination 37 Can I add my dependencies? YES Add your own dependency Write your own extension ● Works on the JVM (OpenJDK) ● Like add your dependency plus… ● May work on AOT (GraalVM) ● Build time startup and memory improvements ● Better dead code elimination ● Developer Joy 38 39 40.
Recommended publications
  • Java Version 40 Download Apache Tomcat ® Welcome to the Apache Tomcat ® 9.X Software Download Page
    java version 40 download Apache Tomcat ® Welcome to the Apache Tomcat ® 9.x software download page. This page provides download links for obtaining the latest version of Tomcat 9.0.x software, as well as links to the archives of older releases. Unsure which version you need? Specification versions implemented, minimum Java version required and lots more useful information may be found on the 'which version?' page. Quick Navigation. Release Integrity. You must verify the integrity of the downloaded files. We provide OpenPGP signatures for every release file. This signature should be matched against the KEYS file which contains the OpenPGP keys of Tomcat's Release Managers. We also provide SHA-512 checksums for every release file. After you download the file, you should calculate a checksum for your download, and make sure it is the same as ours. Mirrors. You are currently using https://mirror.softaculous.com/apache/ . If you encounter a problem with this mirror, please select another mirror. If all mirrors are failing, there are backup mirrors (at the end of the mirrors list) that should be available. Please see the README file for packaging information. It explains what every distribution contains. Apache Tomcat ® The Apache Tomcat ® software is an open source implementation of the Jakarta Servlet, Jakarta Server Pages, Jakarta Expression Language, Jakarta WebSocket, Jakarta Annotations and Jakarta Authentication specifications. These specifications are part of the Jakarta EE platform. The Jakarta EE platform is the evolution of the Java EE platform. Tomcat 10 and later implement specifications developed as part of Jakarta EE. Tomcat 9 and earlier implement specifications developed as part of Java EE.
    [Show full text]
  • D2.1.5 Final Reports on Requirements, Architecture, and Components for Single Trusted Clouds
    D2.1.5 Final Reports on Requirements, Architecture, and Components for Single Trusted Clouds Project number: 257243 Project acronym: TClouds Trustworthy Clouds - Privacy and Re- Project title: silience for Internet-scale Critical Infras- tructure Start date of the project: 1st October, 2010 Duration: 36 months Programme: FP7 IP Deliverable type: Report Deliverable reference number: ICT-257243 / D2.1.5 / 1.0 Activity and Work package contributing Activity 2 / WP 2.1 to deliverable: Due date: September 2013 – M36 Actual submission date: 30th September, 2013 Responsible organisation: SRX Editor: Norbert Schirmer Dissemination level: Public Revision: 1.0 Abstract: cf. Executive Summary Trusted computing, remote attestation, se- cure logging, confidentiality for commodity Keywords: cloud storage, efficient resilience, tailored components D2.1.5 – Final Reports on Requirements, Architecture, and Components for Single Trusted Clouds Editor Norbert Schirmer (SRX) Contributors Johannes Behl, Stefan Brenner, Klaus Stengel (TUBS) Nicola Barresi, Gianluca Ramunno, Roberto Sassu, Paolo Smiraglia (POL) Alexander Büger, Norbert Schirmer (SRX) Tobias Distler, Andreas Ruprecht (FAU) Sören Bleikertz, Zoltan Nagy (IBM) Imad M. Abbadi, Anbang Ruad (OXFD) Sven Bugiel, Hugo Hideler, Stefan Nürnberger (TUDA) Disclaimer This work was partially supported by the European Commission through the FP7-ICT program under project TClouds, number 257243. The information in this document is provided as is, and no warranty is given or implied that the information is fit for
    [Show full text]
  • Graalvm Enterprise Entitlement with Java SE Subscription FAQ
    Statement of Direction GraalVM Enterprise Entitlement with Java SE Subscription FAQ Customer Frequently Asked Questions January 2021, Version 1.0 Copyright © 2021, Oracle and/or its affiliates Public 1 GraalVM Enterprise Entitlement with Java SE Subscription FAQ / Version 1.0 Copyright © 2021, Oracle and/or its affiliates / Public Introduction Oracle Java SE Subscription now entitles customers to use Oracle GraalVM Enterprise at no additional cost. General • What are we announcing? o GraalVM Enterprise makes Java SE the preferred development platform for performance-demanding and resource constrained applications, microservices development, and cloud-native environments. Java SE Subscription customers are now immediately entitled to use GraalVM Enterprise in production and for development at no additional cost. • Why are we doing this? o We believe that Java SE Subscription users will greatly benefit from the added value that GraalVM Enterprise provides. • What is GraalVM Enterprise? o Oracle GraalVM Enterprise is a high-performance runtime built on Oracle Java SE that includes an advanced optimizing compiler which can accelerate performance while consuming less memory and CPU resources. It also supports the ahead-of-time compilation of applications into native executables that can start substantially faster and consume significantly less memory and CPU resources than other software platforms, making them ideal for microservices and other containerized applications. Go to the end of the FAQ to learn more about the benefits of GraalVM Enterprise. Learn more at https://www.oracle.com/java/graalvm/. • How does the inclusion of GraalVM Enterprise in the Java SE Subscription affect me if I’m a GraalVM Community Edition user? o GraalVM Community Edition continues to be available.
    [Show full text]
  • Hotspot Java Download
    Hotspot Java Download 1 / 4 Hotspot Java Download 2 / 4 3 / 4 I have also downloaded and installed ... When I launched Anypoint, the mac told me I needed to download a legacy java runtime - which I did. It then told me that .... Download Free Portable Wifi Hotspot Router PC for free at BrowserCam. ... The Java HotSpot VM incorporates leading-edge techniques for both uncontended .... Thermostat an instrumentation tool for the Hotspot JVM, with support for monitoring ... Discussion of this takes place on [email protected] and on the ... 8) and RPMs of IcedTea are available on the Downloads page. NOKIA PHONE AS A WIRELESS HOTSPOT AMP SHARE. BLUETOOTH HOTSPOT JAVA FREE DOWNLOAD SUGGESTIONS. FREE DOWNLOAD HERE.. The software automatically schedules and downloads new firmware images to ... Continued from page 1 Sun has touted HotSpot as the antidote to Java's ... hotspot java hotspot java, hotspot java download, hotspot javascript, hotspot java app, hotspot java jar, hotspot java app download, hotspot java vm, hotspot java phone, hotspot java 8, hotspot java 11, hotspot java wiki, hotspot java se 8 download Get more out of your Xfinity Mobile phone plan by setting up a hotspot. ... get started, customers simply need to visit www.xfinity.com/myxfi or download the xFi app (for ... ApiSince=1, DoNotGenerateAcw=true)] publicclassWifiManager : Java.. Wi Fi Hotspot App For Java Phoneky - http://blltly.com/1m3q7o c861546359 JoikuSpot WiFi HotSpot Symbian Apps - Download with Nokia, ... hotspot java app Go to Oracle's downloads page and select the version you want to download. ... Java(TM) SE Runtime Environment (build 11.0.1+13-LTS) Java HotSpot(TM) ...
    [Show full text]
  • Current State of EA and Its Uses in The
    Jfokus 2020 Current state of EA and Charlie Gracie Java Engineering Group at Microsoft its uses in the JVM Overview • Escape Analysis and Consuming Optimizations • Current State of Escape Analysis in JVM JITs • Escape Analysis and Allocation Elimination in Practice • Stack allocation 2 Escape Analysis and Consuming Optimizations 3 What is Escape Analysis? • Escape Analysis is a method for determining the dynamic scope of objects -- where in the program an object can be accessed. • Escape Analysis determines all the places where an object can be stored and whether the lifetime of the object can be proven to be restricted only to the current method and/or thread. 4 https://en.wikipedia.org/wiki/Escape_analysis Partial Escape Analysis • A variant of Escape Analysis which tracks object lifetime along different control flow paths of a method. • An object can be marked as not escaping along one path even though it escapes along a different path. 5 https://en.wikipedia.org/wiki/Escape_analysis EA Consuming Optimizations 1. Monitor elision • If an object does not escape the current method or thread, then operations can be performed on this object without synchronization 2. Stack allocation • If an object does not escape the current method, it may be allocated in stack memory instead of heap memory 3. Scalar replacement • Improvement to (2) by breaking an object up into its scalar parts which are just stored as locals 6 Current State of Escape Analysis in JVM JITs 7 HotSpot C2 EA and optimizations • Flow-insensitive1 implementation based on the
    [Show full text]
  • Nosql + SQL = Mysql Nicolas De Rico – Principal Solutions Architect [email protected]
    NoSQL + SQL = MySQL Nicolas De Rico – Principal Solutions Architect [email protected] Copyright © 2018 Oracle and/or its affiliates. All rights reserved. Safe Harbor Statement The following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. The development, release, and timing of any features or functionality described for Oracle’s products remains at the sole discretion of Oracle. Copyright © 2018 Oracle and/or its affiliates. All rights reserved. What If I Told You… ? ? NoSQL + SQL ? …is possible? ? Copyright © 2018 Oracle and/or its affiliates. All rights reserved. MySQL 8.0 The MySQL Document Store Copyright © 2018 Oracle and/or its affiliates. All rights reserved. MySQL 8.0 MySQL 5.0 MySQL 5.1 MySQL 5.5 MySQL 5.6 MySQL 5.7 MySQL 8.0 • MySQL AB • Sun • Improved • Robust • Native JSON • Document Microsystems Windows OS replication • Cost-based Store • Performance • Stricter SQL optimizer • Data Schema • Stronger • Group dictionary • Semi-sync repl security Replication • OLAP NDB Cluster 6.2, 6.3, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.6, 7.6 Copyright © 2018 Oracle and/or its affiliates. All rights reserved. MySQL Open Source (…Because It Makes Sense) • GPLv2 – Slightly modified for FOSS and OpenSSL – No extraneously restrictive licensing • MySQL source code available on Github – MySQL Receives many contributions from community and partners – Development collaboration with some leading MySQL users • Open Core business model – Additional tools and extensions available in Enterprise Edition – Server and client are GPL open source • This also helps to keep the ecosystem open source Copyright © 2018 Oracle and/or its affiliates.
    [Show full text]
  • Android Cours 1 : Introduction `Aandroid / Android Studio
    Android Cours 1 : Introduction `aAndroid / Android Studio Damien MASSON [email protected] http://www.esiee.fr/~massond 21 f´evrier2017 R´ef´erences https://developer.android.com (Incontournable !) https://openclassrooms.com/courses/ creez-des-applications-pour-android/ Un tutoriel en fran¸caisassez complet et plut^ot`ajour... 2/52 Qu'est-ce qu'Android ? PME am´ericaine,Android Incorporated, cr´e´eeen 2003, rachet´eepar Google en 2005 OS lanc´een 2007 En 2015, Android est le syst`emed'exploitation mobile le plus utilis´edans le monde (>80%) 3/52 Qu'est-ce qu'Android ? Cinq couches distinctes : 1 le noyau Linux avec les pilotes ; 2 des biblioth`equeslogicielles telles que WebKit/Blink, OpenGL ES, SQLite ou FreeType ; 3 un environnement d'ex´ecutionet des biblioth`equespermettant d'ex´ecuterdes programmes pr´evuspour la plate-forme Java ; 4 un framework { kit de d´eveloppement d'applications ; 4/52 Android et la plateforme Java Jusqu'`asa version 4.4, Android comporte une machine virtuelle nomm´eeDalvik Le bytecode de Dalvik est diff´erentde celui de la machine virtuelle Java de Oracle (JVM) le processus de construction d'une application est diff´erent Code Java (.java) ! bytecode Java (.class/.jar) ! bytecode Dalvik (.dex) ! interpr´et´e L'ensemble de la biblioth`equestandard d'Android ressemble `a J2SE (Java Standard Edition) de la plateforme Java. La principale diff´erenceest que les biblioth`equesd'interface graphique AWT et Swing sont remplac´eespar des biblioth`equesd'Android. 5/52 Android Runtime (ART) A` partir de la version 5.0 (2014), l'environnement d'ex´ecution ART (Android RunTime) remplace la machine virtuelle Dalvik.
    [Show full text]
  • Oracle Graalvm Enterprise Edition Data Sheet
    ` Oracle GraalVM Enterprise Edition Faster. Smarter. Leaner. Businesses are under increasing pressure to be smarter, faster and more agile at providing services to their clients and customers. Key Features A high-performance runtime for Oracle GraalVM Enterprise Edition is the modern microservices Leverages new optimization industry’s best solution for building applications algorithms to improve performance of enterprise on premise and in the cloud, offering superior applications Compiles Java applications ahead performance, enhancing competitiveness, and of time into native executables to improve startup and memory driving business innovation while reducing footprint Extends applications with libraries costs. It represents more than a decade of from other supported languages without performance penalties research into optimizing compiler and virtual Runs native languages like C/C++ in a safe mode on the JVM machine technology that provides significant Can be embedded in database. application performance and efficiency improvements. Microservices running on GraalVM consume less memory and CPU which significantly reduces cloud computing costs. WHAT IS GRAALVM ENTERPRISE? GraalVM Enterprise is a high-performance runtime that yields significant Related Products improvements in application performance and efficiency. It provides a platform for innovation to enhance competitiveness and accelerate application modernization. It GraalVM Enterprise is an is the best solution for building microservices on premise and in the cloud. entitlement
    [Show full text]
  • Graalvm Twitter Case Study
    December 11, 2019 CASE STUDY: ORACLE AND TWITTER How Oracle GraalVM Supercharged Twitter’s Microservices Platform Basic Research on Computing Fundamentals Delivers Once-in-a-Lifetime Performance Improvements Holger Mueller Vice President and Principal Analyst Copy Editor: Jim Donahue Layout Editor: Aubrey Coggins Produced exclusively for Constellation Research clients TABLE OF CONTENTS At a Glance ..............................................................................................3 The Company ............................................................................................4 The Challenges ..........................................................................................4 The Solution .............................................................................................5 The Impact ...............................................................................................7 The Takeaways ...........................................................................................8 The Recommendations ..................................................................................9 Analyst Bio .............................................................................................11 About Constellation Research ..........................................................................12 AT A GLANCE Twitter · Headquarters: San Francisco Twitter runs one of the most visible social networks in the · 2018 Revenue: $3.04 billion world. Its move to a microservices infrastructure has addressed · No.
    [Show full text]
  • Up to Two Lines
    Oracle Cloud Winter Camp Efficiency in Cloud Management 12 Febrero 2020 Speakers David Simon Principal Cloud Architect, Oracle David Mauri Principal Technology Architect, Oracle Safe harbor statement The following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. The development, release, timing, and pricing of any features or functionality described for Oracle’s products may change and remains at the sole discretion of Oracle Corporation. 2 Copyright © 2021, Oracle and/or its affiliates Oracle Cloud in 8 Steps | Agenda 4 th Feb Immersion in the 2nd Generation Cloud Borja Gómez, Jesús Brasero 5 th Feb High-reliability architectures for mission-critical applications Alejandro de Fuenmayor, Raúl de Diego 11th Feb Forecasting, optimization and cost management in the Cloud José Criado, Sergio Álvarez 12th Feb Efficiency in Cloud management David Simón, David Mauri 18th Feb How to protect critical data in the Cloud David Núñez, Juan Carlos Diaz 19th Feb AI & Machine Learning: Migrating your data to the Cloud Andrés Araujo, Serena Pérez th 24 Feb How to migrate enterprise applications to the Cloud Scan to see all events Mariano Jimenez, Guillermo Best 26th Feb Cloud-Native development with Oracle Cloud Iván Sampedro, Victor Mendo 3 Copyright © 2021, Oracle and/or its affiliates Format Day of the event 1. Topic Presentation 2. Demo 3. Live Q&A Chat Post event | During the week 4. Hands-on @home 5.
    [Show full text]
  • Graalvm Advisory Board | November 2020
    GraalVM Advisory Board | November 2020 • Project updates & upcoming release (Alina Yurenko) • GraalVM Developer survey (Alina Yurenko) o The survey is available here, please share; • Security Group update (Roxana Bradescu) o the mailing list has been set up; • Red Hat Feedback o Foivos, Red Hat: “I would personally like you to bring up how happy I (or "we" if others feel the same) am with all the help they have been providing in various issues and PRs I have opened recently. I personally feel they often go out of their way (by not just reviewing but also suggesting solutions and alternatives) to help.” o Stuck issues (Max, Red Hat) 175 days since last update: https://github.com/oracle/graal/pull/2067 - C2 style range check smearing Thomas: has been updated; the best is to ping the person working on it; o Still seeing things go into master with zero context, for example https://github.com/oracle/graal/commit/2d5eee0 Can GraalVM team give status on Public PR workflow ? we will check; o Improve trackability of issues/work related to past versions https://oss.oracle.com/pipermail/graalvm-dev/2020- November/000093.html we discussed it internally and will follow up; o Project roadmap items ? https://github.com/oracle/graal/projects is more worklists; any way to tag or target epics/roadmap style items ? highlevel wiki doc ? to-do: share the list of more high-level that we prepared for native image; Added: https://github.com/oracle/graal/issues/2762 o Arch64 - on github action move get access to an AArch64 GH runner in the graalvm-org team (this
    [Show full text]
  • Code Coagulation Is an Effective Compilation Technique
    CODE COAGULATION IS AN EFFECTIVE COMPILATION TECHNIQUE FOR THE JVM by Shruthi Padmanabhan Bachelor of Engineering in Information Science, Visvesvaraya Technological University, 2009 A thesis presented to Ryerson University in partial fulfillment of the requirements for the degree of Master of Science in the program of Computer Science Toronto, Ontario, Canada, 2018 c Shruthi Padmanabhan, 2018 Author's Declaration I hereby declare that I am the sole author of this thesis. This is a true copy of the thesis, including any required final revisions, as accepted by my examiners. I authorize Ryerson University to lend this thesis to other institutions or individuals for the purpose of scholarly research. I further authorize Ryerson University to reproduce this thesis by photocopying or by other means, in total or in part, at the request of other institutions or individuals for the purpose of scholarly research. I understand that my thesis may be made electronically available to the public for the purpose of scholarly research only. ii Abstract CODE COAGULATION IS AN EFFECTIVE COMPILATION TECHNIQUE FOR THE JVM Shruthi Padmanabhan Master of Science, Computer Science Ryerson University, 2018 Compilers are the interface between programmers and computers. The output of a com- piler determines the speed of the resulting program as well as its energy footprint { of increasing importance in this world of climate change and battery-dependent computing. Code coagulation has the potential to improve that performance, particularly relative to (JIT) interpreters. Java and related languages are in wide use, so addressing their per- formance has large potential impact. Optijava is an experimental compiler that applies code coagulation to Java programs.
    [Show full text]