Why Is Async Log4j2 Logging So Slow? A Deep Dive into Disruptor and JNI Overheads
The article investigates a severe performance bottleneck in a Java service caused by massive async Log4j2 logging, analyzes the Disruptor‑based async logger, explores JNI stack‑trace overhead, reproduces the issue with benchmarks, and provides practical recommendations to eliminate the slowdown.
