• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Browser getting timeout during huge file upload

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am facing a problem while performing upload to the tune of 100MB and more!
I am using MVC Framework (similar to Struts), WAS 5.0 and IBM DB2.

Process of Upload: From the client PC, the file is stored in Application server temp directory and then stored in to the database.

Problem is as follows:
During upload of a huge file, the IE browser 6.0 gets timed out exactly one hour after the file is uploaded from the client PC to the application server's temp directory.

Not sure why this happens.

Solution tried:
--------------
We have tried to load a dummy JSP in an IFRAME in the Upload JSP, which hits the WebServer with a dummy request, after every 5 secs, thinking that some request from that browser window to the server will prevent the browser window from getting timed out.
But this does not work and browser gets timed out.

Can anyone help to resolve this problem?

Regards,
Shailesh.
[ February 27, 2006: Message edited by: Bear Bibeault ]
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Why don't you create an FTP upload instead.

Eric
 
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Sailesh,

I have used Struts to implement upload functionality the problems encountered were
1 when huge files being uploaded say >100MB ur JVM tends to throw OutOfMemoryException.

2 u need to go back to ur server side code where ur handling storage of file in the temporary place u look for optimal java coding to increase the file writing process (www.javaperformancetuning.com)


we can discuss further if u feel my inputs were helpful to u

regards
Satish Kumar
 
Shailesh Deshpande
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Eric,

We are in critical stage of the project and it would not be feasible to switch to FTP at this point in time.
With that constraint, do you have any suggestion for resolving the problem?

To resolve this problem, we are assuming that if there is a request sent to the server continuously after some time intervals, the browser will not get timed out. First of all is that assumption correct?

If you think that the problem can be resolved by following some other line of thinking, then please let me know.

Regards,
Shailesh.
 
reply
    Bookmark Topic Watch Topic
  • New Topic