diff --git a/build-logic/app-start-plugin/src/main/kotlin/bisq/gradle/app_start_plugin/AppStartPlugin.kt b/build-logic/app-start-plugin/src/main/kotlin/bisq/gradle/app_start_plugin/AppStartPlugin.kt index 16e616a427..8ca55f0abd 100644 --- a/build-logic/app-start-plugin/src/main/kotlin/bisq/gradle/app_start_plugin/AppStartPlugin.kt +++ b/build-logic/app-start-plugin/src/main/kotlin/bisq/gradle/app_start_plugin/AppStartPlugin.kt @@ -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() diff --git a/seednode/build.gradle b/seednode/build.gradle index 02bcbd1eaa..52caf7de0b 100644 --- a/seednode/build.gradle +++ b/seednode/build.gradle @@ -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'))