aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-application/src/main/assembly
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2014-04-07 21:55:02 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2014-04-07 21:55:02 +0200
commitf81ab61172351b41038c5fa2f4ab39bdda0ba56b (patch)
tree422dc9be9ca1ddf56409ba484eceaf921146d5bd /sonar-application/src/main/assembly
parenta1a322d1087ed96377327df8f7a2e144451658c6 (diff)
downloadsonarqube-f81ab61172351b41038c5fa2f4ab39bdda0ba56b.tar.gz
sonarqube-f81ab61172351b41038c5fa2f4ab39bdda0ba56b.zip
SONAR-5204 allow server to use more than 4Gb RAM
Diffstat (limited to 'sonar-application/src/main/assembly')
-rw-r--r--sonar-application/src/main/assembly/conf/wrapper.conf27
1 files changed, 14 insertions, 13 deletions
diff --git a/sonar-application/src/main/assembly/conf/wrapper.conf b/sonar-application/src/main/assembly/conf/wrapper.conf
index ca94c242a3d..dbced5fbb7f 100644
--- a/sonar-application/src/main/assembly/conf/wrapper.conf
+++ b/sonar-application/src/main/assembly/conf/wrapper.conf
@@ -4,16 +4,12 @@ wrapper.java.additional.2=-XX:MaxPermSize=160m
wrapper.java.additional.3=-XX:+HeapDumpOnOutOfMemoryError
wrapper.java.additional.4=-Dfile.encoding=UTF-8
wrapper.java.additional.5=-Djruby.management.enabled=false
+wrapper.java.additional.6=-Xms256M
+wrapper.java.additional.7=-Xmx512M
# RECOMMENDED : uncomment if Java Virtual Machine is a JDK but not a JRE. To know which JVM you use, execute
# 'java -version'. JDK displays 'Server VM'.
-#wrapper.java.additional.6=-server
-
-# Initial Java Heap Size (in MB)
-wrapper.java.initmemory=256
-
-# Maximum Java Heap Size (in MB)
-wrapper.java.maxmemory=512
+#wrapper.java.additional.8=-server
#********************************************************************
# Wrapper Java Properties
@@ -45,18 +41,23 @@ wrapper.java.library.path.1=./lib
# Application parameters. Add parameters as needed starting from 1
wrapper.app.parameter.1=org.sonar.application.StartServer
+# Do not touch the 2 following properties. Memory settings are set
+# with -Xmx and -Xms (see above)
+wrapper.java.initmemory=0
+wrapper.java.maxmemory=9
+
#********************************************************************
# Profiling and debbuging - for development only
-# If wrapper.java.additional.6=-server is not commented, parameter ids should start from 7 instead of 6.
+# If wrapper.java.additional.7=-server is not commented, parameter ids should start from 8 instead of 7.
#********************************************************************
# Java remote debugging
-#wrapper.java.additional.6=-agentlib:jdwp=transport=dt_socket,server=y,address=8000
+#wrapper.java.additional.7=-agentlib:jdwp=transport=dt_socket,server=y,address=8000
# JMX remote monitoring on Sun JVM (warning, security is disabled)
-#wrapper.java.additional.6=-Dcom.sun.management.jmxremote
-#wrapper.java.additional.7=-Dcom.sun.management.jmxremote.port=9005
-#wrapper.java.additional.8=-Dcom.sun.management.jmxremote.authenticate=false
-#wrapper.java.additional.9=-Dcom.sun.management.jmxremote.ssl=false
+#wrapper.java.additional.7=-Dcom.sun.management.jmxremote
+#wrapper.java.additional.8=-Dcom.sun.management.jmxremote.port=9005
+#wrapper.java.additional.9=-Dcom.sun.management.jmxremote.authenticate=false
+#wrapper.java.additional.10=-Dcom.sun.management.jmxremote.ssl=false
#********************************************************************
# Wrapper Logging Properties