Re: problem with Duration of the upload

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: problem with Duration of the upload

Alessandro Vernet
Administrator
Tima,

On 7/12/07, Tima <[hidden email]> wrote:
> I'm using Xforms to deal with big file 500 KB min , the end user of the
> xforms is not supposed to have a lot of memory so is there any solution to
> this problem to spare time when we upload files (replace instance),or we
> have to change the dom parser with a sax parser ? and is it possible to do
> it??

What matters more is the memory you have on the server (where your
servlet container is running), rather than on the client (where the
browser is running). Are you seeing any issue related to memory usage
right now?

Alex
--
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
http://www.orbeon.com/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: problem with Duration of the upload

Erik Bruchez
Administrator
Tima,

This is likely not an issue of SAX vs. DOM. Orbeon Forms uses SAX
whenever possible, but if you store the entire content of the uploaded
is stored in an XML document as base64, this will take some space. The
alternative is to bind an xs:anyURI type to the element into which you
are storing the uploaded file, so that the file remains external to the
XML. See the XForms Upload Control example for details.

Also, make sure that your VM doesn't have the default maximum heap size
set too low. See this part of the doc for more details:

   http://www.orbeon.com/ops/doc/integration-tuning#jvm

-Erik

Tima wrote:

> hi Alex
>  yes we are using a server with around 512 RAM, and we are getting an error
> [Heap memory...] while trying to load a 500 KB file. we are considering
> using a SAX parser instead of DOM. Is this possible with Orbeon?
>
> thanks !
> Tima
>
>
> Alessandro Vernet wrote:
>> Tima,
>>
>> On 7/12/07, Tima <[hidden email]> wrote:
>>> I'm using Xforms to deal with big file 500 KB min , the end user of the
>>> xforms is not supposed to have a lot of memory so is there any solution
>>> to
>>> this problem to spare time when we upload files (replace instance),or we
>>> have to change the dom parser with a sax parser ? and is it possible to
>>> do
>>> it??
>> What matters more is the memory you have on the server (where your
>> servlet container is running), rather than on the client (where the
>> browser is running). Are you seeing any issue related to memory usage
>> right now?
>>
>> Alex
>> --
>> Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
>> http://www.orbeon.com/
>>
>>
>>
>> --
>> You receive this message as a subscriber of the [hidden email]
>> mailing list.
>> To unsubscribe: mailto:[hidden email]
>> For general help: mailto:[hidden email]?subject=help
>> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>>
>>
>

--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws