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: README.md
+26-26Lines changed: 26 additions & 26 deletions
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ You can find demos, along with how-to guides for GraalJS, GraalPy, and GraalWasm
25
25
26
26
Example applications showcasing the capabilities of GraalVM Native Image, including performance optimization and configuration tips.
27
27
28
-
####Build
28
+
### Build
29
29
Demos for building native images, including configurations and setup steps for various use cases.
30
30
31
31
*[hello-world](native-image/hello-world/) - A HelloWorld example showing how to create a native executable from a class file
@@ -37,22 +37,7 @@ Demos for building native images, including configurations and setup steps for v
37
37
*[list-files](native-image/list-files/) - Shows how to create a native executable from the command line, and then apply Profile-Guided Optimization (PGO)
38
38
*[native-build-tools](native-image/native-build-tools/) - Contains two Java projects, and shows how to create native executables from those applications using [Maven](https://graalvm.github.io/native-build-tools/latest/maven-plugin.html) and [Gradle](https://graalvm.github.io/native-build-tools/latest/gradle-plugin.html) plugins for GraalVM Native Image
39
39
40
-
#### Benchmark
41
-
Performance measurement demos for Native Image.
42
-
43
-
*[jmh/binary-tree](native-image/benchmark/jmh/binary-tree/) - Shows how to run a Java Microbenchmark Harness (JMH) benchmark as a native executable
44
-
45
-
#### Clouds
46
-
Demos showcasing the building and deployment of native applications to Oracle Cloud Infrastructure (OCI), AWS, and Google Cloud.
47
-
48
-
*[native-aws-fargate](native-image/clouds/native-aws-fargate/) - Shows how to containerize a native Java application and then deploy it using the Amazon Elastic Container Registry and AWS Fargate
49
-
*[native-aws-lambda](native-image/clouds/native-aws-lambda/) - Demonstrates how to deploy both Java 17 and Native Image applications onto the AWS Lambda platform
50
-
*[native-google-cloud-run](native-image/clouds/native-google-cloud-run/) - Demonstrates how to deploy a native Java application onto the Google Cloud Run platform
51
-
*[native-oci-cloud-shell](native-image/clouds/native-oci-cloud-shell/) - Shows how to get started quickly with Oracle GraalVM and use Native Image in Oracle Cloud Infrastructure (OCI) Cloud Shell
52
-
*[native-oci-container-instances](native-image/clouds/native-oci-container-instances/) - Shows how to containerize a native Java application and then deploy it on OCI using the Container Instance service
53
-
*[native-oci-generative-ai](native-image/clouds/native-oci-generative-ai/) - Demonstrates how to use the OCI Generative AI service provided in a Java application, and then compile it ahead of time with Maven
54
-
55
-
#### Configure
40
+
### Configure
56
41
Demos illustrating how to compile applications with Native Image that use some dynamic Java features including reflection, resource access, and so on.
57
42
58
43
*[access-environment-variables](native-image/access-environment-variables/) - Showing how to access environment variables in a native executable at run time
@@ -62,13 +47,13 @@ Demos illustrating how to compile applications with Native Image that use some d
62
47
*[specify-class-init](native-image/specify-class-init/) - Demonstrates how to influence the default class initialization policy, and initialize a specific class at build time
63
48
*[use-system-properties](native-image/use-system-properties/) - Demonstrates how to use system properties in a native executable at build time versus at run time
64
49
65
-
####Containerize
50
+
### Containerize
66
51
Demos focusing on containerizing native Java applications and following best practices.
67
52
68
53
*[spring-boot-microservice-jibber](native-image/containerize/spring-boot-microservice-jibber/) - Demonstrates how to create a native executable for a Spring Boot web server, containerize it, and run
69
54
*[tiny-java-containers](native-image/containerize/tiny-java-containers/) - Shows how a simple Java application and the `jdk.httpserver` module can be compiled to produce small container images
70
55
71
-
####Monitor
56
+
### Monitor
72
57
Demos showcasing how to monitor native applications using observability and diagnostics tools.
73
58
74
59
*[add-jfr](native-image/add-jfr/) - Shows how to build a native executable with JDK Flight Recorder (JFR) events support
@@ -77,19 +62,34 @@ Demos showcasing how to monitor native applications using observability and diag
77
62
*[create-heap-dump](native-image/create-heap-dumps/) - Shows how to enable heap dump support and describes all possible ways how to create a heap dump from a native executable
78
63
*[embed-sbom](native-image/embed-sbom/) - Demonstrates how to embed an SBOM in a native executable to identify its dependencies
79
64
80
-
#### Microservices
81
-
Demos for building microservices ahead of time using frameworks such as Micronaut and Spring Boot.
82
-
83
-
*[micronaut-hello-rest-gradle](native-image/microservices/micronaut-hello-rest-gradle) - Demonstrates how to build a native executable from a Micronaut application using [Grade plugin for Native Image](https://graalvm.github.io/native-build-tools/latest/gradle-plugin.html)
84
-
*[micronaut-hello-rest-maven](native-image/microservices/micronaut-hello-rest-maven) - Demonstrates how to build a native executable from a Micronaut application using [Maven plugin for Native Image](https://graalvm.github.io/native-build-tools/latest/maven-plugin.html)
85
-
86
-
#### Optimize
65
+
### Optimize
87
66
Demos optimizing native applications for different criteria (runtime and performance tuning, file size, build time, and more).
88
67
89
68
*[emit-build-report](native-image/emit-build-report/) - Shows how to optimize Size of a native executable using Build Reports
90
69
*[optimize-memory](native-image/optimize-memory/) - Shows how to optimize memory footprint of a native executable
91
70
*[optimize-with-pgo](native-image/optimize-with-pgo/) - Shows how to optimize a native executable with Profile-Guided Optimization (PGO) for performance and throughput
92
71
72
+
### Benchmark
73
+
Performance measurement demos for Native Image.
74
+
75
+
*[jmh/binary-tree](native-image/benchmark/jmh/binary-tree/) - Shows how to run a Java Microbenchmark Harness (JMH) benchmark as a native executable
76
+
77
+
### Clouds
78
+
Demos showcasing the building and deployment of native applications to Oracle Cloud Infrastructure (OCI), AWS, and Google Cloud.
79
+
80
+
*[native-aws-fargate](native-image/clouds/native-aws-fargate/) - Shows how to containerize a native Java application and then deploy it using the Amazon Elastic Container Registry and AWS Fargate
81
+
*[native-aws-lambda](native-image/clouds/native-aws-lambda/) - Demonstrates how to deploy both Java 17 and Native Image applications onto the AWS Lambda platform
82
+
*[native-google-cloud-run](native-image/clouds/native-google-cloud-run/) - Demonstrates how to deploy a native Java application onto the Google Cloud Run platform
83
+
*[native-oci-cloud-shell](native-image/clouds/native-oci-cloud-shell/) - Shows how to get started quickly with Oracle GraalVM and use Native Image in Oracle Cloud Infrastructure (OCI) Cloud Shell
84
+
*[native-oci-container-instances](native-image/clouds/native-oci-container-instances/) - Shows how to containerize a native Java application and then deploy it on OCI using the Container Instance service
85
+
*[native-oci-generative-ai](native-image/clouds/native-oci-generative-ai/) - Demonstrates how to use the OCI Generative AI service provided in a Java application, and then compile it ahead of time with Maven
86
+
87
+
### Microservices
88
+
Demos for building microservices ahead of time using frameworks such as Micronaut and Spring Boot.
89
+
90
+
*[micronaut-hello-rest-gradle](native-image/microservices/micronaut-hello-rest-gradle) - Demonstrates how to build a native executable from a Micronaut application using [Grade plugin for Native Image](https://graalvm.github.io/native-build-tools/latest/gradle-plugin.html)
91
+
*[micronaut-hello-rest-maven](native-image/microservices/micronaut-hello-rest-maven) - Demonstrates how to build a native executable from a Micronaut application using [Maven plugin for Native Image](https://graalvm.github.io/native-build-tools/latest/maven-plugin.html)
92
+
93
93
## Compiler Demos
94
94
95
95
Demos designed to test and showcase the capabilities of the Graal Just-In-Time (JIT) compiler.
0 commit comments