Add "-Xlog:gc" flag
All checks were successful
build-and-test / test (push) Successful in 1m27s
build-and-test / generate-javadoc (push) Successful in 1m43s
build-and-test / build (push) Successful in 1m45s

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",