Skip to main content



      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 04:10 Go to next message
Eclipse UserFriend
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 16:56 Go to previous messageGo to next message
Eclipse UserFriend
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 18:10 Go to previous messageGo to next message
Eclipse UserFriend
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 04:19 Go to previous messageGo to next message
Eclipse UserFriend
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 12:47 Go to previous messageGo to next message
Eclipse UserFriend
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 10:45 Go to previous messageGo to next message
Eclipse UserFriend
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 04:53 Go to previous message
Eclipse UserFriend
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:different status between JGit and console command "git status"
Next Topic:Commit brings up empty staging fields
Goto Forum:
  


Current Time: Sat Jul 12 14:05:10 EDT 2025

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

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

Back to the top