Skip to content

Commit

Permalink
doc(logs): indicate why we see JDK_JAVA_OPTIONS twice in logs
Browse files Browse the repository at this point in the history
  • Loading branch information
educhastenier committed Nov 9, 2023
1 parent 08978b8 commit 813d398
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docker/templates/setenv.sh
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit 813d398

Please sign in to comment.