I've had this exact problem with Ant's FTP, SCP, and SSH; they're agonizingly slower. So I spawn a new shell or use Exec to the system, much faster.

Also I used to Ant-FTP from my Windows server to our Linux server which took a long time. So instead, I set up an FTP client through IIS on the Windows box and tell my ant script to ssh to the linux box and run the ftp script to get the files from the windows. More work but now the whole process to transfer a 100MB file takes 3 minutes vs. 20 minutes before. I'm not ruling out my network connections and they could easily be a factor.

----Original Message Follows----
From: Rakesh Patel <[EMAIL PROTECTED]>
Reply-To: "Ant Users List" <[email protected]>
To: Ant <[email protected]>
Subject: Help with ftp
Date: Wed, 12 Apr 2006 16:42:52 +0100
MIME-Version: 1.0
Received: from mail.apache.org ([209.237.227.199]) by bay0-mc10-f19.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 12 Apr 2006 08:42:45 -0700
Received: (qmail 76416 invoked by uid 500); 12 Apr 2006 15:42:40 -0000
Received: (qmail 76226 invoked by uid 99); 12 Apr 2006 15:42:40 -0000
Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Apr 2006 08:42:40 -0700 Received: pass (asf.osuosl.org: domain of [EMAIL PROTECTED] designates 64.233.182.185 as permitted sender) Received: from [64.233.182.185] (HELO nproxy.gmail.com) (64.233.182.185) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Apr 2006 08:42:39 -0700 Received: by nproxy.gmail.com with SMTP id b2so1082683nfe for <[email protected]>; Wed, 12 Apr 2006 08:42:18 -0700 (PDT) Received: by 10.48.47.20 with SMTP id u20mr1083819nfu; Wed, 12 Apr 2006 08:42:18 -0700 (PDT) Received: from ?172.22.20.56? ( [213.86.137.253]) by mx.gmail.com with ESMTP id q27sm66979nfc.2006.04.12.08.42.17; Wed, 12 Apr 2006 08:42:17 -0700 (PDT)
X-Message-Info: 6sSXyD95QpUEnwF7hAedoBJCTk6L0D/Tu/UM0nhdwfQ=
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:[EMAIL PROTECTED]>
List-Help: <mailto:[EMAIL PROTECTED]>
List-Post: <mailto:[email protected]>
List-Id: "Ant Users List" <user.ant.apache.org>
Delivered-To: mailing list [email protected]
X-ASF-Spam-Status: No, hits=1.3 required=10.0tests=RCVD_IN_BL_SPAMCOP_NET,SPF_PASS
X-Spam-Check-By: apache.org
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:user-agent:x-accept-language:mime-version:to:subject:content-type:content-transfer-encoding; b=hLM/bqg4OD7x8WyNzhtUHQJnOLUGVe6vT77RjTmSFCJHnmfZY/DnMitknOqNcWYCye0vA1BGlQFPaG/a4i+vA+4+v2tVAkOnukCL4nqEq1uK3sqqfeuDQTRI2VPLm+i+i0HTdD43HkN6o2hVIK4Xc/3n+yFF/L3tVl2XvHPMNQ8=
User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923)
X-Accept-Language: en-us, en
X-Virus-Checked: Checked by ClamAV on apache.org
Return-Path: [EMAIL PROTECTED]
X-OriginalArrivalTime: 12 Apr 2006 15:42:46.0545 (UTC) FILETIME=[BEEBC810:01C65E47]

Hi,

i am writing a ftp task using the common-net library as recommended. It does work but i am surpised at its performance.

I am uploading a 5mb file and it takes almost a minute. When i use a dedicated Windows ftp client (AbsoluteFTP) the transfer takes a quarter of the time.

Is there some configuration i need to do or is it a poor performer in general? Can i replace it with something else? Any suggestions?

Thanks

Rakesh

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

_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar – get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/


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

Reply via email to