About the ssh cmd 'gerrit show-queue'.

155 views
Skip to first unread message

Z

unread,
Sep 10, 2019, 10:19:36 PM9/10/19
to Repo and Gerrit Discussion
Hi
    1. Lots of the 'Index-Interactive' status in 'gerrit show-queue' like the attached file which cause heavy load in server and then gerritUI hang.

    2. gerrit version : 2.13.7

    3. I do not know why, nothing exception in errorlog and many  '/gerrit/changes/?q=is:open+owner:self&q=is:open+reviewer:self+-owner:self+-star:ignore&q=is:closed+(owner:self+OR+reviewer:self)+-age:4w+limit:10&O=881' in httplog

    4. The log from jstack

org.apache.lucene.util.PriorityQueue.downHeap(PriorityQueue.java:284)
org.apache.lucene.util.PriorityQueue.updateTop(PriorityQueue.java:211)
org.apache.lucene.search.TopFieldCollector.updateBottom(TopFieldCollector.java:523)
org.apache.lucene.search.TopFieldCollector$SimpleFieldCollector$2.collect(TopFieldCollector.java:243)
org.apache.lucene.search.Weight$DefaultBulkScorer.scoreAll(Weight.java:221)
org.apache.lucene.search.Weight$DefaultBulkScorer.score(Weight.java:172)
org.apache.lucene.search.BulkScorer.score(BulkScorer.java:39)
org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:821)
org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:535)
org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:744)
org.apache.lucene.search.IndexSearcher.searchAfter(IndexSearcher.java:729)
org.apache.lucene.search.IndexSearcher.searchAfter(IndexSearcher.java:671)
org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:577)
org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:627)
com.google.gerrit.lucene.LuceneChangeIndex$QuerySource.doRead(LuceneChangeIndex.java:345)
com.google.gerrit.lucene.LuceneChangeIndex$QuerySource.access$300(LuceneChangeIndex.java:279)
com.google.gerrit.lucene.LuceneChangeIndex$QuerySource$1.call(LuceneChangeIndex.java:325)
com.google.gerrit.lucene.LuceneChangeIndex$QuerySource$1.call(LuceneChangeIndex.java:322)
com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:108)
com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:41)
com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:77)
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
java.util.concurrent.FutureTask.run(FutureTask.java:266)
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
com.google.gerrit.server.git.WorkQueue$Task.run(WorkQueue.java:417)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
java.lang.Thread.run(Thread.java:748)



gerrit_show-queue.png

Antoine Musso

unread,
Sep 11, 2019, 7:29:05 AM9/11/19
to Z, Repo and Gerrit Discussion
On 11/09/2019 04:19, Z wrote:
> Hi
>     1. Lots of the 'Index-Interactive' status in 'gerrit show-queue'
> like the attached file which cause heavy load in server and then
> gerritUI hang.
> <snip>

The screenshot shows 8 tasks in the Index-Interactive queue, maybe you
can try reducing the number of threads used for indexing? Maybe you can
reduce the number of threads via the Gerrit configuration settings
index.threads (default 1 + number of CPUs / 2) and index.batchThreads
(default number of CPUs).

--
Antoine "hashar" Musso

Z

unread,
Sep 11, 2019, 9:23:24 AM9/11/19
to Repo and Gerrit Discussion
Thank you for your reply,Antoine.

I want to know what is doing and what is this triggerd action?

Thank you very much!
Reply all
Reply to author
Forward
0 new messages