youngledo opened a new issue, #2856: URL: https://github.com/apache/logging-log4j2/issues/2856
After reading the official [performance report](https://logging.apache.org/log4j/2.x/performance.html), the conclusion is that log4j2 is more powerful, but why isn't it the case when I test it myself? ### 1. Do nothing - log4j2 Firstly, without doing anything, the application's memory is about 160M: <img width="1371" alt="image" src="https://github.com/user-attachments/assets/fefd8f6c-086f-4956-9ec8-48fd7c0c851d"> - logback But I only have around 30MB of memory when using Logback: <img width="1367" alt="image" src="https://github.com/user-attachments/assets/4d3938ad-cc81-43bc-9e22-bc6cbb235249"> ### 2. Write log It was tested in the same way: http://127.0.0.1:8080/log4j2/pressure?minLengthInclusive=102400&maxLengthExclusive=409600×=10000 - log4j2 Although the memory usage is not very high, it is more than twice as much as logback. <img width="1382" alt="image" src="https://github.com/user-attachments/assets/3e13b6bb-3971-4d46-b8e5-7a64bf27e499"> - logback <img width="1370" alt="image" src="https://github.com/user-attachments/assets/4216c728-da4a-4c60-8143-4576516acaa7"> Did I do something wrong? This is my test project(Spring Boot): [log-sample.zip](https://github.com/user-attachments/files/16655317/log-sample.zip) -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
