To set a maximum custom connection pool size to, for example, 20 connections, we should use the following parameter: spring.
. 10, 12.
4: Connection Pools and Data Sources.
hikari. 4 / 7. hikari.
hikari. When a query takes over a minute to execute, 10 users are easily capable of exhausting a modest connection pool between them. datasource.
Select the data source to modify.
Overview. HikariCP's default pool size is 10. pool.
version, or one of the other supported versions listed above instead. . 8 Springboot - 2. minimumIdle=0 spring. hikari.
I want to increase the maximum pool size of HikariCP which is 10 by default.
For performance consideration, it is not recommended to set this value, but let HikariCP treat connection pool as a fixed size.