Jira increases active DB sessions after DB switchover

Lukas Konecny
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 11, 2024

Hello, our setup is Jira DC(multiple nodes) with PostgreSQL cluster DB. We have issue with high increasement of active DB sessions after DB switchover which stay on the same amount until Jira restart. This is our pool configuration:

<pool-min-size>250</pool-min-size>
<pool-max-size>250</pool-max-size>
<pool-max-wait>30000</pool-max-wait>
<pool-max-idle>80</pool-max-idle>

 

and connection pool after the switchover:

image.png

Anybody has experience? Any parameter to tune the pool so the active sessions(which are broken obviously because we see just some on DB side) are kicked out after some time?

Thank you for each suggestion.

1 answer

0 votes
Sagar
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 16, 2024

Hi @Lukas Konecny Welcome to the Atlassian community,

First you need to understand the cause of this database connection pool increased as if you tune/increase the connection pool database resources and not fixed the cause then it will not help even you increase the connection pool to max value,

So, to identify the cause, check the below parameter if they are causing any issue to increase database connection requests and your database is not able to handle those.

Also, check the related KB document from the Atlassian to get more understanding and update the parameters based on your need.

https://confluence.atlassian.com/jirakb/operations-in-jira-server-fail-with-connection-pool-errors-in-logs-718834030.html

 

 

Lukas Konecny
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 18, 2024

Hi @Sagar 

thank you for your response.

The connection pool doesn't have issue at all, you can see the active sessions are around 5 all the time. We are hitting this issue on test instance as well and there is no user traffic basically. We are just interested why the active sessions are increased so rapidly after the DB switchover and are not kicked out after some time?

We have checked the database statistics after the switchover and the DB says there is <5 active sessions.  It looks like there are an orphaned sessions which are not kicked out.

I am going to have a look on it once more again with our DB guys.

Thx.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
9.12.1
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events