Tagged articles
5 articles
Page 1 of 1
FunTester
FunTester
Jan 29, 2023 · Backend Development

How to Extend Commons‑Pool2 for Custom KeyedObjectPool Idle Management

This article explains why the default Apache Commons‑Pool2 APIs cannot limit idle objects per key, and demonstrates three practical techniques—scheduled cleanup, factory modification, and priority‑based eviction—to enforce per‑key idle limits in a GenericKeyedObjectPool implementation.

BackendGenericKeyedObjectPoolObject Pooling
0 likes · 7 min read
How to Extend Commons‑Pool2 for Custom KeyedObjectPool Idle Management
FunTester
FunTester
Jun 27, 2022 · Backend Development

Implementing a Custom MySQL Connection Pool with Apache Commons Pool2 in Java

The article explains how to build a reusable MySQL connection pool in Java using Apache Commons Pool2, detailing the creation of a poolable object, a factory class, the pool configuration, and a simple API wrapper for borrowing and returning connections while providing full source code examples.

Connection Poolcommons-pool2java
0 likes · 7 min read
Implementing a Custom MySQL Connection Pool with Apache Commons Pool2 in Java
ITPUB
ITPUB
Oct 29, 2021 · Backend Development

How We Fixed Dubbo Thread‑Pool Exhaustion by Tuning Redis Connection Pools

When a high‑traffic Dubbo interface began throwing thread‑pool exhaustion errors, the team traced the issue to Redis request spikes, identified mis‑configured connection‑pool parameters and version‑specific bugs, and applied a series of quick fixes, pool‑size adjustments, and client‑side optimizations that dramatically reduced latency and error rates.

BackendDubbocommons-pool2
0 likes · 15 min read
How We Fixed Dubbo Thread‑Pool Exhaustion by Tuning Redis Connection Pools
vivo Internet Technology
vivo Internet Technology
Jun 16, 2021 · Backend Development

Troubleshooting Dubbo Thread Pool Exhaustion: A Redis Performance Optimization Case Study

The case study details how a high‑traffic Dubbo service handling 1.8 billion daily requests suffered periodic circuit‑breaks due to thread‑pool exhaustion, traced to a cache‑bypass bug, Redis setex spikes, and an improperly warmed commons‑pool2 connection pool, and resolved by fixing the bug, scaling Redis, and tuning or downgrading the pool configuration to enable pre‑warming via minEvictableIdleTimeMillis.

Circuit BreakingConnection PoolDubbo
0 likes · 13 min read
Troubleshooting Dubbo Thread Pool Exhaustion: A Redis Performance Optimization Case Study
vivo Internet Technology
vivo Internet Technology
Apr 21, 2021 · Backend Development

Analysis of Apache Commons-Pool2 Object Pooling Implementation

The article examines Apache Commons‑Pool2’s object‑pool architecture, detailing its core interfaces (ObjectPool, PooledObjectFactory, PooledObject), the GenericObjectPool construction, FIFO/LIFO idle‑object deque management with lock‑based concurrency, borrowing and returning workflows, self‑protection features like abandonment detection, and the performance tuning needed for high‑concurrency environments.

Object PoolingResource Managementcommons-pool2
0 likes · 17 min read
Analysis of Apache Commons-Pool2 Object Pooling Implementation