Skip to content

Commit

Permalink
Merge pull request #4048 from freimair/reduce_ram
Browse files Browse the repository at this point in the history
Limit system ram to 4GB
  • Loading branch information
ripcurlx authored Mar 12, 2020
2 parents 0501b54 + f127c28 commit 96934d9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions desktop/package/linux/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 96934d9

Please sign in to comment.