You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Cindy Ballreich <ci...@ballreich.net> on 2003/06/11 18:30:52 UTC

[FileUpload] Speeding up uploads

This is slightly off-topic since it doesn't specifically refer to FileUpload, but I'm not finding info anywhere else so I might as well ask...

I've noticed that uploads using multipart/form-data encoding are a lot slower than other types of uploads (especially on large files). I've tested using org.apache.commons.fileupload, com.oreilly.servlet.multipart, and a perl cgi script. All three give the same results. The upload speeds seem to be about half that of an ftp upload of the same file on the same type of connection. Are there any tricks or techniques for speeding up multipart/form-data uploads of large files? 

Tomcat 4.1.24 with Apache 1.3.26 (mod_jk) and fileupload 1.0-rc1 on RedHat 7.3

Re: [FileUpload] Speeding up uploads

Posted by Rob Leland <rl...@apache.org>.
Cindy Ballreich wrote:

>This is slightly off-topic since it doesn't specifically refer to FileUpload, but I'm not finding info anywhere else so I might as well ask...
>
>I've noticed that uploads using multipart/form-data encoding are a lot slower than other types of uploads (especially on large files). I've tested using org.apache.commons.fileupload, com.oreilly.servlet.multipart, and a perl cgi script. All three give the same results. The upload speeds seem to be about half that of an ftp upload of the same file on the same type of connection. Are there any tricks or techniques for speeding up multipart/form-data uploads of large files? 
>

part of the overhead at least for Netscape is that it makes a copy of 
the file before it begining the upload.
So for a 650MB file that would typically take about 45 seconds on a 
sunfire blade. The files are also
encoded for a http transfer, unlike ftp that can transfer the file in 
binary mode.
This is not to say that there aren't still speed improvements that can 
be made to fileupload, just
that FTP is the gold standard.

-Rob

>
>Tomcat 4.1.24 with Apache 1.3.26 (mod_jk) and fileupload 1.0-rc1 on RedHat 7.3
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: commons-user-help@jakarta.apache.org
>
>
>
>  
>



Re: [FileUpload] Speeding up uploads

Posted by Andreas Probst <an...@gmx.net>.
I think it has to do with MIME. It blows binary files up to fit 
into the ASCII stream. I'm not sure about the ration, but I 
think it's about one fifth more.

On 11 Jun 2003 at 9:30, Cindy Ballreich wrote:

> 
> This is slightly off-topic since it doesn't specifically refer to
> FileUpload, but I'm not finding info anywhere else so I might as
> well ask...
> 
> I've noticed that uploads using multipart/form-data encoding are
> a lot slower than other types of uploads (especially on large
> files). I've tested using org.apache.commons.fileupload,
> com.oreilly.servlet.multipart, and a perl cgi script. All three
> give the same results. The upload speeds seem to be about half
> that of an ftp upload of the same file on the same type of
> connection. Are there any tricks or techniques for speeding up
> multipart/form-data uploads of large files? 
> 
> Tomcat 4.1.24 with Apache 1.3.26 (mod_jk) and fileupload 1.0-rc1
> on RedHat 7.3
> 
> -----------------------------------------------------------------
> ---- To unsubscribe, e-mail:
> commons-user-unsubscribe@jakarta.apache.org For additional
> commands, e-mail: commons-user-help@jakarta.apache.org
>