commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mario Ivankovits <>
Subject Re: commons vfs SFTP outofmemory
Date Tue, 07 Nov 2006 21:16:43 GMT
Hi Anjana!

> i am getting an outofmemory exception while trying to do VFS SFTP for
> a 20 mb file.
One way to workaround the problem with SFTP and large files is to add
the -Xmx256M (or appropriate) to your java start command to allow the
jvm to reserve more memory, but for sure, the OOM exception will come
back with larger files then.

> i tested this with a timer set to run every minute which invokes vfs
> ant and this worked for like first 10 mts and after that it stoped
> copying.
Hmmmm ... could you please paste a "full stack trace" [1] when vfs stop
copying, I assume it hangs at all, no?
That stack trace should give us a clue where it hangs.
Which version of JSCH do you use? Maybe upgrading to the latest version
will help.



To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message