Spring Boot app (Hikari + Quartz + MySQL) randomly loses DB connections, floods logs until restart
I have a Spring Boot app using HikariCP (MySQL on AWS RDS) and Quartz with a JDBC job store. It runs fine for days, then suddenly stops getting DB connections. Logs fill up, and it won’t recover until I restart. After restart, it runs fine again.
---
Example logs
---
Hikari config
---
Question
Why does this keep happening? Why doesn’t Hikari just rebuild connections instead of flooding errors? Should I tune
maxLifetime, keepaliveTime, or something else to stop it from hanging until restart? Any best practices to fix this are appreciated. Thanks.1 Reply
⌛ This post has been reserved for your question.
Hey @ysmr! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./closeor theClose Postbutton above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically marked as dormant after 300 minutes of inactivity.
💤 Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping.
Warning: abusing this will result in moderative actions taken against you.