Project

General

Profile

Bug #2149

gerrit server excessive CPU usage

Added by Szilárd Páll about 3 years ago. Updated almost 3 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Gerrit
Target version:
-
Affected version - extra info:
Affected version:
Close

Description

The gerrit server regularly shows 100% CPU utilization and >6 load avarage. These high resource usages have been observed during operations like pushing up a change have been taking up to 30 seconds tonight and simple operations like a rebase of a smallish change has been also taking >10 s.

Is there something that can be done to debug the issue? Have there been any changes made recently?

History

#1 Updated by Roland Schulz about 3 years ago

Do we have gc running regularly? I can't see it either in cron nor in the gerrit config. I just ran it manual once. But if it isn't already somewhere in cron it should be enabled in the gerrit config (https://gerrit-review.googlesource.com/Documentation/config-gerrit.html#gc)

#2 Updated by Szilárd Páll almost 3 years ago

Set up weekly gc (every Sat 5am, CET/CEST). Do you think the "garbage" would explain the high CPU usage?

#3 Updated by Roland Schulz almost 3 years ago

It does effect performance. Whether it is the primary cause, I don't know. Did it improve since I ran gc manually?

#4 Updated by Szilárd Páll almost 3 years ago

Roland Schulz wrote:

It does effect performance. Whether it is the primary cause, I don't know. Did it improve since I ran gc manually?

Recent push commands were pretty much instant, so it might have helped. At the same the machine has been rebooted since, so that could have contributed too.

Also available in: Atom PDF