Skip to content

Commit

Permalink
Update graalvm.md
Browse files Browse the repository at this point in the history
Remove references to deprecated garbage collector G1
  • Loading branch information
mkjsix authored Oct 23, 2024
1 parent 4ecf77b commit 218c6b1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions docs/graalvm.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,6 @@ Build image for local OS
$ ./mvnw clean package -Pnative -DskipTests
```

__Note__: Linux needs to use the `G1` garbage collector. This is obtained by passing the `-Dnative.gc="--gc=G1"` property to maven.

## A docker image to build Linux native images

[SoftInstigate](https://softinstigate.com) maintains the Debian based, docker image [softinstigate/graalvm-maven](https://github.com/SoftInstigate/graalvm-maven-docker) with GraalVM and Maven and `native-image`.
Expand All @@ -178,7 +176,7 @@ $ docker run -it --rm \
-v "$PWD":/opt/app \
-v "$HOME"/.m2:/root/.m2 \
softinstigate/graalvm-maven \
clean package -Pnative -DskipTests -Dnative.gc="--gc=G1"
clean package -Pnative -DskipTests
```

native-image arguments are defined in [this file](https://github.com/SoftInstigate/restheart/blob/master/core/src/main/resources/META-INF/native-image/org.restheart/restheart/native-image.properties).
Expand Down

0 comments on commit 218c6b1

Please sign in to comment.