saros icon indicating copy to clipboard operation
saros copied to clipboard

Log4J2 shows warning about degraded performance when running on Java 11

Open tobous opened this issue 5 years ago • 2 comments

When running Saros on a Java 11 runtime environment, the following warning is displayed in the log:

WARNING: sun.reflect.Reflection.getCallerClass is not supported. This will impact performance.

This problem is described in the following StackOverflow entry: https://stackoverflow.com/questions/53049346/is-log4j2-compatible-with-java-11

tobous avatar Jul 30 '20 14:07 tobous

Have you tried the suggested fix: Adding Multi-Release: true to the MANIFEST.MF?

m273d15 avatar Jul 31 '20 09:07 m273d15

Have you tried the suggested fix: Adding Multi-Release: true to the MANIFEST.MF?

I added it to the manifest section of the IntelliJ jar build, but it did not change anything.

            attributes(mutableMapOf(
                    "Created-By" to "IntelliJ IDEA",
                    "Manifest-Version" to "1.0",
                    "Multi-Release" to "true"

But I only tested it with the runIDE task. I don't know whether it actually uses the built jar or some other, internal mechanism to deploy the plugin.

tobous avatar Jul 31 '20 13:07 tobous