zengzuo613 opened a new issue, #3375: URL: https://github.com/apache/logging-log4j2/issues/3375
I reviewed [the garbagefree documentation](https://logging.apache.org/log4j/2.x/manual/garbagefree.html), and it states that the Garbage-free mode requires additional configuration and activation. However, when I tested the [logback-perf](https://github.com/ceki/logback-perf) code, I noticed that even with the default configuration and extensive logging output, it did not trigger any GC (Garbage Collection). **perf result** ```bash Benchmark Mode Cnt Score Error Units AsyncWithFileAppenderBenchmark.log4j2AsyncFile thrpt 2 170.888 ops/ms AsyncWithFileAppenderBenchmark.log4j2AsyncFile:gc.alloc.rate thrpt 2 ≈ 10?? MB/sec AsyncWithFileAppenderBenchmark.log4j2AsyncFile:gc.alloc.rate.norm thrpt 2 0.002 B/op AsyncWithFileAppenderBenchmark.log4j2AsyncFile:gc.count thrpt 2 ≈ 0 counts AsyncWithFileAppenderBenchmark.logbackFile thrpt 2 209.157 ops/ms AsyncWithFileAppenderBenchmark.logbackFile:gc.alloc.rate thrpt 2 181.193 MB/sec AsyncWithFileAppenderBenchmark.logbackFile:gc.alloc.rate.norm thrpt 2 908.393 B/op AsyncWithFileAppenderBenchmark.logbackFile:gc.count thrpt 2 36.000 counts AsyncWithFileAppenderBenchmark.logbackFile:gc.time thrpt 2 44.000 ms FileAppenderBenchmark.log4j2File thrpt 2 126.649 ops/ms FileAppenderBenchmark.log4j2File:gc.alloc.rate thrpt 2 ≈ 10?? MB/sec FileAppenderBenchmark.log4j2File:gc.alloc.rate.norm thrpt 2 0.003 B/op FileAppenderBenchmark.log4j2File:gc.count thrpt 2 ≈ 0 counts FileAppenderBenchmark.logbackFile thrpt 2 121.266 ops/ms FileAppenderBenchmark.logbackFile:gc.alloc.rate thrpt 2 94.102 MB/sec FileAppenderBenchmark.logbackFile:gc.alloc.rate.norm thrpt 2 813.717 B/op FileAppenderBenchmark.logbackFile:gc.count thrpt 2 19.000 counts FileAppenderBenchmark.logbackFile:gc.time thrpt 2 26.000 ms ``` Is the Garbage-free mode activated by default? and jdk and log4j2 verison is 1.8.171 and 2.24.3 -- 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