Tagged articles
2 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 7, 2022 · Backend Development

Performance Testing of Apache Commons Pool2 GenericKeyedObjectPool in Java

This article demonstrates how to implement and benchmark Apache Commons Pool2's GenericKeyedObjectPool in Java, including factory creation, pool configuration, multithreaded performance tests with and without wait times, and analysis of results highlighting scalability limitations.

Apache Commons Pool2GenericKeyedObjectPooljava
0 likes · 6 min read
Performance Testing of Apache Commons Pool2 GenericKeyedObjectPool in Java