Pg报错: HikariPool-1 - Connection is not available, request timed out after 30040ms.问题处理

Pg报错: HikariPool-1 - Connection is not available, request timed out after 30040ms.问题处理,第1张

Pg报错: HikariPool-1 - Connection is not available, request timed out after 30040ms.问题处理 1. 问题背景

数据批量入库时,报错:HikariPool-1 - Connection is not available, request timed out after 30040ms.

2. 问题处理

yml配置文件中加入hikari配置:

  datasource:
    driver-class-name: org.postgresql.Driver
    url: jdbc:postgresql://ip:port/dbName
    username: aaa
    password: bbb
    hikari:
      connection-timeout: 60000
      maximum-pool-size: 500
      max-lifetime: 180000
      minimum-idle: 20
      validation-timeout: 3000
      idle-timeout: 30000

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/5717847.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-18
下一篇 2022-12-17

发表评论

登录后才能评论

评论列表(0条)

保存