当前位置:网站首页>GVM use
GVM use
2022-07-04 20:47:00 【The great man ate a Kun on the day he was alive】
1.GVM What is it
GraalVM Is a high-performance runtime , Significantly improve application performance and efficiency , Great for microservices . It is designed to Java,JavaScript, be based on LLVM Language ( for example C and C ++) And other applications written in dynamic languages . It eliminates the isolation between programming languages , The interoperability of shared runtime is realized .
Refer to official documentation https://www.graalvm.org/docs/introduction/
GraalVM It can run independently , It can also be used as OpenJDK or Node.js Part of the platform is embedded , Even in Oracle Execute... In the database .
Use GraalVM Can be Java The machine code directly compiled into binary is applied to generate a Native Image, Let this program run like a general binary file ,Native Image You can start a faster Java application , Native Image Quick start feature , It can achieve the purpose of server free computing .
2. What's the advantage
GraalVM It can run independently , It can also be used as OpenJDK or Node.js Part of the platform is embedded , Even in Oracle Execute... In the database . It's hanging anyway .
Use GraalVM Can be Java The machine code directly compiled into binary is applied to generate a Native Image, Let this program run like a general binary file ,Native Image You can start a faster Java application , Native Image Quick start feature , It can achieve the purpose of server free computing .
You can also reuse data from Java、R or Python The library of , It doesn't have to be used in jython,j++, That kind of Library .
And it can be based on jvm Create a native image for your application . The image generation process uses static analysis to find slave images Java Method can access any code , Then execute completely in advance (AOT) compile . The generated native binary file contains the whole program in the form of machine code , For immediate execution . It can be linked to other local programs , You can also choose to include GraalVM compiler , To provide real-time monitoring (JIT) Supplementary support for compilation , To run any based on graalvm High performance language for . For additional performance , The native image can be built by optimizing the configuration file collected in the previous run of the application
3. Use
gu --version
gu install native-image
gu list Check for success :
./helloworld perform
jar --create --verbose --file HelloWorld.jar --main-class HelloWorld *.class
time java -jar HelloWorld.jar
time ./helloworld
边栏推荐
- Is it safe for Great Wall Securities to open an account? Stock account opening process online account opening
- Lingyun going to sea | Wenhua online & Huawei cloud: creating a new solution for smart teaching in Africa
- Win11亮度被锁定怎么办?Win11亮度被锁定的解决方法
- 九齐单片机NY8B062D单按键控制4种LED状态
- go语言笔记(4)go常用管理命令
- 实操自动生成接口自动化测试用例
- Function analysis and source code of hash guessing game system development
- Related concepts of federal learning and motivation (1)
- SSRS筛选器的IN运算(即包含于)用法
- Idea case shortcut
猜你喜欢
剑指 Offer II 80-100(持续更新)
Common verification rules of form components -1 (continuously updating ~)
Idea restore default shortcut key
同事的接口文档我每次看着就头大,毛病多多。。。
Win11系统wifi总掉线怎么办?Win11系统wifi总掉线的解决方法
Managed service network: application architecture evolution in the cloud native Era
【深度学习】一文看尽Pytorch之十九种损失函数
Win11无法将值写入注册表项如何解决?
【ISMB2022教程】图表示学习的精准医疗,哈佛大学Marinka Zitnik主讲,附87页ppt
ICML 2022 | Meta提出鲁棒的多目标贝叶斯优化方法,有效应对输入噪声
随机推荐
易周金融 | Q1保险行业活跃人数8688.67万人 19家支付机构牌照被注销
工厂从自动化到数字孪生,图扑能干什么?
太方便了,钉钉上就可完成代码发布审批啦!
Installation and use of VMware Tools and open VM tools: solve the problems of incomplete screen and unable to transfer files of virtual machines
LeetCode 8. 字符串转换整数 (atoi)
mysql语句执行详解
实践示例理解js强缓存协商缓存
NLP, vision, chip What is the development direction of AI? Release of the outlook report of Qingyuan Association [download attached]
MySQL statement execution details
【ISMB2022教程】图表示学习的精准医疗,哈佛大学Marinka Zitnik主讲,附87页ppt
Win11亮度被锁定怎么办?Win11亮度被锁定的解决方法
Lingyun going to sea | Murong Technology & Huawei cloud: creating a model of financial SaaS solutions in Africa
Managed service network: application architecture evolution in the cloud native Era
What if the computer page cannot be full screen? The solution of win11 page cannot be full screen
What is involution?
FS4061A升压8.4V充电IC芯片和FS4061B升压12.6V充电IC芯片规格书datasheet
C # better operation mongodb database
[ismb2022 tutorial] the picture shows the precision medicine of learning. Marinka zitnik, Harvard University, keynote speaker, with 87 ppt
What if win11u disk refuses access? An effective solution to win11u disk access denial
NLP、视觉、芯片...AI重点方向发展几何?青源会展望报告发布[附下载]