Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 368585

Summary: Out of heap space with synchronization
Product: [Technology] EGit Reporter: Ian Bull <irbull>
Component: CoreAssignee: Project Inbox <egit.core-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: joel.schaal, matthias.sohn, robin
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Ian Bull CLA 2012-01-13 15:15:50 EST
I also got the following OOME when I tried to synchronize 

I have 200M allocated to my heap.

!MESSAGE An internal error occurred during: "Fetching changes before synchronization launch".
!STACK 0
java.lang.OutOfMemoryError: Java heap space
        at org.eclipse.jgit.storage.file.PackReverseIndex.<init>(PackReverseIndex.java:104)
        at org.eclipse.jgit.storage.file.PackFile.getReverseIdx(PackFile.java:1025)
        at org.eclipse.jgit.storage.file.PackFile.findObjectForOffset(PackFile.java:289)
        at org.eclipse.jgit.storage.file.LargePackedDeltaObject.getObjectId(LargePackedDeltaObject.java:263)
        at org.eclipse.jgit.storage.file.LargePackedDeltaObject.openStream(LargePackedDeltaObject.java:174)
        at org.eclipse.jgit.lib.ObjectLoader.getCachedBytes(ObjectLoader.java:187)
        at org.eclipse.jgit.revwalk.RevWalk.getCachedBytes(RevWalk.java:861)
        at org.eclipse.jgit.revwalk.RevWalk.parseNew(RevWalk.java:825)
        at org.eclipse.jgit.revwalk.RevWalk.parseAny(RevWalk.java:811)
        at org.eclipse.jgit.transport.FetchProcess.askForIsComplete(FetchProcess.java:324)
        at org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:150)
        at org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:113)
        at org.eclipse.jgit.transport.Transport.fetch(Transport.java:1062)
        at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:129)
        at org.eclipse.egit.core.op.FetchOperation.run(FetchOperation.java:128)
        at org.eclipse.egit.ui.internal.fetch.FetchOperationUI.execute(FetchOperationUI.java:99)
        at org.eclipse.egit.ui.internal.synchronize.SynchronizeFetchJob.run(SynchronizeFetchJob.java:74)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Comment 1 Matthias Sohn CLA 2012-12-06 19:00:09 EST
*** Bug 388780 has been marked as a duplicate of this bug. ***
Comment 2 Robin Stocker CLA 2013-05-03 11:51:17 EDT
Could you try to reproduce this with EGit 2.3.1? There was a memory use problem with the EGit synchronize code that was fixed there, see bug 396209.
Comment 3 Matthias Sohn CLA 2014-05-18 16:26:45 EDT

*** This bug has been marked as a duplicate of bug 329427 ***