[Subclipse-dev] Memory leak in the method CmdLineClientAdapter.streamToByteArray()
From: Stefan Bicher <stefan.bicher_at_data-experts.de>
Date: Fri, 29 Aug 2008 11:46:49 +0200
Hi Subclipse-Developers,
I have no idea, if it´s a problem which is concerning you, but I
java.lang.OutOfMemoryError: Java heap space
I found this problem, when I tried to checkout a single 6.9-MB-File from
A workaround would be, to use a ByteArrayOutputStream instead of writing
private static byte[] streamToByteArray(InputStream stream) throws
ByteArrayOutputStream out = new ByteArrayOutputStream();
return out.toByteArray();
By the way: I wondered, why the InputStream, which is delivered from the
public InputStream getContent(SVNUrl arg0, SVNRevision arg1) throws
try {
Well, but after all: Thanks for your great work on the svn-Client.
Bye.
Stefan
---------------------------------------------------------------------
|
This is an archived mail posted to the Subclipse Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.