eubnara / study

6 stars 2 forks source link

log4j 2 performance #239

Open eubnara opened 3 years ago

eubnara commented 3 years ago

http://logging.apache.org/log4j/2.x/performance.html

Asynchronous logging

Log4j 2는 thread 가 많을 수록 로그를 더 많이 할 수 있다. (lock-free data structure) 하지만 다른 로깅 라이브러리들은 lock contention 문제로 thread 를 늘리면 throughput 이 안늘거나 오히려 떨어지는 추세를 보인다. (logback, log4j1 ...)