Tagged articles
22 articles
Page 1 of 1
IT Services Circle
IT Services Circle
Jan 15, 2026 · Backend Development

10 Logging Best Practices Every Java Backend Engineer Should Follow

This article presents ten practical rules for producing clean, searchable, and performance‑friendly logs in Java applications, covering unified formatting, stack traces, log levels, complete parameters, data masking, asynchronous writing, traceability, dynamic log levels, structured storage, and intelligent monitoring with concrete code snippets and configuration examples.

asynchronous loggingbest practiceslogback
0 likes · 10 min read
10 Logging Best Practices Every Java Backend Engineer Should Follow
Code Wrench
Code Wrench
Jul 13, 2025 · Backend Development

Boost Go Web Performance with Asynchronous Logging via Channels and Middleware

This article explains how to build a high‑performance asynchronous logging system for Go web services using channels and middleware, covering both gRPC and Gin implementations, a log‑processing engine, performance‑tuning tips, and measured latency and CPU improvements.

ChannelsGinasynchronous logging
0 likes · 7 min read
Boost Go Web Performance with Asynchronous Logging via Channels and Middleware
dbaplus Community
dbaplus Community
Jun 1, 2025 · Backend Development

Why Log4j2 Async Logging Blocks Threads and How to Fix It

This article examines Log4j2 asynchronous logging bottlenecks, explains the underlying Disruptor queue mechanics, identifies root causes of thread blocking, and presents practical strategies—including queue tuning, log classification, bytecode instrumentation, and IDE plugins—to achieve fine‑grained, performant log control.

DisruptorIDE pluginLog Management
0 likes · 12 min read
Why Log4j2 Async Logging Blocks Threads and How to Fix It
Sanyou's Java Diary
Sanyou's Java Diary
Apr 17, 2025 · Backend Development

Why Does Log4j2 Async Logging Block Threads? Deep Dive & Solutions

Log4j2’s asynchronous logging can cause thread blocking when the Disruptor ring buffer fills, a problem explored through its architecture, root causes, and practical mitigation strategies such as dual‑track log classification, bytecode‑enhanced line‑level control, Maven plugins, and IDE integrations for dynamic log management.

Javaasynchronous logginglog4j2
0 likes · 13 min read
Why Does Log4j2 Async Logging Block Threads? Deep Dive & Solutions
JD Tech Talk
JD Tech Talk
Dec 19, 2024 · Backend Development

Optimizing Log4j2 Asynchronous Logging: Configuration, Diagnosis, and Load‑Testing

This article presents a detailed case study of a severe service outage caused by Log4j2 asynchronous logging bottlenecks, explains step‑by‑step diagnostics of JVM, disk, and RingBuffer metrics, and demonstrates how adjusting log4j2.asyncQueueFullPolicy and log4j2.discardThreshold dramatically improves recovery time during load testing.

ConfigurationJavaRingBuffer
0 likes · 14 min read
Optimizing Log4j2 Asynchronous Logging: Configuration, Diagnosis, and Load‑Testing
JD Cloud Developers
JD Cloud Developers
Dec 19, 2024 · Backend Development

How Discard Policy and Error Threshold Rescue Java Services During Log Overload

This article analyzes a severe service‑availability drop caused by Log4j2 asynchronous logging bottlenecks, explains how configuring log4j2.asyncQueueFullPolicy=Discard and log4j2.discardThreshold=ERROR mitigates the issue, details the investigation steps, performance tests, and provides practical recommendations for robust backend logging.

Java backendPerformance Testingasynchronous logging
0 likes · 15 min read
How Discard Policy and Error Threshold Rescue Java Services During Log Overload
Top Architect
Top Architect
Dec 1, 2024 · Backend Development

Diagnosing Slow Asynchronous Log Printing in Java: From Mapping Overhead to Disruptor and JNI Analysis

This article investigates why a large number of quality‑check mappings cause severe latency in a Java service, traces the slowdown to excessive asynchronous log printing, explains the Disruptor‑based async logger internals, evaluates stack‑trace location handling and JNI overhead, and proposes practical configuration and code‑level fixes.

DisruptorJNIJava
0 likes · 20 min read
Diagnosing Slow Asynchronous Log Printing in Java: From Mapping Overhead to Disruptor and JNI Analysis
JD Tech
JD Tech
Jun 13, 2024 · Backend Development

Investigation of Log4j2 Asynchronous Logging Memory Growth and Mitigation Strategies

This article analyzes the memory increase observed after enabling Log4j2 asynchronous logging in Java services, examines root causes such as thread‑local reuse and large char[] allocations, and presents configuration and code changes—including disabling thread‑locals and limiting message size—to prevent heap growth and improve performance.

JVMJavaasynchronous logging
0 likes · 18 min read
Investigation of Log4j2 Asynchronous Logging Memory Growth and Mitigation Strategies
JD Cloud Developers
JD Cloud Developers
Oct 24, 2023 · Backend Development

How Switching to Async Log4j2 Can Double Your Application Throughput

This article analyzes a performance bottleneck caused by synchronous Log4j2 logging, demonstrates how converting to asynchronous logging with AsyncLogger or AsyncAppender dramatically reduces response time, increases TPS, and lowers CPU usage, and provides detailed configuration examples and best‑practice guidelines.

Performance Optimizationasynchronous logginglog4j2
0 likes · 17 min read
How Switching to Async Log4j2 Can Double Your Application Throughput
dbaplus Community
dbaplus Community
Feb 7, 2023 · Backend Development

How We Cut Log4j2 Disk and CPU Usage by 90% in a High‑Traffic Shopping Cart

Facing massive log volume in JD.com’s shopping cart service, we reduced disk consumption, CPU load, and improved request latency by applying Log4j2 log level filtering, asynchronous logging with AsyncLogger, and TTL‑based thread‑local context propagation, while providing detailed metrics, configuration steps, and best‑practice recommendations.

Performance OptimizationTTLThreadLocal
0 likes · 14 min read
How We Cut Log4j2 Disk and CPU Usage by 90% in a High‑Traffic Shopping Cart
Programmer DD
Programmer DD
Jun 15, 2022 · Backend Development

Boost Spring Boot Performance: Master Logback Async Logging & File Segmentation

Learn how to configure Logback in Spring Boot to separate logs by level, implement asynchronous logging for reduced I/O latency, and verify performance gains—up to tenfold throughput improvement—using JMeter tests on a six‑core, 8 GB server, with detailed XML snippets and code explanations.

Performance Testingasynchronous loggingspring-boot
0 likes · 11 min read
Boost Spring Boot Performance: Master Logback Async Logging & File Segmentation
Top Architect
Top Architect
Mar 28, 2022 · Backend Development

Configuring Logback for Asynchronous Logging in Spring Boot and Performance Comparison

This article explains how to configure Logback in a Spring Boot application to separate logs by level, implement asynchronous logging with AsyncAppender, and compare performance using JMeter, demonstrating a tenfold throughput increase while providing detailed XML configuration examples and underlying implementation details.

Backend DevelopmentJavaPerformance Testing
0 likes · 9 min read
Configuring Logback for Asynchronous Logging in Spring Boot and Performance Comparison
Programmer DD
Programmer DD
Jan 6, 2022 · Backend Development

Boost Spring Boot Performance with Asynchronous Logback Logging

This article explains how to configure Logback in Spring Boot to separate logs by level, use asynchronous appenders to reduce I/O latency, and demonstrates a performance test showing a ten‑fold throughput increase, while also detailing the underlying async logging mechanism.

asynchronous logginglogbackperformance
0 likes · 9 min read
Boost Spring Boot Performance with Asynchronous Logback Logging
Programmer DD
Programmer DD
Apr 18, 2021 · Backend Development

Why Log4j2 Beats Logback: Performance, Zero‑GC, and Advanced Features

Log4j2, the modern successor to Logback and Log4j 1, offers dramatically superior asynchronous performance, zero‑GC operation, flexible configuration formats, powerful parameter formatting, lazy logging via lambdas, and extensive appender support, making it the top choice for Java logging in high‑throughput applications.

asynchronous loggingjava logginglazy logging
0 likes · 11 min read
Why Log4j2 Beats Logback: Performance, Zero‑GC, and Advanced Features
Architecture Digest
Architecture Digest
Oct 19, 2020 · Backend Development

Performance Comparison of Logback and Log4j2 Synchronous vs Asynchronous Logging

This article revisits a previous logback configuration test, expands the sample size and repeats the measurements using JMeter, JProfile, and New Relic APM to compare synchronous and asynchronous logging in Logback and Log4j2, revealing that asynchronous logging reduces log latency but only marginally improves overall TPS, while Log4j2’s async implementation can boost TPS up to six times.

JavaPerformance Testingasynchronous logging
0 likes · 8 min read
Performance Comparison of Logback and Log4j2 Synchronous vs Asynchronous Logging
Java Backend Technology
Java Backend Technology
Aug 13, 2020 · Backend Development

Why Asynchronous Logging Doesn’t Boost TPS – Real Test Results with Logback and Log4j2

Through extensive JMeter and APM testing on a 6‑core, 8 GB server, this article reveals that switching Logback from synchronous to asynchronous logging yields minimal TPS improvement, explains why, and demonstrates that Log4j2’s async implementation can achieve up to six‑fold performance gains.

JavaPerformance Testingasynchronous logging
0 likes · 8 min read
Why Asynchronous Logging Doesn’t Boost TPS – Real Test Results with Logback and Log4j2
Programmer DD
Programmer DD
Sep 25, 2019 · Backend Development

Boost Spring Boot Performance: Master Logback Async Logging & File Separation

This article explains how to configure Logback in a Spring Boot application to separate logs by level into different files, implement asynchronous logging to reduce disk I/O, and demonstrates a performance test showing a ten‑fold throughput increase, while also detailing the underlying async mechanism.

Backend DevelopmentJavaPerformance Testing
0 likes · 10 min read
Boost Spring Boot Performance: Master Logback Async Logging & File Separation
Youzan Coder
Youzan Coder
Aug 9, 2019 · Backend Development

How Youzan Built a Scalable Task Center: Architecture, Idempotency, and Dynamic Config

This article explains why a task center is essential for merchants, outlines its goals, and details the backend architecture—including atomic APIs, Apollo-driven dynamic configuration, idempotent control, workflow orchestration, caching, and asynchronous logging—while also sharing future enhancements.

Backend ArchitectureDynamic ConfigurationIdempotency
0 likes · 8 min read
How Youzan Built a Scalable Task Center: Architecture, Idempotency, and Dynamic Config
Programmer DD
Programmer DD
Dec 2, 2018 · Backend Development

Why Log4j2 Beats Logback: Real‑World Performance Test and Disruptor Secrets

An in‑depth performance comparison of Logback and Log4j2 shows how asynchronous logging and the Disruptor queue dramatically improve throughput, with benchmark data across various hardware, configuration tips, and a look at underlying queue implementations such as ArrayBlockingQueue versus Disruptor.

Disruptorasynchronous logginglog4j2
0 likes · 8 min read
Why Log4j2 Beats Logback: Real‑World Performance Test and Disruptor Secrets