BeeCP Update and Performance Test

Introduction

BeeCP is a lightweight JDBC connection pool, with the 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. Setting it to false can support virtual threads.

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

4: The data source monitoring interface provides blocking information display, and provides reset and interruption buttons (only appear when blocking timeout).

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

6: The names of the three methods on the data source related to blocking are adjusted 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></dependency>

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, 32G memory, I7-14650HX (24 cores)
POOL: Initial number: 24, maximum number: 24

BeeCP Update and Performance Test_0

Likes