Hi , I am using Camunda Spring Boot with PostGres DB.
Application runs for a couple of days properly and suddenly we notice that the workflows slows down and eventually stop working.
When we analyze, we found that in DB connections they are going to “idle in transaction” state for the below Query…
select
*
from
ACT_RE_DECISION_DEF d1
inner join (
select
KEY_,
TENANT_ID_,
max(VERSION_) as MAX_VERSION
from
ACT_RE_DECISION_DEF RES
where
KEY_ = ‘$1’
and (RES.TENANT_ID_ is null
or RES.TENANT_ID_ in ($2) )
group by
TENANT_ID_,
KEY_) d2 on
d1.KEY_ = d2.KEY_
where
d1.VERSION_ = d2.MAX_VERSION
and (d1.TENANT_ID_ = d2.TENANT_ID_
or (d1.TENANT_ID_ is null
and d2.TENANT_ID_ is null))
… In Logs we see connection closed related Hikari errors…
Connection Params::
app:
datasource:
camunda:
minimumIdle: 15
maximumPoolSize: 30
maxLifetime: 100000