From 9e2c8f668402fef3db260e1fe5cc08411f677635 Mon Sep 17 00:00:00 2001 From: Michael Schnell Date: Mon, 23 Dec 2019 15:10:52 +0100 Subject: [PATCH] Added memory hint for native --- quarkus/README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/quarkus/README.md b/quarkus/README.md index 58b50ce..d18e266 100644 --- a/quarkus/README.md +++ b/quarkus/README.md @@ -21,6 +21,7 @@ Then execute the following steps: source source ~/.profile $GRAALVM_HOME/bin/gu install native-image ``` +4. OPTIONAL: Change memory of virtual machine to 8 GB (instead of 4 GB default) if you want to create a native image with GraalVM ## Getting started 1. Open a console (Ubuntu shortcut = ) @@ -50,13 +51,14 @@ Then execute the following steps: ``` ## Build and run the query microservice in native mode -1. Open a console (Ubuntu shortcut = ) -2. Build the native executable +1. Make sure you have enough memory (~6-8 GB) on your PC or VM +2. Open a console (Ubuntu shortcut = ) +3. Build the native executable ``` cd query ./mvnw verify -Pnative ``` -3. Run the microservice +4. Run the microservice ``` ./target/cqrs4j-quarkus-example-query-1.0-SNAPSHOT-runner -Djava.library.path=$GRAALVM_HOME/jre/lib/amd64 -Djavax.net.ssl.trustStore=$GRAALVM_HOME/jre/lib/security/cacerts ```