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

Reply via email to