Garbage collection is schedule every hour.What can I do to avoid this ?
--
--
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.
For more options, visit https://groups.google.com/d/optout.
Top posting is making it hard to follow this thread...
On Thursday, May 03, 2018 09:29:02 AM Tech Advantage wrote:
> I've restarted gerrit at 08:16 this morning.
> At 18:10, I have around 1250 entries in lsof.
Is this something you consider bad or normal?
> Most of them are objects/pack folders.
As in directories being held open, or do you mean files under
those directories?
Have you JavaMelody installed? Can you share the "Open files" graph?
Luca.
To unsubscribe, email repo-disc...@googlegroups.com
Have you JavaMelody installed? Can you share the "Open files" graph?
To unsubscribe, email repo-disc...@googlegroups.com
To unsubscribe, email repo-discuss...@googlegroups.com
Le jeudi 3 mai 2018 18:31:32 UTC+2, lucamilanesio a écrit :Have you JavaMelody installed? Can you share the "Open files" graph?
It adds a hundred of handle every hour.
Oh yes, that graph is very worrying :-ODo you have any cronjob? The growth seems very regular and exactly scheduled every hour !
On 4 May 2018, at 07:53, Sven Selberg <sven.s...@axis.com> wrote:Just stating the obvious:* 50 repositories* 1 GC/hour* 100 new file handles / hourWhich would indicate 2 new file handles for each GC (or other hourly action).
P.S. Can you confirm the *exact* version you are running?
To unsubscribe, email repo-disc...@googlegroups.com
On 4 May 2018, at 07:53, Sven Selberg <sven.s...@axis.com> wrote:Just stating the obvious:* 50 repositories* 1 GC/hour* 100 new file handles / hourWhich would indicate 2 new file handles for each GC (or other hourly action).
Yeah, that sounds like a bug to me :-)To be honest with you, we don't use the Gerrit's GC schedule and never recommend our users to configure it :-(We should instead write a "GC Plugin" that allows to tailor the GC schedule needs to the repository incoming traffic ;-)... but that's a completely different story, let's focus on the bug now.
Is this a production server with traffic or is it a staging server with hardly no traffic?Which file system?
To unsubscribe, email repo-disc...@googlegroups.com
Uh oh. Just had a look at our production 2.15.1 instance:
[root@git site]# lsof | grep objects/pack | grep DIR | wc -l
41800
We’re not using Gerrit.sh but java -jar gerrit.war directly in a docker container.
[gc]
aggressive = true
startTime = 23:00
interval = 1 day
the container running Gerrit is “Up 9 days” – that’s not too much… I would love to not be required to restart Gerrit every week xD
Cheers,
Markus
On 4 May 2018, at 08:39, Duft Markus <Marku...@ssi-schaefer.com> wrote:Uh oh. Just had a look at our production 2.15.1 instance:[root@git site]# lsof | grep objects/pack | grep DIR | wc -l41800
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+unsubscribe@googlegroups.com.
Le vendredi 4 mai 2018 08:56:30 UTC+2, lucamilanesio a écrit :On 4 May 2018, at 07:53, Sven Selberg <sven.s...@axis.com> wrote:Just stating the obvious:* 50 repositories* 1 GC/hour* 100 new file handles / hourWhich would indicate 2 new file handles for each GC (or other hourly action).More precisely, as I told MartinFick in an answer to a previous message, file handles are directory handles pointing at objects/pack directories.
gerrit/git/sandbox.git/objects/pack
Yeah, that sounds like a bug to me :-)To be honest with you, we don't use the Gerrit's GC schedule and never recommend our users to configure it :-(We should instead write a "GC Plugin" that allows to tailor the GC schedule needs to the repository incoming traffic ;-)... but that's a completely different story, let's focus on the bug now.here's an informational message on startup about gc schedule not beeing set.
[2018-05-04 09:10:31,799] [main] INFO com.google.gerrit.server.git.GarbageCollectionRunner : Ignoring missing gc schedule configuration
I take it as an invitation to set a gc schedule.Is this a production server with traffic or is it a staging server with hardly no traffic?Which file system?This is a production server with low trafic : around 30 users, less than a hundred changes a day, mostly connecting over http behind a proxy-https (the reverse proxy is not hosted on the same machine).
On Friday, May 4, 2018 at 9:25:36 AM UTC+2, Tech Advantage wrote:
Le vendredi 4 mai 2018 08:56:30 UTC+2, lucamilanesio a écrit :On 4 May 2018, at 07:53, Sven Selberg <sven.s...@axis.com> wrote:Just stating the obvious:* 50 repositories* 1 GC/hour* 100 new file handles / hourWhich would indicate 2 new file handles for each GC (or other hourly action).More precisely, as I told MartinFick in an answer to a previous message, file handles are directory handles pointing at objects/pack directories.
gerrit/git/sandbox.git/objects/pack
Yeah, that sounds like a bug to me :-)To be honest with you, we don't use the Gerrit's GC schedule and never recommend our users to configure it :-(We should instead write a "GC Plugin" that allows to tailor the GC schedule needs to the repository incoming traffic ;-)... but that's a completely different story, let's focus on the bug now.here's an informational message on startup about gc schedule not beeing set.
[2018-05-04 09:10:31,799] [main] INFO com.google.gerrit.server.git.GarbageCollectionRunner : Ignoring missing gc schedule configuration
I take it as an invitation to set a gc schedule.Is this a production server with traffic or is it a staging server with hardly no traffic?Which file system?This is a production server with low trafic : around 30 users, less than a hundred changes a day, mostly connecting over http behind a proxy-https (the reverse proxy is not hosted on the same machine).Not a solution, but with that kind of load it should be enough with a GC once a week. That way you should at least mitigate the symptoms and you wouldn't have to restart so often until it's solved.
Garbage collection is schedule every hour.What can I do to avoid this ?
Thanks,IG
Whilst the bug is being worked, I've disabled GC in the Gerrit config. For an interim workaround, is there any danger involved in performing GC using git via the command line, rather than via Gerrit?
Until this issue is resolved use git gc from the cron job.Note, that even without this issue, some gerrit site adminsprefer git gc over gerrit gc to take the whole garbagecollection out of the JVM process.
--
I recommend using either 4.11.0.201803080745-r or 5.0.0.201806050710-rc3. I also recommend filing bugs for any troubles you run into at https://www.eclipse.org/jgit/support/. :)
THIS MESSAGE AND ANY ATTACHMENTS ARE CONFIDENTIAL, PROPRIETARY AND MAY BE PRIVILEGED
If this message was misdirected, WANdisco, Inc. and its subsidiaries, ("WANdisco") does not waive any confidentiality or privilege. If you are not the intended recipient, please notify us immediately and destroy the message without disclosing its contents to anyone. Any distribution, use or copying of this email or the information it contains by other than an intended recipient is unauthorized. The views and opinions expressed in this email message are the author's own and may not reflect the views and opinions of WANdisco, unless the author is authorized by WANdisco to express such views or opinions on its behalf. All email sent to or from this address is subject to electronic storage and review by WANdisco. Although WANdisco operates anti-virus programs, it does not accept responsibility for any damage whatsoever caused by viruses being passed.
> Which version(s) of Gerrit would this be compatible with? 2.11? 2.13? 2.?If you're running jgit gc as a standalone tool, then it's compatible with all versions of Gerrit.
This is a JGit issue, found and fixed by Dave Borowitz in v4.11 (see [1]).I will try to upgrade JGit to v4.11 on Gerrit v2.15.x and let's see if the situation is improved :-)
On Tuesday, June 5, 2018 at 10:07:49 PM UTC+1, David Ostrovsky wrote:
On Tuesday, June 5, 2018 at 9:34:23 PM UTC+2, Marcelo Ávila de Oliveira wrote:Em qua, 30 de mai de 2018 às 07:27, David Hayes <davi...@gmail.com> escreveu:Whilst the bug is being worked, I've disabled GC in the Gerrit config. For an interim workaround, is there any danger involved in performing GC using git via the command line, rather than via Gerrit?I did the same... anyone has an answer for that question? It's better to execute "git gc" or simply do nothing?Until this issue is resolved use git gc from the cron job.Note, that even without this issue, some gerrit site adminsprefer git gc over gerrit gc to take the whole garbagecollection out of the JVM process.
On Sat, Jun 9, 2018 at 6:39 AM lucamilanesio <luca.mi...@gmail.com> wrote:This is a JGit issue, found and fixed by Dave Borowitz in v4.11 (see [1]).I will try to upgrade JGit to v4.11 on Gerrit v2.15.x and let's see if the situation is improved :-)I've cherry-picked that commit back to stable-4.9 on jgit:If this does fix the problem, maybe we can upgrade gerrit stable-2.15 to use a new snapshot built off jgit stable-4.9 to avoid upgrading all the way to 4.11.
On Sat, Jun 9, 2018 at 6:39 AM lucamilanesio <luca.mi...@gmail.com> wrote:This is a JGit issue, found and fixed by Dave Borowitz in v4.11 (see [1]).I will try to upgrade JGit to v4.11 on Gerrit v2.15.x and let's see if the situation is improved :-)I've cherry-picked that commit back to stable-4.9 on jgit:If this does fix the problem, maybe we can upgrade gerrit stable-2.15 to use a new snapshot built off jgit stable-4.9 to avoid upgrading all the way to 4.11.
Shall we release Gerrit v2.15.3?
it is working now after restarted the gerrit instance, so should be a caching issue?
On Tuesday, June 19, 2018 at 2:08:05 PM UTC+8, lucamilanesio wrote:Have you run a git Fick in the repo?
Sent from my iPhoneit is working now after restarted the gerrit instance, so should be a caching issue?Yes
On Tuesday, June 19, 2018 at 3:10:02 PM UTC+8, lucamilanesio wrote:Sent from my iPhoneit is working now after restarted the gerrit instance, so should be a caching issue?Yesso how to avoid it? we haven't seen this issue in version 2.14.4 using internal gc.
On Tue, Jun 19, 2018 at 4:17 PM Makson Lee <cdle...@gmail.com> wrote:
On Tuesday, June 19, 2018 at 3:10:02 PM UTC+8, lucamilanesio wrote:Sent from my iPhoneit is working now after restarted the gerrit instance, so should be a caching issue?Yesso how to avoid it? we haven't seen this issue in version 2.14.4 using internal gc.Can you open a new issue for this? It's not related to the issue in this topic.
Affected Version: 2.14.10 Before starting gerrit, $lsof | wc -l 891 After restarting gerrit, $lsof | wc -l 49495 I looked all the open files, they are all related to "tmp" directory. 29130 15991906 /u01/gerrit/gerrit_site/tmp/gerrit_8626170549382955020_app/asm-tree-5.1.jar ┤ 43309 15991866 /u01/gerrit/gerrit_site/tmp/gerrit_8626170549382955020_app/asm-util-5.1.jar ┤ 1565588 15991874 /u01/gerrit/gerrit_site/tmp/gerrit_8626170549382955020_app/auto-value-1.4.jar ┤ 176285 15991944 /u01/gerrit/gerrit_site/tmp/gerrit_8626170549382955020_app/automaton-1.11-8.jar ┤ 287786 15991921 /u01/gerrit/gerrit_site/tmp/gerrit_8626170549382955020_app/bcpg-jdk15on-1.56.jar ┤ 685403 15991840 /u01/gerrit/gerrit_site/tmp/gerrit_8626170549382955020_app/bcpkix-jdk15on-1.56.jar ┤ 8076 15991875 /u01/gerrit/gerrit_site/tmp/gerrit_8626170549382955020_app/blame-cache-0.2-1.jar ┤
Any insight should help.
Thanks,
Xin