]> source.dussan.org Git - sonarqube.git/commitdiff
Testing IPv4 for sonar-server
authorStephane Gamard <stephane.gamard@sonarsource.com>
Fri, 29 Aug 2014 07:09:52 +0000 (09:09 +0200)
committerStephane Gamard <stephane.gamard@sonarsource.com>
Fri, 29 Aug 2014 07:10:16 +0000 (09:10 +0200)
sonar-application/src/main/java/org/sonar/application/DefaultSettings.java

index 0a85182cc21efe1ad517b6aebef338f48024cf82..b18d0b633b2fa45cc6c1e41713d58caa1266d8b7 100644 (file)
@@ -73,7 +73,7 @@ class DefaultSettings {
       "-XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly " +
       "-XX:+HeapDumpOnOutOfMemoryError -Djava.awt.headless=true");
     defaults.put(CLUSTER_NODE_NAME, "sonar-" + System.currentTimeMillis());
-    defaults.put(WEB_JAVA_OPTS, "-Xmx768m -XX:MaxPermSize=160m -XX:+HeapDumpOnOutOfMemoryError " +
+    defaults.put(WEB_JAVA_OPTS, "-Xmx768m -XX:MaxPermSize=160m -XX:+HeapDumpOnOutOfMemoryError -Djava.net.preferIPv4Stack=true " +
       "-Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djruby.management.enabled=false");
     defaults.put(JDBC_URL, "jdbc:h2:tcp://localhost:9092/sonar");
     defaults.put(JDBC_LOGIN, "sonar");