HikariCP的默认maximumPoolSize [英] Default maximumPoolSize for HikariCP

查看:3894
本文介绍了HikariCP的默认maximumPoolSize的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在容器加载时,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

默认值:10

HicariCP文档包含默认属性: https://github.com/brettwooldridge/HikariCP

HicariCP Documentation contains default properties: https://github.com/brettwooldridge/HikariCP

在此处了解有关池大小的信息: 最大连接池大小

这篇关于HikariCP的默认maximumPoolSize的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆