问题描述
在容器加载时,Spring Boot HikariCP提供的默认连接池大小是多少?
What is the default connection pool size that spring boot HikariCP provides when the container loads?
当然,我正在使用以下属性来设置最大CP大小,但是我想知道如果在application.properties文件中不提供任何数字,则默认CP大小是多少.
of course, I am using below properties to setup max cp size, but I was wondering what is the default CP size if we don't give any number in the application.properties file.
spring.datasource.hikari.minimumIdle=5
spring.datasource.hikari.maximumPoolSize=20
spring.datasource.hikari.idleTimeout=30000
spring.datasource.hikari.poolName=SpringBootJPAHikariCP
spring.datasource.hikari.maxLifetime=2000000
spring.datasource.hikari.connectionTimeout=30000
如果我在application.properties中给出的最大池大小为100,而我仅使用20,这会影响我的应用程序性能吗?
And if I give a max pool size in application.properties as 100 and I use only 20, will that affect my application performance?
推荐答案
maximumPoolSize
HicariCP文档包含默认属性: https://github.com/brettwooldridge/HikariCP
HicariCP Documentation contains default properties:https://github.com/brettwooldridge/HikariCP
在此处了解有关池大小的信息:最大连接池大小
这篇关于HikariCP的默认maximumPoolSize的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!