Closed
Description
Description
When using Log4j2 in asynchronous logging mode, the CPU usage is significantly higher than expected, even under low logging throughput. This issue persists regardless of the configured
Configuration
Version: [2.24.3]
Operating system: [linux 6.8]
JDK: [jdk 11]
Logs
no
Reproduction
[An isolated test reproducing the test.
JUnit tests similar to the ones in the code base are extremely appreciated.]
-Dlog4j2.contextSelector=org.apache.logging.log4j.core.async.AsyncLoggerContextSelector
-DAsyncLogger.WaitStrategy=Sleep
add these jvm options
and run ,we will found the high cpu usage on "Log4j2-TF" thread
Metadata
Metadata
Assignees
Type
Projects
Status
Done