From b26517958a3d14fbb428717f2c535c2ee13f7c77 Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Sun, 22 Sep 2024 13:40:48 +0200 Subject: [PATCH] Add "-Xlog:gc" flag --- testapp/build.gradle | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/testapp/build.gradle b/testapp/build.gradle index b343e5be..779836e0 100644 --- a/testapp/build.gradle +++ b/testapp/build.gradle @@ -74,7 +74,10 @@ jar { // Configure application run task application { mainClass.set("de.staropensource.sosengine.testapp.Main") - applicationDefaultJvmArgs = [ // List of nice development configuration overrides + applicationDefaultJvmArgs = [ + // Display GC log + "-Xlog:gc", + // Set log level to DIAGNOSTIC "-Dsosengine.base.loggerLevel=diagnostic", @@ -123,6 +126,7 @@ tasks.register('runNativeImage', Exec) { dependsOn(nativeImage) args( + "-Xlog:gc", "-Dsosengine.base.loggerLevel=diagnostic", "-Dsosengine.base.loggerForceStandardOutput=true", "-Dsosengine.base.initialForceDisableClasspathScanning=true",