You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Mohd Amin Mohd Din <am...@nc.com.my> on 2003/09/16 08:48:53 UTC

RE: Slow file upload?

Hmm, just checking, are you doing any processing other than just simply
storing the file.

-----Original Message-----
From: Bjørn T Johansen [mailto:btj@havleik.no] 
Sent: Tuesday, September 16, 2003 12:51 PM
To: Struts Users Mailing List
Subject: Re: Slow file upload?

On Tue, 2003-09-16 at 06:19, Robert Leland wrote:

> Bjørn T Johansen wrote:
> 
> >On Tue, 2003-09-16 at 04:12, Robert Leland wrote:
> >
> >  
> >
> >>Bjørn T Johansen wrote:
> >>
> >>    
> >>
> >>>I am testing file upload using Struts and FormFile but the upload
seems
> >>>really slow. Uploading a 1,5MB file takes about 15-20 sec. and I am
> >>>running both the server and the browser on the same PC. Is this
normal
> >>>or should the upload be faster?
> >>> 
> >>>
> >>>      
> >>>
> >>Your upload will be slower all on one machine as opposed to going
across 
> >>a fast LAN.
> >>However, that does seem slow. I have uploaded a 650MB file in about
7 
> >>minutes across a LAN.
> >>650MB/7 minutes  =~ 1.5 MB/sec.
> >>Are you using Strust 1.1 and the default fileupload implementation
which 
> >>is commons-fileupload ?
> >>What browser, How much free RAM, CPU etc..
> >>
> >>    
> >>
> >
> >Yes, I am using Struts 1.1 and the default upload in
commons-fileupload.
> >The hw I am running on is a 2.4GHz PC with 1GB memory, with at least
> >half of it free.. The browser I tried the upload with was Mozilla..
> >  
> >
> 
> What does your CPU utilization look like ?
> What does your (physical/virtual)  memory utilization look like, what
% 
> is available ?
> Is it high, low, which process is taking the most CPU/memory ?
> How many process are running in your JVM(s) and what are the JVM
virtual 
> memory settings at startup.
> Usually there is a  setting something like  -Xm256 for java.exe are
you 
> setting this ?
> Look at the docs for java.exe for the exact options, then try
increasing 
> say by 50% and see if
> it helps, or crashes your machine because windows doesn't have enough 
> Virtual memory to give to the
> JVM. Then you increase Windows virtual memory if needed.
> 
> Also note that if Mozilla is like Netscape then it makes a copy of the

> file before beginning sending it.
> The temp file is either under C:\temp or C:\Documents and 
> Settings\User\Local Settings\Temp.
> If it make the copy fairly quickly, less than 1 second, then look at
your

Well, I am running this on Linux and the load is almost 0, so it's not a
question of the load on my computer..
But I'll try increasing the memory given to the Java VM when I get home
tonight and also try another browser....


BTJ



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


RE: Slow file upload?

Posted by Bjørn T Johansen <bt...@havleik.no>.
Nope....

On Tue, 2003-09-16 at 08:48, Mohd Amin Mohd Din wrote:

> Hmm, just checking, are you doing any processing other than just simply
> storing the file.
> 
> -----Original Message-----
> From: Bjørn T Johansen [mailto:btj@havleik.no] 
> Sent: Tuesday, September 16, 2003 12:51 PM
> To: Struts Users Mailing List
> Subject: Re: Slow file upload?
> 
> On Tue, 2003-09-16 at 06:19, Robert Leland wrote:
> 
> > Bjørn T Johansen wrote:
> > 
> > >On Tue, 2003-09-16 at 04:12, Robert Leland wrote:
> > >
> > >  
> > >
> > >>Bjørn T Johansen wrote:
> > >>
> > >>    
> > >>
> > >>>I am testing file upload using Struts and FormFile but the upload
> seems
> > >>>really slow. Uploading a 1,5MB file takes about 15-20 sec. and I am
> > >>>running both the server and the browser on the same PC. Is this
> normal
> > >>>or should the upload be faster?
> > >>> 
> > >>>
> > >>>      
> > >>>
> > >>Your upload will be slower all on one machine as opposed to going
> across 
> > >>a fast LAN.
> > >>However, that does seem slow. I have uploaded a 650MB file in about
> 7 
> > >>minutes across a LAN.
> > >>650MB/7 minutes  =~ 1.5 MB/sec.
> > >>Are you using Strust 1.1 and the default fileupload implementation
> which 
> > >>is commons-fileupload ?
> > >>What browser, How much free RAM, CPU etc..
> > >>
> > >>    
> > >>
> > >
> > >Yes, I am using Struts 1.1 and the default upload in
> commons-fileupload.
> > >The hw I am running on is a 2.4GHz PC with 1GB memory, with at least
> > >half of it free.. The browser I tried the upload with was Mozilla..
> > >  
> > >
> > 
> > What does your CPU utilization look like ?
> > What does your (physical/virtual)  memory utilization look like, what
> % 
> > is available ?
> > Is it high, low, which process is taking the most CPU/memory ?
> > How many process are running in your JVM(s) and what are the JVM
> virtual 
> > memory settings at startup.
> > Usually there is a  setting something like  -Xm256 for java.exe are
> you 
> > setting this ?
> > Look at the docs for java.exe for the exact options, then try
> increasing 
> > say by 50% and see if
> > it helps, or crashes your machine because windows doesn't have enough 
> > Virtual memory to give to the
> > JVM. Then you increase Windows virtual memory if needed.
> > 
> > Also note that if Mozilla is like Netscape then it makes a copy of the
> 
> > file before beginning sending it.
> > The temp file is either under C:\temp or C:\Documents and 
> > Settings\User\Local Settings\Temp.
> > If it make the copy fairly quickly, less than 1 second, then look at
> your
> 
> Well, I am running this on Linux and the load is almost 0, so it's not a
> question of the load on my computer..
> But I'll try increasing the memory given to the Java VM when I get home
> tonight and also try another browser....
> 
> 
> BTJ
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org