Re: Large File upload throws "java.lang.OutOfMemoryError: Java heap space"

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: Large File upload throws "java.lang.OutOfMemoryError: Java heap space"

Erik Bruchez
Administrator
Sandra,

The upload itself should not take much memory: it should be streamed
to a temp file, and then referenced as a local file URL, since you are
using xs:anyURI.

But possibly the exception could occur later, when the file is sent out.

What do you do with these uploaded files?

-Erik

On Wed, Nov 28, 2012 at 1:08 PM, sandraokeeffe <[hidden email]> wrote:

> The file that this is happening with is 386MB.  We have a requirement to
> support file uploads of 500MB.
>
> On my dev machine, I have the following tomcat parameters set:
>
> -Xms1024m -Xmx1024m -Xss1024k -XX:MaxPermSize=256m -XX:NewSize=256m
>
> In my form, I have the bind set as follow for the element that holds my file
> information.
>
> <xforms:bind nodeset="/filedata" type="xs:anyURI"/>
>
> <xforms:bind nodeset="filedata" type="xs:anyURI"/>
>
> Yet I still get an out of memory exception.  Is there something I am missing
> here?
>
> Any help/information is appreciated.
>
> Thanks in advance,
> Sandra
>
>
>
>
>
> --
> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Large-File-upload-throws-java-lang-OutOfMemoryError-Java-heap-space-tp4656030.html
> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.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
> OW2 mailing lists service home page: http://www.ow2.org/wws
>


--
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
OW2 mailing lists service home page: http://www.ow2.org/wws