will-zdu opened a new issue, #3635:
URL: https://github.com/apache/logging-log4j2/issues/3635

   ## 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


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@logging.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to