Skip to content

Commit

Permalink
Disable Log4J JMX beans creation in tests to avoid overhead (#3753)
Browse files Browse the repository at this point in the history
Fixes #3751.
  • Loading branch information
sdavids authored Apr 12, 2024
1 parent 55e552b commit 718baf6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions documentation/src/docs/asciidoc/user-guide/running-tests.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,8 @@ details).
----
test {
systemProperty("java.util.logging.manager", "org.apache.logging.log4j.jul.LogManager")
// Avoid overhead (see https://logging.apache.org/log4j/2.x/manual/jmx.html#enabling-jmx)
systemProperty("log4j2.disableJmx", "true")
}
----

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ tasks.withType<Test>().configureEach {
}
}
systemProperty("java.util.logging.manager", "org.apache.logging.log4j.jul.LogManager")
// Avoid overhead (see https://logging.apache.org/log4j/2.x/manual/jmx.html#enabling-jmx)
systemProperty("log4j2.disableJmx", "true")
// Required until ASM officially supports the JDK 14
systemProperty("net.bytebuddy.experimental", true)
if (buildParameters.testing.enableJFR) {
Expand Down

0 comments on commit 718baf6

Please sign in to comment.