Hi,

Yes I have tried setting -Xmx -Xms but then if the file being uploaded is
1Gb; I have to set this setting higher and then it takes that amount of
memory to transfer the file, I don't understand why a buffer was not used
for transferring with a Piped Stream. 

Transferring using putMethod(String path, File aFile) works but as I said;
no progress can be worked out from this.

Any other ideas?
Thanks
Clive




-----Original Message-----
From: J H [mailto:[EMAIL PROTECTED] 
Sent: 01 February 2005 11:43 PM
To: [email protected]
Subject: RE: OutOfMemoryError on putMethod

Have you tried setting your JVM memory settings?

-Xmx -Xms, etc...

>From: "Clive Borrageiro" <[EMAIL PROTECTED]>
>Reply-To: "Slide Users Mailing List" <[email protected]>
>To: "Slide Users Mailing List" <[email protected]>
>Subject: OutOfMemoryError on putMethod
>Date: Tue, 1 Feb 2005 17:24:41 +0200
>
>Hi,
>
>I am doing webDavResource.putMethod(path, pipedIn) with a PipedInputStream,
>but when I get to about 50MB of uploading the file
>I get a 'OutOfMemoryError: Java heap space'.
>
>The reason I need to use a stream is because I need to get progress of the
>upload process.
>Does anyone know if this is a bug or if there is another way I can 
>implement
>progress.
>
>I read that the reason for the OutOfMemoryError is because the
>"PutMethod.sendData(InputStream in)
>simply reads all the contents of the InputStream into memory and then 
>writes
>the contents as a
>large byte[] chunk" - quoted from the mailing list.
>
>Any help will be much appreciated!
>Thanks.
>Clive
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to