mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 15:10:44 +01:00
Merge pull request #5629 from ripcurlx/update-java-properties
Update Java options as described in #5609 and #5550
This commit is contained in:
commit
3de88e823f
3 changed files with 10 additions and 4 deletions
|
@ -66,7 +66,7 @@ public enum BisqAppConfig {
|
||||||
49998),
|
49998),
|
||||||
alicedesktop("bisq-BTC_REGTEST_Alice_dao",
|
alicedesktop("bisq-BTC_REGTEST_Alice_dao",
|
||||||
"bisq-desktop",
|
"bisq-desktop",
|
||||||
"-XX:MaxRAM=4g -Dlogback.configurationFile=apitest/build/resources/main/logback.xml",
|
"-XX:MaxRAM=8g -Dlogback.configurationFile=apitest/build/resources/main/logback.xml",
|
||||||
BisqAppMain.class.getName(),
|
BisqAppMain.class.getName(),
|
||||||
7777,
|
7777,
|
||||||
5122,
|
5122,
|
||||||
|
@ -82,7 +82,7 @@ public enum BisqAppConfig {
|
||||||
49999),
|
49999),
|
||||||
bobdesktop("bisq-BTC_REGTEST_Bob_dao",
|
bobdesktop("bisq-BTC_REGTEST_Bob_dao",
|
||||||
"bisq-desktop",
|
"bisq-desktop",
|
||||||
"-XX:MaxRAM=4g -Dlogback.configurationFile=apitest/build/resources/main/logback.xml",
|
"-XX:MaxRAM=8g -Dlogback.configurationFile=apitest/build/resources/main/logback.xml",
|
||||||
BisqAppMain.class.getName(),
|
BisqAppMain.class.getName(),
|
||||||
8888,
|
8888,
|
||||||
5123,
|
5123,
|
||||||
|
|
|
@ -145,7 +145,9 @@ configure([project(':cli'),
|
||||||
if (applicationName == 'desktop') {
|
if (applicationName == 'desktop') {
|
||||||
def script = file("${rootProject.projectDir}/bisq-$applicationName")
|
def script = file("${rootProject.projectDir}/bisq-$applicationName")
|
||||||
script.text = script.text.replace(
|
script.text = script.text.replace(
|
||||||
'DEFAULT_JVM_OPTS=""', 'DEFAULT_JVM_OPTS="-XX:MaxRAM=4g"')
|
'DEFAULT_JVM_OPTS=""', 'DEFAULT_JVM_OPTS="-XX:MaxRAM=8g -Xss1280k -XX:+UseG1GC ' +
|
||||||
|
'-XX:MaxHeapFreeRatio=10 -XX:MinHeapFreeRatio=5 -XX:+UseStringDeduplication ' +
|
||||||
|
'-Djava.net.preferIPv4Stack=true"')
|
||||||
}
|
}
|
||||||
|
|
||||||
if (applicationName == 'apitest') {
|
if (applicationName == 'apitest') {
|
||||||
|
|
|
@ -231,7 +231,11 @@ task packageInstallers {
|
||||||
" --main-jar ${mainJarName}" +
|
" --main-jar ${mainJarName}" +
|
||||||
" --main-class bisq.desktop.app.BisqAppMain" +
|
" --main-class bisq.desktop.app.BisqAppMain" +
|
||||||
" --java-options -Xss1280k" +
|
" --java-options -Xss1280k" +
|
||||||
" --java-options -XX:MaxRAM=4g" +
|
" --java-options -XX:MaxRAM=8g" +
|
||||||
|
" --java-options -XX:+UseG1GC" +
|
||||||
|
" --java-options -XX:MaxHeapFreeRatio=10" +
|
||||||
|
" --java-options -XX:MinHeapFreeRatio=5" +
|
||||||
|
" --java-options -XX:+UseStringDeduplication" +
|
||||||
" --java-options -Djava.net.preferIPv4Stack=true"
|
" --java-options -Djava.net.preferIPv4Stack=true"
|
||||||
// Warning: this will cause guice reflection exceptions and lead to issues with the guice internal cache
|
// Warning: this will cause guice reflection exceptions and lead to issues with the guice internal cache
|
||||||
// resulting in the UI not loading
|
// resulting in the UI not loading
|
||||||
|
|
Loading…
Add table
Reference in a new issue