[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
downloading big files  XML
Forum Index -> Development
Author Message
heyl

Power User

Joined: 10/01/2008 09:41:55
Messages: 267
Location: Ettlingen
Offline

Hi Björn,

the file download fails (java heap error) with greater files (47MB).

Frauke
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5519
Offline

...yes, the file size is limited by memory. You need to limit the download and also upload side by specifying the max. size attribute.

Björn

Björn Müller, CaptainCasa GmbH
heyl

Power User

Joined: 10/01/2008 09:41:55
Messages: 267
Location: Ettlingen
Offline

But why is it limited?
Other applications don't have that kind of limitation. And 47MB is not really big!

If you mean the maxpostsize setting of Tomcat: I have set it to 0 (=unlimited)
And downloading the same file works with our other application (Casabac) which is running on the same Tomcat.

Frauke
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5519
Offline

...the file is kept in memory of the client until it is downloaded, that's the reason. The default memory of the client VM is 64 MB. With 47 MB and some garbage on top you are in a critical area.

It's the client's memory, not the Tomcat's memory that is the problem!

My recommendation: limit to 10MB (the max. size is in the download component).

Björn

Björn Müller, CaptainCasa GmbH
heyl

Power User

Joined: 10/01/2008 09:41:55
Messages: 267
Location: Ettlingen
Offline


Is there no other possibility? How do other appliations do that?
Everybody must have the same problem.
In the internet you can download huge files everywhere.
How come that our old Casabac application can do it, too?

Can't you split the download file into blocks? Is there no other way than keeping the file in the client memory as a whole?

Frauke

CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5519
Offline

In the Internet Browser you have dedicated DownloadManagers which run asynchronously to the browser processing.

The file download component receives the file content through the http repsponses it receives from the server. This has advantages (snychrounouse + simple integration into application), and disadvantages (limitation of file size).

This limitation is "fact" at the moment, if we like it or not...
It's our "hope" that the typical download sizes are below 10 MB and that this restriction is not too critical.

We could think about an explicit asynch download manager for big files in CaptainCasa as well, but this is a bigger issue, i.e. it's not somehing to be implemented by the way...

Björn




Björn Müller, CaptainCasa GmbH
heyl

Power User

Joined: 10/01/2008 09:41:55
Messages: 267
Location: Ettlingen
Offline

Ok, if you put this issue on your TODO list for future improvements (I think others will profit by it too) I will
be content with your answer so far....

Thanks
Frauke
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team