Size limit for xforms/xml instances?

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

Size limit for xforms/xml instances?

K.Linke
Hi,

I'm wondering if there is any known limit to the size of the xforms document and the xml instance document Orbeon can handle. I'm using a generated xforms document that is about 750 kBytes and an enlarging xml instance document. Everything works fine, but if the xml instance reaches about 150 kBytes I'm getting the following error:

2008-08-06 13:12:04,432 INFO  ProcessorService  - /xforms-renderer - Received request
2008-08-06 13:12:22,710 ERROR ProcessorService  - Exception at line 122, column 68 of oxf:/ops/pfc/xforms-epilogue.xpl (reading processor output: name='document', id='xhtml-data')
java.lang.OutOfMemoryError: Java heap space
        at org.orbeon.oxf.xml.SAXStore.addToCharBuffer(SAXStore.java:424)
        at org.orbeon.oxf.xml.SAXStore.characters(SAXStore.java:269)
        at org.orbeon.oxf.xml.ForwardingContentHandler.characters(ForwardingContentHandler.java:39)
        at org.orbeon.oxf.xml.ElementFilterContentHandler.characters(ElementFilterContentHandler.java:75)
        at org.orbeon.oxf.xml.ForwardingContentHandler.characters(ForwardingContentHandler.java:39)
        at org.orbeon.oxf.xml.DeferredContentHandlerImpl.characters(DeferredContentHandlerImpl.java:56)
        at org.orbeon.oxf.xml.ForwardingContentHandler.characters(ForwardingContentHandler.java:39)
        at org.orbeon.oxf.xforms.processor.handlers.OutputInterceptor.flushCharacters(OutputInterceptor.java:75)
        at org.orbeon.oxf.xforms.processor.handlers.OutputInterceptor.endElement(OutputInterceptor.java:56)
        at org.orbeon.oxf.xml.ForwardingContentHandler.endElement(ForwardingContentHandler.java:52)
        at org.orbeon.oxf.xml.ElementFilterContentHandler.endElement(ElementFilterContentHandler.java:54)
        at org.orbeon.oxf.xml.ForwardingContentHandler.endElement(ForwardingContentHandler.java:52)
        at org.orbeon.oxf.xml.DeferredContentHandlerImpl.endElement(DeferredContentHandlerImpl.java:65)
        at org.orbeon.oxf.xml.ForwardingContentHandler.endElement(ForwardingContentHandler.java:52)
        at org.orbeon.oxf.xforms.processor.handlers.OutputInterceptor.endElement(OutputInterceptor.java:57)
        at org.orbeon.oxf.xml.ForwardingContentHandler.endElement(ForwardingContentHandler.java:52)
        at org.orbeon.oxf.xml.ElementFilterContentHandler.endElement(ElementFilterContentHandler.java:54)
        at org.orbeon.oxf.xml.ForwardingContentHandler.endElement(ForwardingContentHandler.java:52)
        at org.orbeon.oxf.xml.DeferredContentHandlerImpl.endElement(DeferredContentHandlerImpl.java:65)
        at org.orbeon.oxf.xml.ForwardingContentHandler.endElement(ForwardingContentHandler.java:52)
        at org.orbeon.oxf.xforms.processor.handlers.OutputInterceptor.endElement(OutputInterceptor.java:57)
        at org.orbeon.oxf.xml.ForwardingContentHandler.endElement(ForwardingContentHandler.java:52)
        at org.orbeon.oxf.xml.ElementFilterContentHandler.endElement(ElementFilterContentHandler.java:54)
        at org.orbeon.oxf.xml.ForwardingContentHandler.endElement(ForwardingContentHandler.java:52)
        at org.orbeon.oxf.xml.DeferredContentHandlerImpl.endElement(DeferredContentHandlerImpl.java:65)
        at org.orbeon.oxf.xml.ForwardingContentHandler.endElement(ForwardingContentHandler.java:52)
        at org.orbeon.oxf.xforms.processor.handlers.HandlerBase.endElement(HandlerBase.java:114)
        at org.orbeon.oxf.xml.ForwardingContentHandler.endElement(ForwardingContentHandler.java:52)
        at org.orbeon.oxf.xml.ElementHandlerController.endElement(ElementHandlerController.java:198)
        at org.orbeon.oxf.xml.SAXStore.replay(SAXStore.java:201)
        at org.orbeon.oxf.xml.ElementHandlerController.repeatBody(ElementHandlerController.java:211)
        at org.orbeon.oxf.xforms.processor.handlers.XFormsRepeatHandler.start(XFormsRepeatHandler.java:108)
2008-08-06 13:12:22,710 INFO  ProcessorService  - /xforms-renderer - Timing: 18293 - Cache hits for cache.main: 18, fault: 35, adds: 31, expirations: 0, success rate: 33%
2008-08-06 13:12:22,710 INFO  ProcessorService  - /xforms-renderer - Received request
2008-08-06 13:12:23,554 INFO  ProcessorService  - /xforms-renderer - Timing: 844 - Cache hits for cache.main: 13, fault: 21, adds: 23, expirations: 0, success rate: 38%

I'm using Orbeon Forms 3.6.0.200712061930 as separate deployment on a Tomcat 5.5 with 128 MBytes heap space on my local test system. I tried to increase the heap space up to 1024 MBytes, but that doesn't help. Any ideas?

Kevin Linke
Reply | Threaded
Open this post in threaded view
|

Re: Size limit for xforms/xml instances?

Hank Ratzesberger

There are some defined limits in resources/config/properties.xml
such as max-upload-size, however, your problem appears to be the
Java runtime.  Take a look at the recommendations for heap and
stack when you start your server:

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

Cheers,
Hank

On Aug 6, 2008, at 4:32 AM, K.Linke wrote:

>
> Hi,
>
> I'm wondering if there is any known limit to the size of the xforms  
> document
> and the xml instance document Orbeon can handle. I'm using a generated
> xforms document that is about 750 kBytes and an enlarging xml instance
> document. Everything works fine, but if the xml instance reaches  
> about 150
> kBytes I'm getting the following error:
>
> 2008-08-06 13:12:04,432 INFO  ProcessorService  - /xforms-renderer -
> Received request
> 2008-08-06 13:12:22,710 ERROR ProcessorService  - Exception at line  
> 122,
> column 68 of oxf:/ops/pfc/xforms-epilogue.xpl (reading processor  
> output:
> name='document', id='xhtml-data')
> java.lang.OutOfMemoryError: Java heap space
> at org.orbeon.oxf.xml.SAXStore.addToCharBuffer(SAXStore.java:424)
> at org.orbeon.oxf.xml.SAXStore.characters(SAXStore.java:269)
> at
> org.orbeon.oxf.xml.ForwardingContentHandler.characters
> (ForwardingContentHandler.java:39)
> at
> org.orbeon.oxf.xml.ElementFilterContentHandler.characters
> (ElementFilterContentHandler.java:75)
> at
> org.orbeon.oxf.xml.ForwardingContentHandler.characters
> (ForwardingContentHandler.java:39)
> at
> org.orbeon.oxf.xml.DeferredContentHandlerImpl.characters
> (DeferredContentHandlerImpl.java:56)
> at
> org.orbeon.oxf.xml.ForwardingContentHandler.characters
> (ForwardingContentHandler.java:39)
> at
> org.orbeon.oxf.xforms.processor.handlers.OutputInterceptor.flushCharac
> ters(OutputInterceptor.java:75)
> at
> org.orbeon.oxf.xforms.processor.handlers.OutputInterceptor.endElement(
> OutputInterceptor.java:56)
> at
> org.orbeon.oxf.xml.ForwardingContentHandler.endElement
> (ForwardingContentHandler.java:52)
> at
> org.orbeon.oxf.xml.ElementFilterContentHandler.endElement
> (ElementFilterContentHandler.java:54)
> at
> org.orbeon.oxf.xml.ForwardingContentHandler.endElement
> (ForwardingContentHandler.java:52)
> at
> org.orbeon.oxf.xml.DeferredContentHandlerImpl.endElement
> (DeferredContentHandlerImpl.java:65)
> at
> org.orbeon.oxf.xml.ForwardingContentHandler.endElement
> (ForwardingContentHandler.java:52)
> at
> org.orbeon.oxf.xforms.processor.handlers.OutputInterceptor.endElement(
> OutputInterceptor.java:57)
> at
> org.orbeon.oxf.xml.ForwardingContentHandler.endElement
> (ForwardingContentHandler.java:52)
> at
> org.orbeon.oxf.xml.ElementFilterContentHandler.endElement
> (ElementFilterContentHandler.java:54)
> at
> org.orbeon.oxf.xml.ForwardingContentHandler.endElement
> (ForwardingContentHandler.java:52)
> at
> org.orbeon.oxf.xml.DeferredContentHandlerImpl.endElement
> (DeferredContentHandlerImpl.java:65)
> at
> org.orbeon.oxf.xml.ForwardingContentHandler.endElement
> (ForwardingContentHandler.java:52)
> at
> org.orbeon.oxf.xforms.processor.handlers.OutputInterceptor.endElement(
> OutputInterceptor.java:57)
> at
> org.orbeon.oxf.xml.ForwardingContentHandler.endElement
> (ForwardingContentHandler.java:52)
> at
> org.orbeon.oxf.xml.ElementFilterContentHandler.endElement
> (ElementFilterContentHandler.java:54)
> at
> org.orbeon.oxf.xml.ForwardingContentHandler.endElement
> (ForwardingContentHandler.java:52)
> at
> org.orbeon.oxf.xml.DeferredContentHandlerImpl.endElement
> (DeferredContentHandlerImpl.java:65)
> at
> org.orbeon.oxf.xml.ForwardingContentHandler.endElement
> (ForwardingContentHandler.java:52)
> at
> org.orbeon.oxf.xforms.processor.handlers.HandlerBase.endElement
> (HandlerBase.java:114)
> at
> org.orbeon.oxf.xml.ForwardingContentHandler.endElement
> (ForwardingContentHandler.java:52)
> at
> org.orbeon.oxf.xml.ElementHandlerController.endElement
> (ElementHandlerController.java:198)
> at org.orbeon.oxf.xml.SAXStore.replay(SAXStore.java:201)
> at
> org.orbeon.oxf.xml.ElementHandlerController.repeatBody
> (ElementHandlerController.java:211)
> at
> org.orbeon.oxf.xforms.processor.handlers.XFormsRepeatHandler.start
> (XFormsRepeatHandler.java:108)
> 2008-08-06 13:12:22,710 INFO  ProcessorService  - /xforms-renderer  
> - Timing:
> 18293 - Cache hits for cache.main: 18, fault: 35, adds: 31,  
> expirations: 0,
> success rate: 33%
> 2008-08-06 13:12:22,710 INFO  ProcessorService  - /xforms-renderer -
> Received request
> 2008-08-06 13:12:23,554 INFO  ProcessorService  - /xforms-renderer  
> - Timing:
> 844 - Cache hits for cache.main: 13, fault: 21, adds: 23,  
> expirations: 0,
> success rate: 38%
>
> I'm using Orbeon Forms 3.6.0.200712061930 as separate deployment on  
> a Tomcat
> 5.5 with 128 MBytes heap space on my local test system. I tried to  
> increase
> the heap space up to 1024 MBytes, but that doesn't help. Any ideas?
>
> Kevin Linke
> --
> View this message in context: http://www.nabble.com/Size-limit-for- 
> xforms-xml-instances--tp18849308p18849308.html
> Sent from the ObjectWeb 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
Hank Ratzesberger
NEES@UCSB
Institute for Crustal Studies,
University of California, Santa Barbara
805-893-8042







--
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
Reply | Threaded
Open this post in threaded view
|

Re: Size limit for xforms/xml instances?

Erik Bruchez
Administrator
In reply to this post by K.Linke
How large is your Java heap? Set it to 256 MB or 512 MB.

-Erik

On Aug 6, 2008, at 4:32 AM, K.Linke wrote:

>
> Hi,
>
> I'm wondering if there is any known limit to the size of the xforms  
> document
> and the xml instance document Orbeon can handle. I'm using a generated
> xforms document that is about 750 kBytes and an enlarging xml instance
> document. Everything works fine, but if the xml instance reaches  
> about 150
> kBytes I'm getting the following error:
>
> 2008-08-06 13:12:04,432 INFO  ProcessorService  - /xforms-renderer -
> Received request
> 2008-08-06 13:12:22,710 ERROR ProcessorService  - Exception at line  
> 122,
> column 68 of oxf:/ops/pfc/xforms-epilogue.xpl (reading processor  
> output:
> name='document', id='xhtml-data')
> java.lang.OutOfMemoryError: Java heap space
> at org.orbeon.oxf.xml.SAXStore.addToCharBuffer(SAXStore.java:424)
> at org.orbeon.oxf.xml.SAXStore.characters(SAXStore.java:269)
> at
> org
> .orbeon
> .oxf
> .xml
> .ForwardingContentHandler.characters(ForwardingContentHandler.java:39)
> at
> org
> .orbeon
> .oxf
> .xml
> .ElementFilterContentHandler
> .characters(ElementFilterContentHandler.java:75)
> at
> org
> .orbeon
> .oxf
> .xml
> .ForwardingContentHandler.characters(ForwardingContentHandler.java:39)
> at
> org
> .orbeon
> .oxf
> .xml
> .DeferredContentHandlerImpl
> .characters(DeferredContentHandlerImpl.java:56)
> at
> org
> .orbeon
> .oxf
> .xml
> .ForwardingContentHandler.characters(ForwardingContentHandler.java:39)
> at
> org
> .orbeon
> .oxf
> .xforms
> .processor
> .handlers.OutputInterceptor.flushCharacters(OutputInterceptor.java:75)
> at
> org
> .orbeon
> .oxf
> .xforms
> .processor
> .handlers.OutputInterceptor.endElement(OutputInterceptor.java:56)
> at
> org
> .orbeon
> .oxf
> .xml
> .ForwardingContentHandler.endElement(ForwardingContentHandler.java:52)
> at
> org
> .orbeon
> .oxf
> .xml
> .ElementFilterContentHandler
> .endElement(ElementFilterContentHandler.java:54)
> at
> org
> .orbeon
> .oxf
> .xml
> .ForwardingContentHandler.endElement(ForwardingContentHandler.java:52)
> at
> org
> .orbeon
> .oxf
> .xml
> .DeferredContentHandlerImpl
> .endElement(DeferredContentHandlerImpl.java:65)
> at
> org
> .orbeon
> .oxf
> .xml
> .ForwardingContentHandler.endElement(ForwardingContentHandler.java:52)
> at
> org
> .orbeon
> .oxf
> .xforms
> .processor
> .handlers.OutputInterceptor.endElement(OutputInterceptor.java:57)
> at
> org
> .orbeon
> .oxf
> .xml
> .ForwardingContentHandler.endElement(ForwardingContentHandler.java:52)
> at
> org
> .orbeon
> .oxf
> .xml
> .ElementFilterContentHandler
> .endElement(ElementFilterContentHandler.java:54)
> at
> org
> .orbeon
> .oxf
> .xml
> .ForwardingContentHandler.endElement(ForwardingContentHandler.java:52)
> at
> org
> .orbeon
> .oxf
> .xml
> .DeferredContentHandlerImpl
> .endElement(DeferredContentHandlerImpl.java:65)
> at
> org
> .orbeon
> .oxf
> .xml
> .ForwardingContentHandler.endElement(ForwardingContentHandler.java:52)
> at
> org
> .orbeon
> .oxf
> .xforms
> .processor
> .handlers.OutputInterceptor.endElement(OutputInterceptor.java:57)
> at
> org
> .orbeon
> .oxf
> .xml
> .ForwardingContentHandler.endElement(ForwardingContentHandler.java:52)
> at
> org
> .orbeon
> .oxf
> .xml
> .ElementFilterContentHandler
> .endElement(ElementFilterContentHandler.java:54)
> at
> org
> .orbeon
> .oxf
> .xml
> .ForwardingContentHandler.endElement(ForwardingContentHandler.java:52)
> at
> org
> .orbeon
> .oxf
> .xml
> .DeferredContentHandlerImpl
> .endElement(DeferredContentHandlerImpl.java:65)
> at
> org
> .orbeon
> .oxf
> .xml
> .ForwardingContentHandler.endElement(ForwardingContentHandler.java:52)
> at
> org
> .orbeon
> .oxf
> .xforms.processor.handlers.HandlerBase.endElement(HandlerBase.java:
> 114)
> at
> org
> .orbeon
> .oxf
> .xml
> .ForwardingContentHandler.endElement(ForwardingContentHandler.java:52)
> at
> org
> .orbeon
> .oxf
> .xml
> .ElementHandlerController.endElement(ElementHandlerController.java:
> 198)
> at org.orbeon.oxf.xml.SAXStore.replay(SAXStore.java:201)
> at
> org
> .orbeon
> .oxf
> .xml
> .ElementHandlerController.repeatBody(ElementHandlerController.java:
> 211)
> at
> org
> .orbeon
> .oxf
> .xforms
> .processor
> .handlers.XFormsRepeatHandler.start(XFormsRepeatHandler.java:108)
> 2008-08-06 13:12:22,710 INFO  ProcessorService  - /xforms-renderer -  
> Timing:
> 18293 - Cache hits for cache.main: 18, fault: 35, adds: 31,  
> expirations: 0,
> success rate: 33%
> 2008-08-06 13:12:22,710 INFO  ProcessorService  - /xforms-renderer -
> Received request
> 2008-08-06 13:12:23,554 INFO  ProcessorService  - /xforms-renderer -  
> Timing:
> 844 - Cache hits for cache.main: 13, fault: 21, adds: 23,  
> expirations: 0,
> success rate: 38%
>
> I'm using Orbeon Forms 3.6.0.200712061930 as separate deployment on  
> a Tomcat
> 5.5 with 128 MBytes heap space on my local test system. I tried to  
> increase
> the heap space up to 1024 MBytes, but that doesn't help. Any ideas?
>
> Kevin Linke
> --
> View this message in context: http://www.nabble.com/Size-limit-for-xforms-xml-instances--tp18849308p18849308.html
> Sent from the ObjectWeb 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
--
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
OW2 mailing lists service home page: http://www.ow2.org/wws