Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 43308 invoked from network); 6 Nov 2006 15:53:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Nov 2006 15:53:13 -0000 Received: (qmail 64047 invoked by uid 500); 6 Nov 2006 15:53:18 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 64000 invoked by uid 500); 6 Nov 2006 15:53:18 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 63989 invoked by uid 99); 6 Nov 2006 15:53:18 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Nov 2006 07:53:18 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [68.152.7.227] (HELO truenorth1.com) (68.152.7.227) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Nov 2006 07:53:01 -0800 Received: from [68.152.7.239] (unknown [68.152.7.239]) by truenorth1.com (Postfix) with ESMTP id 6935676118 for ; Mon, 6 Nov 2006 10:52:39 -0500 (EST) Mime-Version: 1.0 (Apple Message framework v752.2) To: Jakarta Commons Users List Message-Id: <9F2DE5D9-605D-4547-9820-4E494C2CA88A@truenorth1.com> Content-Type: multipart/alternative; boundary=Apple-Mail-9--162434595 From: Anjana Gopinath Subject: commons vfs SFTP outofmemory Date: Mon, 6 Nov 2006 10:52:39 -0500 X-Mailer: Apple Mail (2.752.2) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail-9--162434595 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Hi, i am getting an outofmemory exception while trying to do VFS SFTP for a 20 mb file. As suggested in one of the previous email in this mailing list, i modified the SftpFileObject doGetInputStream and doGetOutputStream and changed the channel.get(filename,outputStream) to inputStream = channel.get(filename) and samething for channel.put. This seem to have fixed the outofmemory issue, but its creating another issue. I use a timer to invoke the ant vfs copy task for copying files to a remote server via SFTP. 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. i am not sure what happened as i dont see any exception in the logs. When i reverted back to the orginal version of vfs.jar, this works but i get outofmemory. Does anyone have the issue with SFTP? it works perfectly for small files. But my app needs to handle big files also. Thanks for your help Thanks Anjana Gopinath --Apple-Mail-9--162434595--