Hello.
Lately we are experiencing problems with database connection spikes. There seem to be locks on the database.
We will be very thankful for any hints where to look for the cause.


We have tried to find a root cause to the problem, but after days of cleaning logs, and digging for hints we are left only with countless scattered symptoms, which we are even unsure if those are connected (damn, feels like in House episode).
Problems started approximately when we have connected one of our departments to Jira, thus doubling issue count and active users count. We are also strongly dependant on Kepler Romino's Database and SIL custom fields. SIL and database fields are HEAVILY used by the new department. No more than week later we have upgraded our instance from 5.2.5 to 6.1.7 as well as all (~40) plugins to the newest available versions. Now we can't tell what problems are caused by the heavy load, which by the upgrade of Jira, and which by some plugins.
We looked in atlassian-jira.log but there is nothing that would appear during or before each spike.
We have enabled SQL logging, but the amount of data logged to the file is so insane (20MB each 3-4 minutes) that it is simply impossible to find any hint out there...
We have sat and waited for the spikes to appear to peek the database connections. We have found out that spikes are caused by the locks appearing on the database, but there is a complete randomness in the command that begins the lock avalanche. Sometimes selects, sometimes updates, sometimes inserts. When we manually kill the locking connection on the database on time, spike is ended immediately. But we still don't know what sparked the locks.
We will be glad for any help or directions where too look for the cause of the problem.