Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » Counting objects slow after Neon 3 update(After update to Neon 3 "Counting objects" is slow on some repos)
Counting objects slow after Neon 3 update [message #1759392] Tue, 11 April 2017 08:10 Go to next message
Johannes Berg is currently offline Johannes BergFriend
Messages: 3
Registered: April 2017
Junior Member
I recently updated to Neon 3 from Neon 2.

Current eclipse version:
Version: Neon.3 Release (4.6.3)
Build id: 20170314-1500

Egit version: 4.6.1.201703071140-r

It doesn't happen on all repos and it doesn't seem to be connected to the size of the repo either.

Normally a push goes quickly in a second or so, now it can take up to a minute, slowly "Counting objects".

I'm pushing to a gerrit server but I doubt that matters, from command line it goes quickly and only thing I updated was eclipse & egit.

Anyone else seen this?
Re: Counting objects slow after Neon 3 update [message #1759461 is a reply to message #1759392] Tue, 11 April 2017 20:56 Go to previous messageGo to next message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 932
Registered: July 2009
Senior Member
Can you check repository statistics :
- select the repository in git repositories view
- click "Properties > Statistics"
- if your repository has a lot of loose objects run garbage collection
- auto gc should run automatically if there are more than 6700 loose objects or 50 packs and you run fetch,
merge or rebase (if you didn't tweak gc config parameters)

You may also try to update to 4.7 which has a couple of gc improvements
https://projects.eclipse.org/projects/technology.jgit/releases/4.7.0
Re: Counting objects slow after Neon 3 update [message #1759476 is a reply to message #1759461] Tue, 11 April 2017 22:10 Go to previous messageGo to next message
Johannes Berg is currently offline Johannes BergFriend
Messages: 3
Registered: April 2017
Junior Member
The stats:
Number of objects, loose objects: 12, packed objects: 7973
Number of packfiles, loose objects: -, packed objects: 5
Number of refs, loose objects 5, packed objects 71
Space needed, loose objects 9.08 kB, packed objects 4.93MB

Running GC does not have any affect.

It's slow even if I don't have any changes and plainly does a push to upstream.


On the other hand this repo show no slowness whatsoever:

Number of objects, loose objects: 489, packed objects: 42673
Number of packfiles, loose objects: -, packed objects: 32
Number of refs, loose objects 26, packed objects 94
Space needed, loose objects 407.41 kB, packed objects 15.93 MB

Which is another repo from same gerrit server, checked out about at the same time so it's a bit weird.
Re: Counting objects slow after Neon 3 update [message #1759860 is a reply to message #1759476] Wed, 19 April 2017 08:19 Go to previous messageGo to next message
Johannes Berg is currently offline Johannes BergFriend
Messages: 3
Registered: April 2017
Junior Member
This seems UI related because when I press "Run in background" it finishes immediately.
Re: Counting objects slow after Neon 3 update [message #1760404 is a reply to message #1759392] Wed, 26 April 2017 16:47 Go to previous messageGo to next message
Hani ElHaffar is currently offline Hani ElHaffarFriend
Messages: 2
Registered: May 2013
Junior Member
I see this issue too. I upgraded to Neon 3 and now git pulls are slow. On the UI it shows "Counting Objects" and that is moving much slower than used to be the case. I upgraded to Egit version 4.7.0.201704051617-r but that did not help.
Re: Counting objects slow after Neon 3 update [message #1761099 is a reply to message #1759392] Sat, 06 May 2017 14:45 Go to previous messageGo to next message
Thomas Wolf is currently offline Thomas WolfFriend
Messages: 28
Registered: August 2016
Junior Member
https://bugs.eclipse.org/bugs/show_bug.cgi?id=516276
Re: Counting objects slow after Neon 3 update [message #1761151 is a reply to message #1761099] Mon, 08 May 2017 08:53 Go to previous message
Thomas Wolf is currently offline Thomas WolfFriend
Messages: 28
Registered: August 2016
Junior Member
This is fixed and will be included in EGit 4.7.1 (not yet available).

Until then, there are two options:

1. run the job in the background, or
2. update to EGit nightly http://download.eclipse.org/egit/updates-nightly/, which includes the fix as of EGit 4.8.0.201705080746.


Previous Topic: attaching mylin context to github issue
Next Topic:Eclipse error: An internal error occurred during: "Pulling Branch master
Goto Forum:
  


Current Time: Sat Jun 24 03:27:26 GMT 2017

Powered by FUDForum. Page generated in 0.05247 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software