From 813d398936499cea502209d0a437700a324f8bb4 Mon Sep 17 00:00:00 2001 From: Emmanuel Duchastenier Date: Thu, 9 Nov 2023 13:49:27 +0100 Subject: [PATCH] doc(logs): indicate why we see JDK_JAVA_OPTIONS twice in logs --- docker/templates/setenv.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docker/templates/setenv.sh b/docker/templates/setenv.sh index af6ad7f8c..505e4caf2 100755 --- a/docker/templates/setenv.sh +++ b/docker/templates/setenv.sh @@ -1,6 +1,7 @@ #!/bin/sh -# Add the JAVA 9 specific start-up parameters required by Hazelcast +# Add the JAVA 9 specific start-up parameters required by Hazelcast: +# (JVM logs those options twice, due to this bug: https://github.com/adoptium/adoptium-support/issues/303) JDK_JAVA_OPTIONS="$JDK_JAVA_OPTIONS --add-modules=java.se" JDK_JAVA_OPTIONS="$JDK_JAVA_OPTIONS --add-exports=java.base/jdk.internal.ref=ALL-UNNAMED" JDK_JAVA_OPTIONS="$JDK_JAVA_OPTIONS --add-opens=java.base/java.nio=ALL-UNNAMED"