From 6648ab04f7d30913ffb6b0b1f7b3d03444cf4592 Mon Sep 17 00:00:00 2001 From: Christoph Atteneder Date: Mon, 19 Jul 2021 15:53:46 +0200 Subject: [PATCH] Add new JVM arguments also to build script --- build.gradle | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index ca3ce80fc52..bc2ae8a7ee1 100644 --- a/build.gradle +++ b/build.gradle @@ -145,7 +145,9 @@ configure([project(':cli'), if (applicationName == 'desktop') { def script = file("${rootProject.projectDir}/bisq-$applicationName") script.text = script.text.replace( - 'DEFAULT_JVM_OPTS=""', 'DEFAULT_JVM_OPTS="-XX:MaxRAM=6g"') + 'DEFAULT_JVM_OPTS=""', 'DEFAULT_JVM_OPTS="-XX:MaxRAM=6g -Xss1280k -XX:+UseG1GC ' + + '-XX:MaxHeapFreeRatio=10 -XX:MinHeapFreeRatio=5 -XX:+UseStringDeduplication ' + + '-Djava.net.preferIPv4Stack=true"') } if (applicationName == 'apitest') {