Java heap space error

32 views
Skip to first unread message

Rupesh Sadawarte

unread,
May 29, 2026, 4:46:52 AM (3 days ago) May 29
to Repo and Gerrit Discussion
Hi,

    I am upgrading Gerrit to version gerrit-3.6.8 but getting these error during reindexing. 

     My JAVA_HEAPLIMIT is set to 20g . Git repo have 500GB old data and its always failed after 50% changes. Do I need to assign more heap limit space? how can I troubleshoot the reindexing errors? 
    Thanks.

reindexing logs: 
Reindexing changes: changes: 45% (16403/36106), failed: 1066, project-slices: 70% (739/1045), Slicing projects: 100% (3857/3857)
(\)ERROR com.google.gerrit.index.SiteIndexer : Failed to index project gallo/platform/vendor/qcom/msm8909-la-1-1_amss_oem_milestone-major (0/1)
java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: Java heap space

Nuno Costa

unread,
May 29, 2026, 5:38:40 AM (3 days ago) May 29
to Repo and Gerrit Discussion
Hi,

If you are doing offline reindex, you can run the command with -Xms=xx and -Xmx=xxx to increase the heap during reindex.

Matthias Sohn

unread,
May 29, 2026, 6:34:54 AM (3 days ago) May 29
to Rupesh Sadawarte, Repo and Gerrit Discussion
On Fri, May 29, 2026 at 10:46 AM Rupesh Sadawarte <rupes...@gmail.com> wrote:
Hi,

    I am upgrading Gerrit to version gerrit-3.6.8 but getting these error during reindexing. 

3.6.8 is old and EOL. Hence you should consider upgrading to a supported release (at least 3.12).
There are many performance improvements also regarding reindexing in newer versions.
 
     My JAVA_HEAPLIMIT is set to 20g . Git repo have 500GB old data and its always failed after 50% changes. Do I need to assign more heap limit space? how can I troubleshoot the reindexing errors? 

Try to increase the max heap size, it's not unusual to use 100 GB heap size for running large gerrit instances.
 
    Thanks.

reindexing logs: 
Reindexing changes: changes: 45% (16403/36106), failed: 1066, project-slices: 70% (739/1045), Slicing projects: 100% (3857/3857)
(\)ERROR com.google.gerrit.index.SiteIndexer : Failed to index project gallo/platform/vendor/qcom/msm8909-la-1-1_amss_oem_milestone-major (0/1)
java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: Java heap space

--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/repo-discuss/8bcac7d8-354e-4d41-9196-2dfb5cf3449an%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages