diff options
author | Michal Duda <michal.duda@sonarsource.com> | 2019-05-16 12:36:17 +0200 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2019-05-21 20:21:07 +0200 |
commit | dfcb1c01a430cf3317d12ff4448fc700b9979d4f (patch) | |
tree | 07a32c098cc59661abf85ff15bdff909e2cfd4b0 /sonar-application/build.gradle | |
parent | 42aa152b7b174ce55796b8b00758d1fe63643cb7 (diff) | |
download | sonarqube-dfcb1c01a430cf3317d12ff4448fc700b9979d4f.tar.gz sonarqube-dfcb1c01a430cf3317d12ff4448fc700b9979d4f.zip |
SONAR-11720 Set different memory defaults for EE+
Diffstat (limited to 'sonar-application/build.gradle')
-rw-r--r-- | sonar-application/build.gradle | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/sonar-application/build.gradle b/sonar-application/build.gradle index a4500fe305d..6ee5c6c5474 100644 --- a/sonar-application/build.gradle +++ b/sonar-application/build.gradle @@ -1,3 +1,5 @@ +import org.apache.tools.ant.filters.ReplaceTokens + sonarqube { properties { property 'sonar.projectName', "${projectTitle} :: Application" @@ -92,6 +94,7 @@ task zip(type: Zip, dependsOn: [configurations.compile]) { into("${archiveDir}/") { from file('src/main/assembly') + exclude 'conf/sonar.properties' exclude 'elasticsearch-patch' // elasticsearch script will be replaced by patched version below exclude 'elasticsearch/bin/elasticsearch' @@ -125,6 +128,20 @@ task zip(type: Zip, dependsOn: [configurations.compile]) { exclude 'elasticsearch/modules/tribe/**' exclude 'elasticsearch/modules/x-pack-*/**' } + + into("${archiveDir}/conf/") { + from file('src/main/assembly/conf/sonar.properties') + filter(ReplaceTokens, tokens: [ + 'searchDefaultHeapSize': '512MB', + 'searchJavaOpts' : '-Xms512m -Xmx512m -XX:+HeapDumpOnOutOfMemoryError', + 'ceDefaultHeapSize' : '512MB', + 'ceJavaOpts' : '-Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError', + 'webDefaultHeapSize' : '512MB', + 'webJavaOpts' : '-Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError' + ]) + } + + into("${archiveDir}/elasticsearch/") { from file('src/main/assembly/elasticsearch-patch') include 'bin/elasticsearch' |