Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 368585 - Out of heap space with synchronization
Summary: Out of heap space with synchronization
Status: CLOSED DUPLICATE of bug 329427
Alias: None
Product: EGit
Classification: Technology
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-13 15:15 EST by Ian Bull CLA
Modified: 2014-05-18 16:26 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***