Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Suggestions on optimizing the EGit on Eclipse

Tags:

git

eclipse

egit

I am using EGit on fairly large and complex set of Java projects (more than a million line of code) and a decade worth of history.
Here I am facing serious performance issues with EGit, as even small one line change in the Java file causes EGit to re-index for couple of minutes which is slowing the entire system. Indeed, even git command line is bit slow as "git status" takes around a minute from command line, but I can live with this performance issue, & EGit commit dialog slowness issue (link). As I can use git command line to commit, and update, but I don't want to tradeoff my Eclipse performance as that does affect productivity.

The following is what I have tried by doing Googling and asking people around:

  1. Added all classes folder in the exclude file. Indeed tried putting the classes folderin .gitignore as well for time being.
  2. Gave Egit enough time to finish indexing by keeping the machine ON for a day.
  3. Git staging, history and all other Eclipses views are closed in the Eclipse workbench while doing development.
  4. Did "git gc" - It made difference on the command line performance, but hardly any difference for EGit.
  5. Unchecked Label decorator for Git. Preferences -> General -> Appearance -> Label Decorations.
  6. Removed the cygwin from path, as read somewhere in the forum that JGit might be using cygwin for path conversion.
  7. Increased window cache from 10 to 70m in Eclipse (Preferences -> Team -> Git -> window cache).

PS: Git repository is pointing to svn remote repository. Also, I am git newbie so might have made some mistake in setup, so please feel free to point out anything.

Here is my system information, I don't have much fancy hardware specs, but some RAM to spare (8GB).

  • git-gui version 0.16 GITGUID
  • git version: 1.7.10.mysysgit.1
  • JDK 1.6_025
  • Eclipse version: 3.7.2 Java EE version with parameters -Xms1536m -Xmx1536m
  • EGit: 1.3.0.201202151440
  • Windows 7 Processor: Core 2 Duo 2.6GHZ
like image 236
Hemant Avatar asked Apr 21 '12 01:04

Hemant


Video Answer


1 Answers

This is probably not quite your problem but this page comes up on google with respect to egit performance. Once source of performance problems is untracked (indexed?) files. Make certain that you don't have large numbers of untracked files in the local directory tree as this seriously impacts egit performance. I removed a director with 10K + files and commit performance went from taking 1+ minute to open the commit dialog to taking a couple of seconds.

like image 111
Brett Sutton Avatar answered Sep 19 '22 13:09

Brett Sutton