You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/enterprise-overview/overview.md
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -5,29 +5,29 @@ permalink: /overview/
5
5
6
6
# Oracle GraalVM
7
7
8
-
Oracle GraalVM compiles your Java applications ahead of time into standalone binaries.
9
-
These binaries are smaller, start up to 100x faster, provide peak performance with no warmup, and use less memory and CPU than applications running on a Java Virtual Machine (JVM).
8
+
Oracle GraalVM compiles your Java application ahead of time into a native binary.
9
+
The binary is smaller, starts up to 100x faster, provides peak performance with no warmup, and uses less memory and CPU than an application running on a Java Virtual Machine (JVM).
10
10
11
11
GraalVM reduces the attack surface of your application.
12
-
It excludes unused classes, methods and fields from the application binary.
12
+
It excludes unused classes, methods and fields from the native binary.
13
13
It restricts reflection and other dynamic Java language features to build time only.
14
-
It does not load any unknown code at run time.
14
+
It does not load any unknown code at runtime.
15
15
16
16
Popular microservices frameworks such as Spring Boot, Micronaut, Helidon, and Quarkus, and cloud platforms such as Oracle Cloud Infrastructure, Amazon Web Services, Google Cloud Platform, and Microsoft Azure all support GraalVM.
17
17
18
-
With profile-guided optimization and the G1 (Garbage-First) garbage collector, you can get lower latency and on-par or better peak performance and throughput compared to applications running on a Java Virtual Machine (JVM).
18
+
With profile-guided optimization and the G1 (Garbage-First) garbage collector, you can get lower latency and on-par or better peak performance and throughput compared to an application running on a Java Virtual Machine (JVM).
19
19
20
20
You can use the GraalVM JDK just like any other Java Development Kit in your IDE.
21
21
22
22
## Key Benefits
23
23
24
24
Oracle GraalVM's key benefits are:
25
25
26
-
***Low Resource Usage**: Java applications compiled ahead-of-time by GraalVM require less memory and CPU to run. No memory and CPU cycles are spent on just-in-time compilation. As a result, your applications need fewer resources to run and are cheaper to operate at scale.
27
-
***Fast Startup**: With GraalVM, you can start your Java applications faster by initializing parts of the application at build time instead of run time, and instantly achieve predictable peak performance with no warmup.
28
-
***Compact Packaging**: Java applications compiled ahead-of-time by GraalVM are small and can be easily packaged into lightweight container images for fast and efficient deployment.
29
-
***Improved Security**: GraalVM reduces the attack surface of your Java application by excluding the following from the binary: unreachable code (unused classes, methods, and fields), the just-in-time compilation infrastructure, and build-time initialized code. GraalVM's closed world assumption prevents your application from loading unknown code by disabling dynamic features such as reflection, serialization, and so on at run time, and requires an explicit include list of such classes, methods, and fields at build time. GraalVM can embed a software bill of materials (SBOM) in your binary making it easier for you to use common security scanners to check your Java application binaries for published CVEs (Common Vulnerabilities and Exposures).
30
-
***Easily Build Cloud Native Microservices**: Popular microservices frameworks such as Spring Boot, Micronaut, Helidon, and Quarkus, and cloud platforms such as Oracle Cloud Infrastructure (OCI), Amazon Web Services (AWS), Google Cloud Platform (GCP), and Microsoft Azure all support GraalVM. This makes it easy for you to build cloud native Java microservices, compiled as binaries, packaged in small containers, and run on cloud platforms - OCI, AWS, GCP and Azure.
26
+
***Low Resource Usage**: A Java application compiled ahead-of-time by GraalVM requires less memory and CPU to run. No memory and CPU cycles are spent on just-in-time compilation. As a result, your application need fewer resources to run and is cheaper to operate at scale.
27
+
***Fast Startup**: With GraalVM, you can start your Java application faster by initializing parts of the application at build time instead of run time, and instantly achieve predictable peak performance with no warmup.
28
+
***Compact Packaging**: A Java application compiled ahead-of-time by GraalVM is small and can be easily packaged into a lightweight container image for fast and efficient deployment.
29
+
***Improved Security**: GraalVM reduces the attack surface of your Java application by excluding the following from the binary: unreachable code (unused classes, methods, and fields), the just-in-time compilation infrastructure, and build-time initialized code. GraalVM's closed world assumption prevents your application from loading unknown code by disabling dynamic features such as reflection, serialization, and so on at runtime, and requires an explicit include list of such classes, methods, and fields at build time. GraalVM can embed a software bill of materials (SBOM) in your binary making it easier for you to use common security scanners to check your Java application binaries for published Common Vulnerabilities and Exposures (CVEs).
30
+
***Easily Build Cloud Native Microservices**: Popular microservices frameworks such as Micronaut, Spring Boot, Helidon, and Quarkus, and cloud platforms such as Oracle Cloud Infrastructure (OCI), Amazon Web Services (AWS), Google Cloud Platform (GCP), and Microsoft Azure all support GraalVM. This makes it easy for you to build cloud native Java microservices, compiled as binaries, packaged in small containers, and run on cloud platforms - OCI, AWS, GCP and Azure.
31
31
***Extend your Java Application with Python and Other Languages**: With GraalVM you can embed languages such as Python, JavaScript, and others to extend your Java application.
32
32
***Use Existing Development and Monitoring Tools**: Your existing Java application development and monitoring tools work with GraalVM application binaries. GraalVM provides build plugins for Maven and Gradle, and GitHub Actions for CI/CD. GraalVM supports Java Flight Recorder (JFR), Java Management Extensions (JMX), heap dumps, VisualVM, and other monitoring tools. GraalVM works with existing Java editors/IDEs, and unit test frameworks such as JUnit.
Copy file name to clipboardExpand all lines: docs/getting-started/graalvm-enterprise/container-images/graalvm-ee-container-images.md
+14-14Lines changed: 14 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -15,26 +15,26 @@ Oracle GraalVM container images are published in two OCR repositories: **jdk** a
15
15
16
16
| Repository | Description |
17
17
|------------------|-------------|
18
-
|**jdk**| Provides container images with Oracle GraalVM JDK (without the `native-image` utility) which can be used to both compile and deploy Java applications. Image tags let you select the Java version and Oracle Linux version. |
19
-
|**native-image**| Provides Oracle GraalVM container images with the `native-image` utility along with all tools required to compile applications into native Linux executables. These images are commonly used in multi-stage builds to compile applications into executables that are then packaged in a lightweight container image. Image tags let you select the Java version and Oracle Linux version as well as variants that include the musl toolchain for the creation of fully statically linked executables. |
18
+
|**jdk**| Provides container images with Oracle GraalVM JDK (without the `native-image` utility) which can be used to both compile and deploy Java applications. Use the container image tags to select the appropriate Java version and Oracle Linux version. |
19
+
|**native-image**| Provides Oracle GraalVM container images with the `native-image` utility along with all tools required to compile applications into native Linux executables. These images are commonly used in multistage builds to compile applications into executables that are then packaged in a lightweight container image. Use the container image tags to select the Java version and Oracle Linux version as well as variants that include the musl toolchain for the creation of fully statically linked executables. |
20
20
21
21
Both repositories provide container images for AMD64 and AArch64 processor architectures, with a choice of Oracle Linux versions 7, 8, or 9.
22
22
23
-
Oracle GraalVM is installed in `/usr/lib64/graalvm/graalvm-java<$FeatureVersion>` where `<$FeatureVersion>` is `17`, `21`, `22`, etc.
24
-
For instance, Oracle GraalVM for JDK 22 is installed in `/usr/lib64/graalvm/graalvm-java22`.
23
+
Oracle GraalVM is installed in _/usr/lib64/graalvm/graalvm-java<$FeatureVersion>_ where `<$FeatureVersion>` is `17`, `21`, `22`, and so on.
24
+
For example, Oracle GraalVM for JDK 22 is installed in _/usr/lib64/graalvm/graalvm-java22_.
25
25
All binaries, including `java`, `javac`, `native-image`, and other binaries are available as global commands via the `alternatives` command.
26
26
27
27
## Tags
28
28
29
29
Each repository provides multiple tags that let you choose the level of stability you need including the Java version, build number, and the Oracle Linux version.
30
-
Oracle GraalVM image tags use the following naming convention:
30
+
Oracle GraalVM container image tags use the following naming convention:
The following tags are listed from the most-specific tag (at the top) to the least-specific tag (at the bottom).
37
-
The most-specific tag is unique and always points to the same image, while the less-specific tags point to newer image variants over time.
37
+
The most-specific tag is unique and always points to the same container image, while the less-specific tags point to newer container image variants over time.
38
38
39
39
```
40
40
17.0.8-ol9-20230904
@@ -46,7 +46,7 @@ The most-specific tag is unique and always points to the same image, while the l
46
46
47
47
## Pulling Images
48
48
49
-
1. To pull the container image for Oracle GraalVM JDK for a specific JDK feature version, e.g.,_22_, run:
49
+
1. To pull the container image for Oracle GraalVM JDK for a specific JDK feature version, such as_22_, run:
@@ -76,44 +76,44 @@ The most-specific tag is unique and always points to the same image, while the l
76
76
FROM container-registry.oracle.com/graalvm/native-image:22-muslib
77
77
```
78
78
79
-
3. To verify, start the container and enter the Bash session:
79
+
3. To verify, start the container and enter a `bash` session:
80
80
81
81
```bash
82
82
docker run -it --rm --entrypoint /bin/bash container-registry.oracle.com/graalvm/native-image:22
83
83
```
84
84
85
-
To check the version of Oracle GraalVM and its installed location, run the `env`command from the Bash prompt:
85
+
To check the version of Oracle GraalVM and its installed location, run the `env`command from the `bash` prompt:
86
86
87
87
```bash
88
88
env
89
89
```
90
90
91
91
The output shows the environment variable `JAVA_HOME` pointing to the installed Oracle GraalVM version and location.
92
92
93
-
To check the Java version, run the following command from the Bash prompt:
93
+
To check the Java version, run the following command from the `bash` prompt:
94
94
95
95
```bash
96
96
java -version
97
97
```
98
98
99
99
The output shows the installed Oracle GraalVM Java runtime environment and version information.
100
100
101
-
To check the `native-image` version, run the following command from the Bash prompt:
101
+
To check the `native-image` version, run the following command from the `bash` prompt:
102
102
103
103
```bash
104
104
native-image --version
105
105
```
106
106
107
107
The output shows the installed Oracle GraalVM `native-image` utility version information.
108
108
109
-
4. Calling`docker pull`without specifying a processor architecture pulls container images for the processor architecture that matches your Docker client.
109
+
4. A`docker pull`command that omits a processor architecture pulls container images for the processor architecture that matches your Docker client.
110
110
To pull container images for a different platform architecture, specify the desired platform architecture with the `--platform` option and either `linux/amd64` or `linux/aarch64` as follows:
- [GraalVM Native Image, Spring and Containerisation](https://luna.oracle.com/lab/fdfd090d-e52c-4481-a8de-dccecdca7d68): Learn how GraalVM Native Image can generate native executables ideal for containerization.
119
119
- [Announcement Blog: New Oracle GraalVM Container Images](https://blogs.oracle.com/java/post/new-oracle-graalvm-container-images)
Copy file name to clipboardExpand all lines: docs/getting-started/graalvm-enterprise/get-started-graalvm-enterprise.md
+11-11Lines changed: 11 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -5,23 +5,23 @@ permalink: /getting-started/
5
5
6
6
# Getting Started with Oracle GraalVM
7
7
8
-
Oracle GraalVM compiles your Java applications ahead of time into standalone binaries that start instantly, provide peak performance with no warmup, and use fewer resources.
8
+
Oracle GraalVM compiles your Java application ahead of time into a native binary that starts instantly, provides peak performance with no warmup, and uses fewer resources.
9
9
10
-
Here you will find information about installing Oracle GraalVM and running basic applications with it.
10
+
Here you can find information about how to install Oracle GraalVM and run basic applications with it.
11
11
12
12
If you are new to Oracle GraalVM, we recommend starting with the [GraalVM Overview](../../introduction.md), where you will find information about GraalVM's benefits, distributions available, supported platforms, features support, and licensing.
13
13
14
14
If you have Oracle GraalVM already installed and have experience using it, you can skip this page and proceed to the in-depth [reference manuals](../../reference-manual/reference-manuals.md).
15
15
## How Can I Get Oracle GraalVM?
16
16
17
17
You can get Oracle GraalVM by:
18
-
- downloading from [Oracle Java Downloads](https://www.oracle.com/uk/java/technologies/downloads/).
18
+
- downloading it from [Oracle Java Downloads](https://www.oracle.com/uk/java/technologies/downloads/).
19
19
- subscribing to [Oracle Java SE Subscription and Oracle Java SE Desktop Subscription](https://www.oracle.com/uk/java/java-se-subscription/). The subscription includes entitlement to Oracle GraalVM.
20
-
- subscribing to [Oracle Cloud](https://www.oracle.com/cloud). Oracle GraalVM is free to use, including support, for Oracle Cloud subscribers.
20
+
- subscribing to [Oracle Cloud Infrastructure](https://www.oracle.com/cloud). Oracle GraalVM is free to use, including support, for Oracle Cloud Infrastructure subscribers.
21
21
22
-
Choose your operating system and proceed to the installation steps for your specific platform:
22
+
Installation steps for your specific platform:
23
23
24
-
* Oracle Cloud (OCI)
24
+
* Oracle Cloud Infrastructure (OCI)
25
25
*[Code Editor](oci/code-editor.md)
26
26
*[Cloud Shell](oci/cloud-shell.md)
27
27
*[Compute with Oracle Linux 7/8](oci/installation-compute-instance-with-OL.md)
@@ -44,7 +44,7 @@ $JAVA_HOME/bin/java -version
44
44
45
45
Using [GraalVM Native Image](../../reference-manual/native-image/README.md) you can compile Java bytecode into a platform-specific, self-contained native executable to achieve faster startup and a smaller footprint for your application.
46
46
47
-
Compile this simplest _HelloWorld.java_ application to bytecode and then build a native executable:
47
+
Compile this _HelloWorld.java_ application to bytecode and then build a native executable:
48
48
```java
49
49
publicclassHelloWorld {
50
50
publicstaticvoidmain(String[] args) {
@@ -61,7 +61,7 @@ native-image HelloWorld
61
61
```
62
62
63
63
The last command generates an executable file named _helloworld_ in the current working directory.
64
-
Invoking it runs the nativelycompiled code of the `HelloWorld` class as follows:
64
+
Invoking it runs the natively-compiled code of the `HelloWorld` class as follows:
65
65
```shell
66
66
./helloworld
67
67
Hello, World!
@@ -73,15 +73,15 @@ Hello, World!
73
73
74
74
### New Users
75
75
76
-
Continue to [Native Image basics](../../reference-manual/native-image/NativeImageBasics.md) to gradually educate yourself about the technology.
76
+
Continue to [Native Image basics](../../reference-manual/native-image/NativeImageBasics.md) to educate yourself about the technology.
77
77
For users who are familiar with GraalVM Native Image but may have little experience using it, proceed to [User Guides](../../reference-manual/native-image/guides/guides.md).
78
78
79
79
For more information on the Graal compiler, see the [compiler documentation](../../reference-manual/java/compiler.md).
80
80
Larger Java examples can be found in the [GraalVM Demos repository on GitHub](https://github.com/graalvm/graalvm-demos).
81
81
82
-
### Oracle Cloud Users
82
+
### Oracle Cloud Infrastructure Users
83
83
84
-
Oracle Cloud users considering Oracle GraalVM for their cloud workloads are invited to read [Oracle GraalVM on OCI](oci/installation-compute-instance-with-OL.md).
84
+
Oracle Cloud Infrastructure users who are considering Oracle GraalVM for their cloud workloads are invited to read [Oracle GraalVM on OCI](oci/installation-compute-instance-with-OL.md).
85
85
This page focuses on using Oracle GraalVM with an Oracle Cloud Infrastructure Compute instance.
0 commit comments