Connections to database remain open


We are defining a datasource in the "Datasources admin page" against a Postgres Database.

When we use this datasource in a field with a list, the connections to the database remain open and in a few minutes we reach the database connection limit.

Any ideas on how to solve this?

Regards, David.

1 answer

Hi David,

We will have to reproduce this. Could you file this issue on our JIRA
( for further tracking.



Has there been any follow ups to this issue?

We are also experiencing an issue with open database connections.

Is there an existing ticket for this? I've searched for one to no avail.


Are you able to reproduce the issue ?
We have been testing but without success.

We asked David (through our jira) to provide us additional information such that we can move ahead. If you can provide a reproducible scenario we will further be able to investigate it.



Yes, we are able to reproduce the issue.


By now, we have a shell script that kills all connections with no activity for more than 5 minutes. But oviously, that's not the solution.



Is there any insight that you can provide in regards to the script that you are using?



What are you looking for exactly as a "reproducible scenario"? Currently we are watching our atlassian-jira-sql.log and we see our counts continuing to go up and we check the Database Monitoring tool in Jira and we do not see connections dropping. Then we get an error once we've hit above our threshold with a 503 error.

We've increased our connection pool via both Jira and Oracle. We've tested that our connections do not drop if we've used the TGE in our tickets, but if TGE is not used our connections do drop.


Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 29, 2018 in Marketplace Apps

How to set up an incident workflow from the VP of Engineering at Sentry

Hey Atlassian community, I help lead engineering at Sentry, an open-source error-tracking and monitoring tool that integrates with Jira. We started using Jira Software Cloud internally last year, a...

1,697 views 3 11
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you