Connection pool problem

Pavol Lackovič August 31, 2012

Hi.

Pls help me with connection pool problem.

I start Jira and after some time raise active connection pool to maximum pool size value.

Then Jira is unusable and i have to restart service.

What is the problem?

My dbconfig:

<jira-database-config>
  <name>defaultDS</name>
  <delegator-name>default</delegator-name>
  <database-type>mssql</database-type>
  <schema-name>dbo</schema-name>
  <jdbc-datasource>
    <url>jdbc:jtds:sqlserver://XXX;instance=XXX</url>
    <driver-class>net.sourceforge.jtds.jdbc.Driver</driver-class>
    <username>XXX</username>
    <password>XXX</password>
    <pool-size>60</pool-size>
<pool-max-idle>15</pool-max-idle>
	<pool-min-size>10</pool-min-size>
	<pool-max-wait>5000</pool-max-wait>
	<pool-remove-abandoned>true</pool-remove-abandoned>
    <pool-remove-abandoned-timeout>30</pool-remove-abandoned-timeout>
	<log-abandoned>true</log-abandoned>
  </jdbc-datasource>
</jira-database-config>

database monitor:

Thanks for help

6 answers

1 accepted

1 vote
Answer accepted
Pavol Lackovič October 9, 2012

we had problem with scripted fields:)

thanks for the answers

0 votes
yuvaraj gopalasamy September 29, 2013

This was due to worflow condition script or ? because we are facing connection pool problem in our environment.

0 votes
Pavol_Lackovič September 29, 2013

we had problem with worflow condition script

already its ok

thanks for your answers

0 votes
yuvaraj gopalasamy September 26, 2013

Any update on this

0 votes
Krzysztof Skoropada [Deviniti]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 2, 2012

See secure/admin/ViewMemoryInfo.jspa to check if your JIRA instance has enough memory to create connections.

Delete third-party plugins and and look on your JIRA.

0 votes
Harry Chan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 31, 2012

Hi, can you check how many connections SQL Server accepts? Does it allow at least 60 connections? It might be an issue of having too many connections and the server doesn't accept it.

Can you let us know which version of SQL Server are you working with?

Pavol Lackovič August 31, 2012

I am working with SQL Server 2008.

But is normal behavior that number of connection pool is so big?

I had first pool-size parameter set on 20, than 30 and now 60.

And connections is more and more.

Have i set up bigger pool-size parameter?

Harry Chan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 31, 2012

It's normal if you have a lot of concurrent users doing things. It means that you currently require a lot of concurrent connections, more than the max you have set.

Pavol Lackovič August 31, 2012

ok.

i try increase max connections.

Thanx

Radu Dumitriu
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 2, 2012

If your install serves < 200 users, you have a plugin that leaks connections. Increasing connections is not the idea.

Suggest an answer

Log in or Sign up to answer