We are running into out of memory situation when trying to check out a fairly large project (55k files) via "Check out as a folder into existing project", tried to bump up the max heap space to 2G but to no avail. A direct checkout works fine. Bug?
I checked through "Checkout As Folder" code, but there is no "memory hog" as far as I can see. So, the issue is related to either: SVN client library or real "Out of memory" case for your Eclipse instance. Despite you increased Java machine memory pool size up to 2Gb there is also one another memory related moment. So, please check following article and I hope it will help you:
This doesn't appear to be a perm-gen issue, for which, speaking from my prior experience, 1.6 Sun VM would produce a specific error message like "out of perm-gen space" which we do not see. I spent quite a bit of time trying different things and it actually appears that the problem is intermittent, but it occurs more often when checking out as a folder and it does occasionally occur during a straightforward checkout, as it did succeed and failed a couple of times in both scenarios. Eclipse's memory indicator stays around 40M when things work, and goes up to the max allowed heap size (approximately) when they don't. A complete stack trace is below. Can a native connector help in our case? Not sure if it matters but the IDE is running on Linux and we are using http to access the repo.
java.lang.OutOfMemoryError: Java heap space
at com.sun.org.apache.xerces.internal.util.XMLStringBuffer.appe nd(XMLStringBuffer.java:208)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerIm pl.refresh(XMLDocumentScannerImpl.java:1495)
at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.inv okeListeners(XMLEntityScanner.java:2047)
at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.pee kChar(XMLEntityScanner.java:463)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl$FragmentContentDriver.next(XMLDocumentFragmentSca nnerImpl.java:2655)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerIm pl.next(XMLDocumentScannerImpl.java:624)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScanner Impl.next(XMLNSDocumentScannerImpl.java:116)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java: 486)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(XML11Configuration.java:810)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(XML11Configuration.java:740)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(X MLParser.java:110)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .parse(AbstractSAXParser.java:1208)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSA XParser.parse(SAXParserImpl.java:525)
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.r eadData(HTTPConnection.java:746)
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.r eadData(HTTPConnection.java:711)
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPRequest.disp atch(HTTPRequest.java:215)
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.r equest(HTTPConnection.java:346)
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.r equest(HTTPConnection.java:274)
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.r equest(HTTPConnection.java:262)
at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.doRepor t(DAVConnection.java:258)
at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.runRepo rt(DAVRepository.java:1211)
at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.update( DAVRepository.java:1077)
at org.tmatesoft.svn.core.wc.SVNUpdateClient.update(SVNUpdateCl ient.java:453)
at org.tmatesoft.svn.core.wc.SVNUpdateClient.doCheckout(SVNUpda teClient.java:875)
at org.tmatesoft.svn.core.javahl.SVNClientImpl.checkout(SVNClie ntImpl.java:2052)
at org.polarion.team.svn.connector.svnkit.SVNKitConnector.check out(SVNKitConnector.java:198)
at org.eclipse.team.svn.core.extension.factory.ThreadNameModifi er.checkout(ThreadNameModifier.java:78)
at org.eclipse.team.svn.core.operation.file.CheckoutAsOperation .runImpl(CheckoutAsOperation.java:57)
at org.eclipse.team.svn.core.operation.AbstractActionOperation. run(AbstractActionOperation.java:81)
at org.eclipse.team.svn.core.utility.ProgressMonitorUtility.doT ask(ProgressMonitorUtility.java:104)
at org.eclipse.team.svn.core.operation.CompositeOperation.runIm pl(CompositeOperation.java:95)
at org.eclipse.team.svn.core.operation.AbstractActionOperation. run(AbstractActionOperation.java:81)