My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 1504: Push to a specific Repo on Gerrit fails on unpack and causes memory leak in JVM
2 people starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


Sign in to add a comment
 
Reported by domale...@gmail.com, Aug 2, 2012
************************************************************
***** NOTE: THIS BUG TRACKER IS FOR GERRIT CODE REVIEW *****
***** DO NOT SUBMIT BUGS FOR CHROME, ANDROID, INTERNAL *****
***** ISSUES WITH YOUR COMPANY'S GERRIT SETUP, ETC.    *****
***** THOSE ISSUE BELONG IN DIFFERENT ISSUE TRACKERS!  *****
************************************************************

Affected Version:2.1.8

We currently have a repo on our gerrit instance that is causing the JVM Heap to be exhausted.  The error the user gets is the following when doing a push:

>> remote: Resolving deltas:  24% (763/3179)
>> remote: Resolving deltas:  25% (795/3179)
>> remote: Resolving deltas:  26% (836/3179)
>> remote: Resolving deltas:  26% (840/3179)
>>
>> error: unpack failed: error Out of memory loading unknown object
>> fatal: Unpack error, check server log To 
>> ssh://username@server:29418/ipos_git_lite_gerrit_pilot-sfi
>>     ! [remote rejected] master ->   swfeature_int.git-master (n/a
>> (unpacker error))
>> error: failed to push some refs to
>> 'ssh://username@server:29418/ipos_git_lite_gerrit_pilot-sfi'

For security reason I have put username@server purposely.  Also, we cannot upgrade as we have an integration specifically with 2.1.8.  What we see is that the user tries the push, it fails due to this error above.  After each try, we see the JVM heap increase and the CPUs on the server start to increase in usage.  Even though we do a gitgc, the jobs that failed are removed but the heap and CPU are still maxed out.  What I would like to know is how to find out what is causing this in this specific repo and how to correct it.

We have a 16gb heap allocated to Gerrit, and we typically hover arounf 3gb daily, we have never maxed it out.

BR,
Dom

Sign in to add a comment

Powered by Google Project Hosting