diff --git a/build.gradle b/build.gradle index a59533eb727..ee527b2bb93 100644 --- a/build.gradle +++ b/build.gradle @@ -133,6 +133,12 @@ configure([project(':cli'), unixScriptFile.text = unixScriptFile.text.replace( 'cd "`dirname \\"$PRG\\"`/.." >/dev/null', 'cd "`dirname \\"$PRG\\"`" >/dev/null') + if (applicationName == 'desktop') { + def script = file("${rootProject.projectDir}/bisq-$applicationName") + script.text = script.text.replace( + 'DEFAULT_JVM_OPTS=""', 'DEFAULT_JVM_OPTS="-XX:MaxRAM=4g"') + } + if (osdetector.os != 'windows') delete fileTree(dir: rootProject.projectDir, include: 'bisq-*.bat') else diff --git a/desktop/package/linux/package.sh b/desktop/package/linux/package.sh index 0ac88e4dc63..726471614a7 100755 --- a/desktop/package/linux/package.sh +++ b/desktop/package/linux/package.sh @@ -109,6 +109,7 @@ $JAVA_HOME/bin/javapackager \ -srcfiles desktop-$version-all.jar \ -appclass bisq.desktop.app.BisqAppMain \ -BjvmOptions=-Xss1280k \ + -BjvmOptions=-XX:MaxRAM=4g \ -BjvmOptions=-Djava.net.preferIPv4Stack=true \ -outfile Bisq-$version \ -v @@ -135,6 +136,7 @@ $JAVA_HOME/bin/javapackager \ -srcfiles desktop-$version-all.jar \ -appclass bisq.desktop.app.BisqAppMain \ -BjvmOptions=-Xss1280k \ + -BjvmOptions=-XX:MaxRAM=4g \ -BjvmOptions=-Djava.net.preferIPv4Stack=true \ -outfile Bisq-$version \ -v