Tag

ThreadBlocking

0 views collected around this technical thread.

Cognitive Technology Team
Cognitive Technology Team
Apr 5, 2025 · Fundamentals

Understanding Java ClassLoader.loadClass() API and Its Performance Impact

This article explains how the java.lang.ClassLoader#loadClass() API works, why frequent concurrent calls can cause thread blocking due to internal synchronization, demonstrates the issue with a sample multithreaded program, analyzes thread‑dump data, and provides practical solutions to mitigate the performance problem.

ClassLoaderJVMJava
0 likes · 12 min read
Understanding Java ClassLoader.loadClass() API and Its Performance Impact
Cognitive Technology Team
Cognitive Technology Team
Oct 28, 2024 · Backend Development

Investigation of Sporadic Netty Message Send Delays Exceeding One Second

During performance testing of a Netty-based service, occasional message sends exceeded one second despite low CPU usage, prompting an investigation that identified a blocking ChannelHandler caused by a conditional sleep, leading to NioEventLoop thread stalls and delayed transmissions.

ChannelHandlerGCJava
0 likes · 4 min read
Investigation of Sporadic Netty Message Send Delays Exceeding One Second
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