Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » Facing Performance issue with JGIT add command with big repository
Facing Performance issue with JGIT add command with big repository [message #1783291] Sun, 11 March 2018 04:16 Go to next message
Vinit Gupta is currently offline Vinit GuptaFriend
Messages: 2
Registered: March 2018
Junior Member
String absoluteLocalGitPath = "c:\\localGitRepo\\.git"
FileRepositoryBuilder repositoryBuilder = new FileRepositoryBuilder();
repositoryBuilder.setMustExist(true);
repositoryBuilder.setGitDir(new File(absoluteLocalGitPath));
repository = repositoryBuilder.build();
git = new Git(repository);

AddCommand addCommand = git.add();
addCommand.addFilepattern("folder1/obj10001.obj");
addCommand.call();
Re: Facing Performance issue with JGIT add command with big repository [message #1784050 is a reply to message #1783291] Wed, 21 March 2018 22:49 Go to previous messageGo to next message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 1268
Registered: July 2009
Senior Member
Did you ever run gc on this large repository ?
How many loose objects does it have ?
Did you store large binary files in the repository ?
How did you configure maximum heap size ?
Did you configure the WindowCache size ?

$ git count-objects -v
Re: Facing Performance issue with JGIT add command with big repository [message #1784265 is a reply to message #1784050] Sun, 25 March 2018 19:58 Go to previous messageGo to next message
Vinit Gupta is currently offline Vinit GuptaFriend
Messages: 2
Registered: March 2018
Junior Member

Below is outcome of "git count-objects -v"

count: 11208
size: 60706
in-pack: 0
packs: 0
size-pack: 0
prune-packable: 0
garbage: 0
size-garbage: 0
Re: Facing Performance issue with JGIT add command with big repository [message #1784645 is a reply to message #1784265] Sat, 31 March 2018 22:37 Go to previous message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 1268
Registered: July 2009
Senior Member
run gc and try to add more files ?
Previous Topic:After 4.7.3 upgrade, Eclipse thinks my git config is in a different place
Next Topic:Garbage collection throwing errors
Goto Forum:
  


Current Time: Thu Apr 25 09:35:49 GMT 2024

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

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

Back to the top