mirror of
https://github.com/bisq-network/bisq.git
synced 2025-01-18 21:35:03 +01:00
Merge pull request #4048 from freimair/reduce_ram
Limit system ram to 4GB
This commit is contained in:
commit
96934d9107
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user