Merge pull request #6883 from alvasw/fix_seednode_jvm_args

Set seednode JVM arguments
This commit is contained in:
Alejandro García 2023-09-25 19:44:06 +00:00 committed by GitHub
commit 27b7401da8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 1 deletions

View File

@ -26,6 +26,11 @@ class AppStartPlugin @Inject constructor(private val javaToolchainService: JavaT
dependsOn(installDistTask)
javaLauncher.set(getJavaLauncher(project))
if (project.name == "seednode") {
minHeapSize = "4096M"
maxHeapSize = "4096M"
}
classpath = installDistTask.map {
val appLibsDir = File(it.destinationDir, "lib")
val allFiles = appLibsDir.listFiles()

View File

@ -3,7 +3,10 @@ plugins {
id 'bisq.gradle.app_start_plugin.AppStartPlugin'
}
mainClassName = 'bisq.seednode.SeedNodeMain'
application {
mainClass = 'bisq.seednode.SeedNodeMain'
applicationDefaultJvmArgs = ['-XX:+ExitOnOutOfMemoryError']
}
dependencies {
implementation enforcedPlatform(project(':platform'))