BeeCP Lightweight JDBC Connection Pool Update and Performance Test

Introduction

BeeCP is a lightweight JDBC connection pool, with characteristics of high performance, lightweight code, and good stability.

This Update

1: Remove the configuration item: createTimeout.

2: Add a new configuration item: enableThreadLocal, with a default value of true, and setting it to false can support virtual threads.

3: Provide blocking scanning and automatic interruption handling within the connection pool (the previous version has already provided a method for interrupting blocking on the data source).

4: Provide blocking information display on the data source monitoring interface, and provide reset and interruption buttons (appear only when blocking timeout).

5: Adjust the two factory interface class names of Connection: BeeConnectionFactory, BeeXaConnectionFactory (the related methods in the configuration object are synchronously adjusted).

6: Adjust the names of the three methods on the data source related to blocking to: getCreatingTime, isCreatingTimeout, interruptOnCreation.

This Fix

1: Fix the null pointer exception that occurs when the connection pool is closed.

2: Fix the Jmx registration failure exception when the connection pool is initialized.

Maven Coordinates

<dependency><groupId>com.github.chris2018998</groupId><artifactId>beecp</artifactId><version>4.0.5</version></dependency>
<dependency><groupId>com.github.chris2018998</groupId><artifactId>beecp-spring-boot-starter</artifactId><version>1.8.6</version></>

Project Address

https://github.com/Chris2018998/beecp
https://github.com/Chris2018998/beecp-starter

https://gitee.com/Chris2018998/BeeCP
https://gitee.com/Chris2018998/BeeCP-Starter

Performance Test (Connection cycle)

PC: Win11, 32GB memory, I7-14650HX (24 cores)
POOL: Initial number: 24, maximum number: 24

 BeeCP Lightweight JDBC Connection Pool Update and Performance Test_0

Likes