Add "-Xlog:gc" flag

This commit is contained in:
JeremyStar™ 2024-09-22 13:40:48 +02:00
parent b675a5ffb2
commit b26517958a
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D

View file

@ -74,7 +74,10 @@ jar {
// Configure application run task // Configure application run task
application { application {
mainClass.set("de.staropensource.sosengine.testapp.Main") 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 // Set log level to DIAGNOSTIC
"-Dsosengine.base.loggerLevel=diagnostic", "-Dsosengine.base.loggerLevel=diagnostic",
@ -123,6 +126,7 @@ tasks.register('runNativeImage', Exec) {
dependsOn(nativeImage) dependsOn(nativeImage)
args( args(
"-Xlog:gc",
"-Dsosengine.base.loggerLevel=diagnostic", "-Dsosengine.base.loggerLevel=diagnostic",
"-Dsosengine.base.loggerForceStandardOutput=true", "-Dsosengine.base.loggerForceStandardOutput=true",
"-Dsosengine.base.initialForceDisableClasspathScanning=true", "-Dsosengine.base.initialForceDisableClasspathScanning=true",