From 86156e28ef5fa064af58de9d5685350ee28f59e1 Mon Sep 17 00:00:00 2001 From: vmishenev Date: Tue, 19 Nov 2024 15:09:11 +0200 Subject: [PATCH] Add the flag `SoftRefLRUPolicyMSPerMB` --- .../kotlin/SequentialTasksExecutionStressTest.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dokka-integration-tests/gradle/src/testTemplateProjectTasksExecutionStress/kotlin/SequentialTasksExecutionStressTest.kt b/dokka-integration-tests/gradle/src/testTemplateProjectTasksExecutionStress/kotlin/SequentialTasksExecutionStressTest.kt index 1566954364..6697267b18 100644 --- a/dokka-integration-tests/gradle/src/testTemplateProjectTasksExecutionStress/kotlin/SequentialTasksExecutionStressTest.kt +++ b/dokka-integration-tests/gradle/src/testTemplateProjectTasksExecutionStress/kotlin/SequentialTasksExecutionStressTest.kt @@ -25,7 +25,10 @@ class SequentialTasksExecutionStressTest : AbstractGradleIntegrationTest() { buildVersions, "runTasks", "-Ptask_number=$iterations", - jvmArgs = listOf("-Xmx1G", "-XX:MaxMetaspaceSize=1000m"), + jvmArgs = listOf( + "-Xmx1G", "-XX:MaxMetaspaceSize=500m", + "-XX:SoftRefLRUPolicyMSPerMB=10Add" // to free up the metaspace in JVM 8, see https://youtrack.jetbrains.com/issue/KT-55831/ + ), enableBuildCache = false, ).buildRelaxed()