aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-application
diff options
context:
space:
mode:
authorDuarte Meneses <duarte.meneses@sonarsource.com>2021-07-22 11:40:59 -0500
committersonartech <sonartech@sonarsource.com>2021-07-29 20:04:50 +0000
commitc9676adac645c042119fa267bc98179f53f80169 (patch)
tree44982e64dc179b44f649938e65902821119539c3 /sonar-application
parent78a0a38cd36db3d2c38ffd7ccc494bcd9d366ad9 (diff)
downloadsonarqube-c9676adac645c042119fa267bc98179f53f80169.tar.gz
sonarqube-c9676adac645c042119fa267bc98179f53f80169.zip
SONAR-15230 Fix JVM startup args for Hazelcast
Diffstat (limited to 'sonar-application')
-rw-r--r--sonar-application/src/main/assembly/conf/wrapper.conf8
1 files changed, 8 insertions, 0 deletions
diff --git a/sonar-application/src/main/assembly/conf/wrapper.conf b/sonar-application/src/main/assembly/conf/wrapper.conf
index 360026d398d..c403dbd5b0d 100644
--- a/sonar-application/src/main/assembly/conf/wrapper.conf
+++ b/sonar-application/src/main/assembly/conf/wrapper.conf
@@ -14,6 +14,14 @@ wrapper.java.command=java
#********************************************************************
wrapper.java.additional.1=-Dsonar.wrapped=true
wrapper.java.additional.2=-Djava.awt.headless=true
+# extra args needed by hazelcast
+wrapper.java.additional.3=--add-exports=java.base/jdk.internal.ref=ALL-UNNAMED
+wrapper.java.additional.4=--add-opens=java.base/java.lang=ALL-UNNAMED
+wrapper.java.additional.5=--add-opens=java.base/java.nio=ALL-UNNAMED
+wrapper.java.additional.6=--add-opens=java.base/sun.nio.ch=ALL-UNNAMED
+wrapper.java.additional.7=--add-opens=java.management/sun.management=ALL-UNNAMED
+wrapper.java.additional.8=--add-opens=jdk.management/com.sun.management.internal=ALL-UNNAMED
+
wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp
wrapper.java.classpath.1=../../lib/sonar-application-@sqversion@.jar
wrapper.java.classpath.2=../../lib/jsw/wrapper-3.2.3.jar