Bug 489409 - OutOfMemory trying to compare file from History view
Summary: OutOfMemory trying to compare file from History view
Status: NEW
Alias: None
Product: JGit
Classification: Technology
Component: JGit (show other bugs)
Version: 4.1.2   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-11 03:38 EST by Noopur Gupta CLA
Modified: 2016-03-11 19:15 EST (History)
2 users (show)

See Also:


Attachments
log file (28.18 KB, text/plain)
2016-03-11 03:38 EST, Noopur Gupta CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Noopur Gupta CLA 2016-03-11 03:38:07 EST
Created attachment 260242 [details]
log file

Version: Neon (4.6)
Build id: I20160301-1230

Eclipse Git Team Provider	4.1.2.201511141014	org.eclipse.egit.feature.group	Eclipse EGit

Java implementation of Git	4.1.2.201511140022	org.eclipse.jgit.feature.group	Eclipse JGit

I amended a commit and clicked on 'Commit' button in Git Staging view.
Then, double clicked on the changed file in History view and started getting OutOfMemory exceptions. After that Eclipse froze and had to be killed to restart.

See attached log file.
Comment 1 Andrey Loskutov CLA 2016-03-11 03:47:30 EST
Probably you could improve memory consumption by *not* using Team->Git->Virtual memory mapping option, if it is set. Otherwise can you please give a repo/commit id in question for reproducing it? How many memory your Eclipse had - default 1024MB or more/less?
Comment 2 Noopur Gupta CLA 2016-03-11 03:56:21 EST
(In reply to Andrey Loskutov from comment #1)
> Probably you could improve memory consumption by *not* using
> Team->Git->Virtual memory mapping option, if it is set. 

It is not set.

> Otherwise can you
> please give a repo/commit id in question for reproducing it? 

https://git.eclipse.org/r/#/c/68145/
I amended CompilationUnitEditor.java from patch set 2.
After restarting Eclipse and double clicking the file in History view, I can't reproduce it.

> How many memory
> your Eclipse had - default 1024MB or more/less?

It is default - 1024m.
Comment 3 Matthias Sohn CLA 2016-03-11 19:15:56 EST
- what is the result of
$ git count-objects -v
- what is the size of the jgit object cache (Preferences > Team > Git > Window Cache > Window cache limit) ?

next time if you hit this please create a heap dump and analyze it using the Eclipse Memory Analyzer, then we have a chance to identify what may have caused the problem