检测连接泄露nacos配置

通过最下面一项和配置,当链接池泄露后后台会打印日志

#pgsql
datasource:
type: com.zaxxer.hikari.HikariDataSource
driver-class-name: org.postgresql.Driver
username: xxxx
password: xxxxx
url: jdbc:postgresql://xxxxxx:15453/database?currentSchema=public&reWriteBatchedInserts=true&stringtype=unspecified
hikari:
maximum-pool-size: 30 # 设置最大连接数
minimum-idle: 10 # 设置最小空闲连接数
connection-timeout: 30000 # 连接超时时间
idle-timeout: 600000 # 空闲超时时间
max-lifetime: 1800000 # 连接存活时间
leak-detection-threshold: 600000 # 连接泄露检测的阈值(毫秒)

logging:
level:
io.minio: debug
#com.jurassic.cloud.assets: debug
org.springframework.data.mongodb: debug
com.mongodb: debug
com.zaxxer.hikari: debug

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值