Force Jira to use nolock

Mike Stark September 11, 2013

Using Jira 5.2.6 and MS SQL 2008

Our DBA team has reported that we're getting a lot of locked SPIDs. They've requested that we add nolock to our sql calls. We have already added autoCommit=false to our db string and we are still getting a lot of deadlocks and locked SPIDs.

Is there any way to force Jira to use nolock and/or any other suggestions?

1 answer

0 votes
John Garcia
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 11, 2013

Generally, we do consider nolock to be a risky mode to operate in, so we always recommend AGAINST using it for Production applications. In fact, most of our products will verify that the database and its tables are in the READ COMMITTED mode prior to starting. That said, JIRA is generally very good at managing its connection pool, and we've only seen problems when a plugin ties up one of the connections and refuses to release it.

For more info, please review this Stack Overflow thread: http://stackoverflow.com/a/1453000/2759475

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events