Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 48010 invoked from network); 7 Nov 2006 21:17:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Nov 2006 21:17:17 -0000 Received: (qmail 19413 invoked by uid 500); 7 Nov 2006 21:17:22 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 19352 invoked by uid 500); 7 Nov 2006 21:17:21 -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 19341 invoked by uid 99); 7 Nov 2006 21:17:21 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Nov 2006 13:17:21 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of mario@ops.co.at designates 194.152.182.4 as permitted sender) Received: from [194.152.182.4] (HELO smtp.ops.co.at) (194.152.182.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Nov 2006 13:17:08 -0800 Received: by smtp.ops.co.at (Postfix, from userid 65534) id 546DD23C0EC; Tue, 7 Nov 2006 22:16:46 +0100 (CET) Received: from [172.26.2.112] (unknown [172.26.1.2]) by smtp.ops.co.at (Postfix) with ESMTP id F1BD823C0DF for ; Tue, 7 Nov 2006 22:16:43 +0100 (CET) Message-ID: <4550F7BB.4060807@ops.co.at> Date: Tue, 07 Nov 2006 22:16:43 +0100 From: Mario Ivankovits User-Agent: Thunderbird 1.5.0.7 (X11/20060911) MIME-Version: 1.0 To: Jakarta Commons Users List Subject: Re: commons vfs SFTP outofmemory References: <9F2DE5D9-605D-4547-9820-4E494C2CA88A@truenorth1.com> In-Reply-To: <9F2DE5D9-605D-4547-9820-4E494C2CA88A@truenorth1.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11) on smtp.ops.co.at X-Spam-Level: X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, hits=-13.3 required=6.0 tests=AWL,BAYES_00,LOC_SPMSIG_2, NO_RDNS,RATWR10_MESSID,SARE_TOCC_USER autolearn=no version=2.64 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