commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mario Ivankovits <ma...@ops.co.at>
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.


Ciao,
Mario


[1] http://java.sun.com/developer/technicalArticles/Programming/Stacktrace/


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message