mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 01:41:11 +01:00
Limits system ram to 4GB
OpenJDK assumes total system RAM of 128GB. Setting it to 4GB manually reduces the greediness of the JVM drastically.
This commit is contained in:
parent
dbecc0a2f1
commit
dc7a904a7f
@ -133,6 +133,10 @@ configure([project(':cli'),
|
||||
unixScriptFile.text = unixScriptFile.text.replace(
|
||||
'cd "`dirname \\"$PRG\\"`/.." >/dev/null', 'cd "`dirname \\"$PRG\\"`" >/dev/null')
|
||||
|
||||
def script = file("${rootProject.projectDir}/bisq-$applicationName")
|
||||
script.text = script.text.replace(
|
||||
'DEFAULT_JVM_OPTS=""', 'DEFAULT_JVM_OPTS="-XX:MaxRAM=4GB"')
|
||||
|
||||
if (osdetector.os != 'windows')
|
||||
delete fileTree(dir: rootProject.projectDir, include: 'bisq-*.bat')
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user