Tag

AsyncAppender

1 views collected around this technical thread.

DataFunSummit
DataFunSummit
Aug 21, 2022 · Operations

Log4j2 Thread Blocking Causes and Mitigation Strategies

This article examines how excessive logging, AsyncAppender queue saturation, JVM reflection optimizations, and Lambda class loading can cause thread blocking in Log4j2, analyzes root causes with code examples, and provides practical guidelines and best‑practice configurations to prevent performance degradation in high‑throughput Java services.

AsyncAppenderJavaLoggingThreadBlocking
0 likes · 53 min read
Log4j2 Thread Blocking Causes and Mitigation Strategies
Cognitive Technology Team
Cognitive Technology Team
Jun 26, 2022 · Backend Development

AsyncAppender OOM, Log Loss, and Blocking Issues – Configuration Guide

The article explains how AsyncAppender uses a BlockingQueue with a default size of 256, how an oversized queue can cause OOM, how the discardingThreshold can lead to loss of TRACE/DEBUG/INFO logs, and provides configuration tips such as adjusting queueSize, setting discardingThreshold to zero, or enabling neverBlock to avoid blocking.

AsyncAppenderBlockingQueueLogback
0 likes · 5 min read
AsyncAppender OOM, Log Loss, and Blocking Issues – Configuration Guide