Re-indexing causes time out

Hi there,

Our customer has found out following error is recorded in the log.

Regarding this,

1) What does this error stand for?

2) What is "Threshold" parameter about? It seems this has something to do with re-indexing.

If you have an idea, please let me know.

atlassian-jira.log(78878): 2012-12-05 16:45:59,796 http-8080-13 INFO 0000106263

1005x251702x1 j5r05q <masked IP address> /secure/EditIssue.jspa [jira.issue.
index.DefaultIndexManager] Optimizing the index because 4000 issues have been re-
indexed since last optimize. Threshold is 4000.


atlassian-jira.log(78879): 2012-12-05 16:46:35,141 http-8080-40 ERROR 0000103356
1006x251776x2 1ee5bwn <masked IP address> /secure/EditIssue.jspa [jira.issue.
index.DefaultIndexManager] Wait attempt timed out - waited 30000 milliseconds
atlassian-jira.log(78880): com.atlassian.jira.issue.index.IndexException: Wait attempt
timed out - waited 30000 milliseconds


atlassian-jira.log(79018): 2012-12-05 16:46:35,161 http-8080-40 INFO 0000103356
1006x251776x2 1ee5bwn <masked IP address> /secure/EditIssue.jspa [jira.issue.
index.DefaultIndexManager] Optimizing the index because 4001 issues have been re-
indexed since last optimize. Threshold is 4000.


atlassian-jira.log(79019): 2012-12-05 16:46:37,024 http-8080-50 ERROR 0000112279
1006x251780x4 px3dv6 <masked IP address> /secure/AssignIssue.jspa [jira.issue.
index.DefaultIndexManager] Wait attempt timed out - waited 30000 milliseconds

Regards,

Daisuke Niwa

2 answers

1 accepted

The error -

Optimizing the index because 4000 issues have been re-
indexed since last optimize. Threshold is 4000.

Basically the optimzing has caused the thread to time out, because of large JIRA instances.

The second error -

Wait attempt
timed out - waited 30000 milliseconds

This is caused because of JIRA acquiring the lock on Lucene index. Please find the detailed documentation here.

You can solve this problem by increasing the waittime, following the steps provided in the documentation.

I have this same problem. Whenever I see this message in the log, com.atlassian.jira.issue.index.IndexException: Wait attempt timed out - waited 30000 milliseconds, I can guarantee that Jira is locked up for everyone and I need to restart. When this happens there is always 1 CPU at 100% utilization and doesnt go away. I believe I have ample specs on our Jira server with 4 CPU and 10 GB Ram (5 alocated to JVM) so I would doubt its a resource issue. This seems to happen to us about once per month. Whenever I take a thread dump I see several threads blocked on the NextPreviousPager. It looks like there is a bug on this. JRA-21557. Any insight into what is causing the hang?

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published 5 hours ago in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

71 views 4 4
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