Out of Memory Error

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

Out of Memory Error

Markku Laine
Hi,


Today, when I was trying out the latest versions of Orbeon Forms I ran
into java.lang.OutOfMemoryError. This has never happened to me before.

Here is what happened/I did:
  * Downloaded both OF 3.7.0beta1.200808260135 and the latest NB version
  * Normally I run OF in separate deployment mode but due to the
bug below I had to integrate my web application into OF:
http://forge.objectweb.org/tracker/index.php?func=detail&aid=310890&group_id=168&atid=350207
  * Changed OPS XForms Filter mapping's url pattern to *.xforms
  * Created a web page (~100kB) containing XHTML+XForms
  * Requested the web page several times. After 20 reqeusts, response times
started to increase and at 30 requests OF threw me an error (enclosed a
screenshot):

-----------------------------
2008-10-07 17:49:01,319   ERROR   org.orbeon.oxf.pipeline.InitUtils:110
- Exception with no location data
java.lang.OutOfMemoryError: Java heap space
  at
java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:95)
  at
java.io.ObjectOutputStream$BlockDataOutputStream.drain(ObjectOutputStream.java:1685)
  at
java.io.ObjectOutputStream$BlockDataOutputStream.writeBytes(ObjectOutputStream.java:1793)
  at
java.io.ObjectOutputStream$BlockDataOutputStream.writeUTF(ObjectOutputStream.java:1976)
  at
java.io.ObjectOutputStream$BlockDataOutputStream.writeUTF(ObjectOutputStream.java:1815)
  at
java.io.ObjectOutputStream.writeUTF(ObjectOutputStream.java:816)
  at org.orbeon.oxf.xml.SAXStore.writeExternal(SAXStore.java:534)
  at
org.orbeon.oxf.xforms.XFormsUtils.encodeXML(XFormsUtils.java:158)
  at
org.orbeon.oxf.xforms.XFormsStaticState.getEncodedStaticState(XFormsStaticState.java:559)
  at
org.orbeon.oxf.xforms.processor.XFormsToXHTML.createCacheContainingDocument(XFormsToXHTML.java:333)
  at
org.orbeon.oxf.xforms.processor.XFormsToXHTML.access$200(XFormsToXHTML.java:50)
  at
org.orbeon.oxf.xforms.processor.XFormsToXHTML$2.read(XFormsToXHTML.java:152)
  at
org.orbeon.oxf.processor.ProcessorImpl.readCacheInputAsObject(ProcessorImpl.java:453)
  at
org.orbeon.oxf.xforms.processor.XFormsToXHTML.doIt(XFormsToXHTML.java:121)
  at
org.orbeon.oxf.xforms.processor.XFormsToXHTML.access$000(XFormsToXHTML.java:50)
  at
org.orbeon.oxf.xforms.processor.XFormsToXHTML$1.readImpl(XFormsToXHTML.java:80)
  at
org.orbeon.oxf.processor.ProcessorImpl$6.read(ProcessorImpl.java:995)
  at
org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1178)
  at
org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:350)
  at
org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:355)
  at
org.orbeon.oxf.processor.xinclude.XIncludeProcessor.access$100(XIncludeProcessor.java:41)
  at
org.orbeon.oxf.processor.xinclude.XIncludeProcessor$2.read(XIncludeProcessor.java:85)
  at
org.orbeon.oxf.processor.ProcessorImpl.readCacheInputAsObject(ProcessorImpl.java:453)
  at
org.orbeon.oxf.processor.xinclude.XIncludeProcessor.access$200(XIncludeProcessor.java:41)
  at
org.orbeon.oxf.processor.xinclude.XIncludeProcessor$1.readImpl(XIncludeProcessor.java:79)
  at
org.orbeon.oxf.processor.ProcessorImpl$6.read(ProcessorImpl.java:995)
  at
org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1178)
  at
org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:350)
  at
org.orbeon.oxf.processor.pipeline.PipelineProcessor.access$000(PipelineProcessor.java:62)
  at
org.orbeon.oxf.processor.pipeline.PipelineProcessor$2.run(PipelineProcessor.java:92)
  at
org.orbeon.oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl.java:519)
  at
org.orbeon.oxf.processor.pipeline.PipelineProcessor.access$100(PipelineProcessor.java:62)
------------------------------------


Like I said this has never happened to me before. I even tested my web
application and the web page using OF 3.6.0.200712181809 (both in
integrated and in separate deployment mode). No problems at all nor no
signs of increased response times after 50 requests.

I am using OF as it is i.e. haven't done any performance tuning.

Has somebody else ran into the same problem with the recent versions of
Orbeon Forms? I am happy to give more information about the error if
needed.

Regards


-Markku Laine

--
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_-_outofmemory.jpg (496K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Out of Memory Error

Einar Moos
Markku,

.::: Markku :::. wrote
Today, when I was trying out the latest versions of Orbeon Forms I ran
into java.lang.OutOfMemoryError. This has never happened to me before.

>>It happened frequently during our development --

Like I said this has never happened to me before. I even tested my web
application and the web page using OF 3.6.0.200712181809 (both in
integrated and in separate deployment mode). No problems at all nor no
signs of increased response times after 50 requests.

>>that seems to depend on the memory of the VS and/or Tomcat.

I am using OF as it is i.e. haven't done any performance tuning.

Has somebody else ran into the same problem with the recent versions of
Orbeon Forms? I am happy to give more information about the error if
needed.

>>We deployed orbeon20081006 that is running requests quite well. I noticed also that with each version tested since 2007 some modifications in the coding,  need to be done, notably xpath expressions  :)

-- einar
Reply | Threaded
Open this post in threaded view
|

Re: Out of Memory Error

Erik Bruchez
Administrator
In reply to this post by Markku Laine
What's your Java heap size? Make sure you have at least 256 MB.

-Erik

On Oct 7, 2008, at 9:06 AM, .::: Markku :::. wrote:

> Hi,
>
>
> Today, when I was trying out the latest versions of Orbeon Forms I  
> ran into java.lang.OutOfMemoryError. This has never happened to me  
> before.
>
> Here is what happened/I did:
> * Downloaded both OF 3.7.0beta1.200808260135 and the latest NB version
> * Normally I run OF in separate deployment mode but due to the bug  
> below I had to integrate my web application into OF:
> http://forge.objectweb.org/tracker/index.php?func=detail&aid=310890&group_id=168&atid=350207
> * Changed OPS XForms Filter mapping's url pattern to *.xforms
> * Created a web page (~100kB) containing XHTML+XForms
> * Requested the web page several times. After 20 reqeusts, response  
> times started to increase and at 30 requests OF threw me an error  
> (enclosed a screenshot):
>
> -----------------------------
> 2008-10-07 17:49:01,319   ERROR   org.orbeon.oxf.pipeline.InitUtils:
> 110 - Exception with no location data
> java.lang.OutOfMemoryError: Java heap space
> at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:95)
> at java.io.ObjectOutputStream
> $BlockDataOutputStream.drain(ObjectOutputStream.java:1685)
> at java.io.ObjectOutputStream
> $BlockDataOutputStream.writeBytes(ObjectOutputStream.java:1793)
> at java.io.ObjectOutputStream
> $BlockDataOutputStream.writeUTF(ObjectOutputStream.java:1976)
> at java.io.ObjectOutputStream
> $BlockDataOutputStream.writeUTF(ObjectOutputStream.java:1815)
> at java.io.ObjectOutputStream.writeUTF(ObjectOutputStream.java:816)
> at org.orbeon.oxf.xml.SAXStore.writeExternal(SAXStore.java:534)
> at org.orbeon.oxf.xforms.XFormsUtils.encodeXML(XFormsUtils.java:158)
> at  
> org
> .orbeon
> .oxf
> .xforms
> .XFormsStaticState.getEncodedStaticState(XFormsStaticState.java:559)
> at  
> org
> .orbeon
> .oxf
> .xforms
> .processor
> .XFormsToXHTML.createCacheContainingDocument(XFormsToXHTML.java:333)
> at org.orbeon.oxf.xforms.processor.XFormsToXHTML.access
> $200(XFormsToXHTML.java:50)
> at org.orbeon.oxf.xforms.processor.XFormsToXHTML
> $2.read(XFormsToXHTML.java:152)
> at  
> org
> .orbeon
> .oxf
> .processor.ProcessorImpl.readCacheInputAsObject(ProcessorImpl.java:
> 453)
> at  
> org
> .orbeon.oxf.xforms.processor.XFormsToXHTML.doIt(XFormsToXHTML.java:
> 121)
> at org.orbeon.oxf.xforms.processor.XFormsToXHTML.access
> $000(XFormsToXHTML.java:50)
> at org.orbeon.oxf.xforms.processor.XFormsToXHTML
> $1.readImpl(XFormsToXHTML.java:80)
> at org.orbeon.oxf.processor.ProcessorImpl$6.read(ProcessorImpl.java:
> 995)
> at org.orbeon.oxf.processor.ProcessorImpl
> $ProcessorOutputImpl.read(ProcessorImpl.java:1178)
> at  
> org
> .orbeon
> .oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:350)
> at  
> org
> .orbeon
> .oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:355)
> at org.orbeon.oxf.processor.xinclude.XIncludeProcessor.access
> $100(XIncludeProcessor.java:41)
> at org.orbeon.oxf.processor.xinclude.XIncludeProcessor
> $2.read(XIncludeProcessor.java:85)
> at  
> org
> .orbeon
> .oxf
> .processor.ProcessorImpl.readCacheInputAsObject(ProcessorImpl.java:
> 453)
> at org.orbeon.oxf.processor.xinclude.XIncludeProcessor.access
> $200(XIncludeProcessor.java:41)
> at org.orbeon.oxf.processor.xinclude.XIncludeProcessor
> $1.readImpl(XIncludeProcessor.java:79)
> at org.orbeon.oxf.processor.ProcessorImpl$6.read(ProcessorImpl.java:
> 995)
> at org.orbeon.oxf.processor.ProcessorImpl
> $ProcessorOutputImpl.read(ProcessorImpl.java:1178)
> at  
> org
> .orbeon
> .oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:350)
> at org.orbeon.oxf.processor.pipeline.PipelineProcessor.access
> $000(PipelineProcessor.java:62)
> at org.orbeon.oxf.processor.pipeline.PipelineProcessor
> $2.run(PipelineProcessor.java:92)
> at  
> org
> .orbeon
> .oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl.java:519)
> at org.orbeon.oxf.processor.pipeline.PipelineProcessor.access
> $100(PipelineProcessor.java:62)
> ------------------------------------
>
>
> Like I said this has never happened to me before. I even tested my  
> web application and the web page using OF 3.6.0.200712181809 (both  
> in integrated and in separate deployment mode). No problems at all  
> nor no signs of increased response times after 50 requests.
>
> I am using OF as it is i.e. haven't done any performance tuning.
>
> Has somebody else ran into the same problem with the recent versions  
> of Orbeon Forms? I am happy to give more information about the error  
> if needed.
>
> Regards
>
>
> -Markku Laine<orbeon_-_outofmemory.jpg>
> --
> 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
Reply | Threaded
Open this post in threaded view
|

Re: Re: Out of Memory Error

Markku Laine
Hi Erik,


I am using Eclipse 3.4.0 and running web apps on Tomcat via Eclipse. I
have the following settings in my eclipse.ini file:
---------------- 8< ---------------------
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256M
-framework
plugins\org.eclipse.osgi_3.4.0.v20080605-1900.jar
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m
----------------- 8< ----------------


So I guess my Java heap size (max) is 512MB. Or is there another way to
check my Java heap size?

What puzzles me is that I am not facing any problems with memory when
using an older version of Orbeon Forms (3.6.0.200812181809).

Regards


-Markku Laine

On Tue, 7 Oct 2008, Erik Bruchez wrote:

> What's your Java heap size? Make sure you have at least 256 MB.
>
> -Erik
>
> On Oct 7, 2008, at 9:06 AM, .::: Markku :::. wrote:
>
>> Hi,
>>
>>
>> Today, when I was trying out the latest versions of Orbeon Forms I ran into
>> java.lang.OutOfMemoryError. This has never happened to me before.
>>
>> Here is what happened/I did:
>> * Downloaded both OF 3.7.0beta1.200808260135 and the latest NB version
>> * Normally I run OF in separate deployment mode but due to the bug below I
>> had to integrate my web application into OF:
>> http://forge.objectweb.org/tracker/index.php?func=detail&aid=310890&group_id=168&atid=350207
>> * Changed OPS XForms Filter mapping's url pattern to *.xforms
>> * Created a web page (~100kB) containing XHTML+XForms
>> * Requested the web page several times. After 20 reqeusts, response times
>> started to increase and at 30 requests OF threw me an error (enclosed a
>> screenshot):
>>
>> -----------------------------
>> 2008-10-07 17:49:01,319   ERROR   org.orbeon.oxf.pipeline.InitUtils:110 -
>> Exception with no location data
>> java.lang.OutOfMemoryError: Java heap space
>>  at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:95)
>>  at
>>  java.io.ObjectOutputStream$BlockDataOutputStream.drain(ObjectOutputStream.java:1685)
>>  at
>>  java.io.ObjectOutputStream$BlockDataOutputStream.writeBytes(ObjectOutputStream.java:1793)
>>  at
>>  java.io.ObjectOutputStream$BlockDataOutputStream.writeUTF(ObjectOutputStream.java:1976)
>>  at
>>  java.io.ObjectOutputStream$BlockDataOutputStream.writeUTF(ObjectOutputStream.java:1815)
>>  at java.io.ObjectOutputStream.writeUTF(ObjectOutputStream.java:816)
>>  at org.orbeon.oxf.xml.SAXStore.writeExternal(SAXStore.java:534)
>>  at org.orbeon.oxf.xforms.XFormsUtils.encodeXML(XFormsUtils.java:158)
>>  at
>>  org.orbeon.oxf.xforms.XFormsStaticState.getEncodedStaticState(XFormsStaticState.java:559)
>>  at
>>  org.orbeon.oxf.xforms.processor.XFormsToXHTML.createCacheContainingDocument(XFormsToXHTML.java:333)
>>  at
>>  org.orbeon.oxf.xforms.processor.XFormsToXHTML.access$200(XFormsToXHTML.java:50)
>>  at
>>  org.orbeon.oxf.xforms.processor.XFormsToXHTML$2.read(XFormsToXHTML.java:152)
>>  at
>>  org.orbeon.oxf.processor.ProcessorImpl.readCacheInputAsObject(ProcessorImpl.java:453)
>>  at
>>  org.orbeon.oxf.xforms.processor.XFormsToXHTML.doIt(XFormsToXHTML.java:121)
>>  at
>>  org.orbeon.oxf.xforms.processor.XFormsToXHTML.access$000(XFormsToXHTML.java:50)
>>  at
>>  org.orbeon.oxf.xforms.processor.XFormsToXHTML$1.readImpl(XFormsToXHTML.java:80)
>>  at org.orbeon.oxf.processor.ProcessorImpl$6.read(ProcessorImpl.java:995)
>>  at
>>  org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1178)
>>  at
>>  org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:350)
>>  at
>>  org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:355)
>>  at
>>  org.orbeon.oxf.processor.xinclude.XIncludeProcessor.access$100(XIncludeProcessor.java:41)
>>  at
>>  org.orbeon.oxf.processor.xinclude.XIncludeProcessor$2.read(XIncludeProcessor.java:85)
>>  at
>>  org.orbeon.oxf.processor.ProcessorImpl.readCacheInputAsObject(ProcessorImpl.java:453)
>>  at
>>  org.orbeon.oxf.processor.xinclude.XIncludeProcessor.access$200(XIncludeProcessor.java:41)
>>  at
>>  org.orbeon.oxf.processor.xinclude.XIncludeProcessor$1.readImpl(XIncludeProcessor.java:79)
>>  at org.orbeon.oxf.processor.ProcessorImpl$6.read(ProcessorImpl.java:995)
>>  at
>>  org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1178)
>>  at
>>  org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:350)
>>  at
>>  org.orbeon.oxf.processor.pipeline.PipelineProcessor.access$000(PipelineProcessor.java:62)
>>  at
>>  org.orbeon.oxf.processor.pipeline.PipelineProcessor$2.run(PipelineProcessor.java:92)
>>  at
>>  org.orbeon.oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl.java:519)
>>  at
>>  org.orbeon.oxf.processor.pipeline.PipelineProcessor.access$100(PipelineProcessor.java:62)
>> ------------------------------------
>>
>>
>> Like I said this has never happened to me before. I even tested my web
>> application and the web page using OF 3.6.0.200712181809 (both in
>> integrated and in separate deployment mode). No problems at all nor no
>> signs of increased response times after 50 requests.
>>
>> I am using OF as it is i.e. haven't done any performance tuning.
>>
>> Has somebody else ran into the same problem with the recent versions of
>> Orbeon Forms? I am happy to give more information about the error if
>> needed.
>>
>> Regards
>>
>>
>> -Markku Laine<orbeon_-_outofmemory.jpg>
>> --
>> 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
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Out of Memory Error

Erik Bruchez
Administrator
It looks ok. Can you check the size of your VM with top/task manager/
activity monitor or whatever tools is on your platform? Does the VM  
actually grow over 512 MB? If not, it probably means the setting  
didn't work.

-Erik

On Oct 8, 2008, at 12:18 AM, .::: Markku :::. wrote:

> Hi Erik,
>
>
> I am using Eclipse 3.4.0 and running web apps on Tomcat via Eclipse.  
> I have the following settings in my eclipse.ini file:
> ---------------- 8< ---------------------
> -showsplash
> org.eclipse.platform
> --launcher.XXMaxPermSize
> 256M
> -framework
> plugins\org.eclipse.osgi_3.4.0.v20080605-1900.jar
> -vmargs
> -Dosgi.requiredJavaVersion=1.5
> -Xms40m
> -Xmx512m
> ----------------- 8< ----------------
>
>
> So I guess my Java heap size (max) is 512MB. Or is there another way  
> to check my Java heap size?
>
> What puzzles me is that I am not facing any problems with memory  
> when using an older version of Orbeon Forms (3.6.0.200812181809).
>
> Regards
>
>
> -Markku Laine
>
> On Tue, 7 Oct 2008, Erik Bruchez wrote:
>
>> What's your Java heap size? Make sure you have at least 256 MB.
>>
>> -Erik
>>
>> On Oct 7, 2008, at 9:06 AM, .::: Markku :::. wrote:
>>
>>> Hi,
>>> Today, when I was trying out the latest versions of Orbeon Forms I  
>>> ran into java.lang.OutOfMemoryError. This has never happened to me  
>>> before.
>>> Here is what happened/I did:
>>> * Downloaded both OF 3.7.0beta1.200808260135 and the latest NB  
>>> version
>>> * Normally I run OF in separate deployment mode but due to the bug  
>>> below I had to integrate my web application into OF:
>>> http://forge.objectweb.org/tracker/index.php?func=detail&aid=310890&group_id=168&atid=350207
>>> * Changed OPS XForms Filter mapping's url pattern to *.xforms
>>> * Created a web page (~100kB) containing XHTML+XForms
>>> * Requested the web page several times. After 20 reqeusts,  
>>> response times started to increase and at 30 requests OF threw me  
>>> an error (enclosed a screenshot):
>>> -----------------------------
>>> 2008-10-07 17:49:01,319   ERROR    
>>> org.orbeon.oxf.pipeline.InitUtils:110 - Exception with no location  
>>> data
>>> java.lang.OutOfMemoryError: Java heap space
>>> at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:
>>> 95)
>>> at
>>> java.io.ObjectOutputStream
>>> $BlockDataOutputStream.drain(ObjectOutputStream.java:1685)
>>> at
>>> java.io.ObjectOutputStream
>>> $BlockDataOutputStream.writeBytes(ObjectOutputStream.java:1793)
>>> at
>>> java.io.ObjectOutputStream
>>> $BlockDataOutputStream.writeUTF(ObjectOutputStream.java:1976)
>>> at
>>> java.io.ObjectOutputStream
>>> $BlockDataOutputStream.writeUTF(ObjectOutputStream.java:1815)
>>> at java.io.ObjectOutputStream.writeUTF(ObjectOutputStream.java:816)
>>> at org.orbeon.oxf.xml.SAXStore.writeExternal(SAXStore.java:534)
>>> at org.orbeon.oxf.xforms.XFormsUtils.encodeXML(XFormsUtils.java:158)
>>> at
>>> org
>>> .orbeon
>>> .oxf
>>> .xforms
>>> .XFormsStaticState.getEncodedStaticState(XFormsStaticState.java:559)
>>> at
>>> org
>>> .orbeon
>>> .oxf
>>> .xforms
>>> .processor
>>> .XFormsToXHTML.createCacheContainingDocument(XFormsToXHTML.java:333)
>>> at
>>> org.orbeon.oxf.xforms.processor.XFormsToXHTML.access
>>> $200(XFormsToXHTML.java:50)
>>> at
>>> org.orbeon.oxf.xforms.processor.XFormsToXHTML
>>> $2.read(XFormsToXHTML.java:152)
>>> at
>>> org
>>> .orbeon
>>> .oxf
>>> .processor.ProcessorImpl.readCacheInputAsObject(ProcessorImpl.java:
>>> 453)
>>> at
>>> org
>>> .orbeon.oxf.xforms.processor.XFormsToXHTML.doIt(XFormsToXHTML.java:
>>> 121)
>>> at
>>> org.orbeon.oxf.xforms.processor.XFormsToXHTML.access
>>> $000(XFormsToXHTML.java:50)
>>> at
>>> org.orbeon.oxf.xforms.processor.XFormsToXHTML
>>> $1.readImpl(XFormsToXHTML.java:80)
>>> at org.orbeon.oxf.processor.ProcessorImpl
>>> $6.read(ProcessorImpl.java:995)
>>> at
>>> org.orbeon.oxf.processor.ProcessorImpl
>>> $ProcessorOutputImpl.read(ProcessorImpl.java:1178)
>>> at
>>> org
>>> .orbeon
>>> .oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:350)
>>> at
>>> org
>>> .orbeon
>>> .oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:355)
>>> at
>>> org.orbeon.oxf.processor.xinclude.XIncludeProcessor.access
>>> $100(XIncludeProcessor.java:41)
>>> at
>>> org.orbeon.oxf.processor.xinclude.XIncludeProcessor
>>> $2.read(XIncludeProcessor.java:85)
>>> at
>>> org
>>> .orbeon
>>> .oxf
>>> .processor.ProcessorImpl.readCacheInputAsObject(ProcessorImpl.java:
>>> 453)
>>> at
>>> org.orbeon.oxf.processor.xinclude.XIncludeProcessor.access
>>> $200(XIncludeProcessor.java:41)
>>> at
>>> org.orbeon.oxf.processor.xinclude.XIncludeProcessor
>>> $1.readImpl(XIncludeProcessor.java:79)
>>> at org.orbeon.oxf.processor.ProcessorImpl
>>> $6.read(ProcessorImpl.java:995)
>>> at
>>> org.orbeon.oxf.processor.ProcessorImpl
>>> $ProcessorOutputImpl.read(ProcessorImpl.java:1178)
>>> at
>>> org
>>> .orbeon
>>> .oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:350)
>>> at
>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor.access
>>> $000(PipelineProcessor.java:62)
>>> at
>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor
>>> $2.run(PipelineProcessor.java:92)
>>> at
>>> org
>>> .orbeon
>>> .oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl.java:519)
>>> at
>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor.access
>>> $100(PipelineProcessor.java:62)
>>> ------------------------------------
>>> Like I said this has never happened to me before. I even tested my  
>>> web application and the web page using OF 3.6.0.200712181809 (both  
>>> in integrated and in separate deployment mode). No problems at all  
>>> nor no signs of increased response times after 50 requests.
>>> I am using OF as it is i.e. haven't done any performance tuning.
>>> Has somebody else ran into the same problem with the recent  
>>> versions of Orbeon Forms? I am happy to give more information  
>>> about the error if needed.
>>> Regards
>>> -Markku Laine<orbeon_-_outofmemory.jpg>
>>> --
>>> 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
--
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
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Re: Out of Memory Error

Markku Laine
The settings I used in my eclipse.ini file didn't work. The settings do
not affect on Tomcat, which is/can be launched through Eclipse.

However, if you go to: Run > Run Configurations... > Tomcat vx.x Server at
localhost > Arguments tab > VM arguments: and add -Xms512m -Xmx512m at the
end -- that will do the trick!

Regards


-Markku Laine

On Tue, 14 Oct 2008, Erik Bruchez wrote:

> It looks ok. Can you check the size of your VM with top/task manager/activity
> monitor or whatever tools is on your platform? Does the VM actually grow over
> 512 MB? If not, it probably means the setting didn't work.
>
> -Erik
>
> On Oct 8, 2008, at 12:18 AM, .::: Markku :::. wrote:
>
>> Hi Erik,
>>
>>
>> I am using Eclipse 3.4.0 and running web apps on Tomcat via Eclipse. I have
>> the following settings in my eclipse.ini file:
>> ---------------- 8< ---------------------
>> -showsplash
>> org.eclipse.platform
>> --launcher.XXMaxPermSize
>> 256M
>> -framework
>> plugins\org.eclipse.osgi_3.4.0.v20080605-1900.jar
>> -vmargs
>> -Dosgi.requiredJavaVersion=1.5
>> -Xms40m
>> -Xmx512m
>> ----------------- 8< ----------------
>>
>>
>> So I guess my Java heap size (max) is 512MB. Or is there another way to
>> check my Java heap size?
>>
>> What puzzles me is that I am not facing any problems with memory when using
>> an older version of Orbeon Forms (3.6.0.200812181809).
>>
>> Regards
>>
>>
>> -Markku Laine
>>
>> On Tue, 7 Oct 2008, Erik Bruchez wrote:
>>
>> > What's your Java heap size? Make sure you have at least 256 MB.
>> >
>> > -Erik
>> >
>> > On Oct 7, 2008, at 9:06 AM, .::: Markku :::. wrote:
>> >
>> > > Hi,
>> > > Today, when I was trying out the latest versions of Orbeon Forms I ran
>> > > into java.lang.OutOfMemoryError. This has never happened to me before.
>> > > Here is what happened/I did:
>> > > * Downloaded both OF 3.7.0beta1.200808260135 and the latest NB version
>> > > * Normally I run OF in separate deployment mode but due to the bug
>> > > below I had to integrate my web application into OF:
>> > > http://forge.objectweb.org/tracker/index.php?func=detail&aid=310890&group_id=168&atid=350207
>> > > * Changed OPS XForms Filter mapping's url pattern to *.xforms
>> > > * Created a web page (~100kB) containing XHTML+XForms
>> > > * Requested the web page several times. After 20 reqeusts, response
>> > > times started to increase and at 30 requests OF threw me an error
>> > > (enclosed a screenshot):
>> > > -----------------------------
>> > > 2008-10-07 17:49:01,319   ERROR   org.orbeon.oxf.pipeline.InitUtils:110
>> > > - Exception with no location data
>> > > java.lang.OutOfMemoryError: Java heap space
>> > > at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:95)
>> > > at
>> > > java.io.ObjectOutputStream$BlockDataOutputStream.drain(ObjectOutputStream.java:1685)
>> > > at
>> > > java.io.ObjectOutputStream$BlockDataOutputStream.writeBytes(ObjectOutputStream.java:1793)
>> > > at
>> > > java.io.ObjectOutputStream$BlockDataOutputStream.writeUTF(ObjectOutputStream.java:1976)
>> > > at
>> > > java.io.ObjectOutputStream$BlockDataOutputStream.writeUTF(ObjectOutputStream.java:1815)
>> > > at java.io.ObjectOutputStream.writeUTF(ObjectOutputStream.java:816)
>> > > at org.orbeon.oxf.xml.SAXStore.writeExternal(SAXStore.java:534)
>> > > at org.orbeon.oxf.xforms.XFormsUtils.encodeXML(XFormsUtils.java:158)
>> > > at
>> > > org.orbeon.oxf.xforms.XFormsStaticState.getEncodedStaticState(XFormsStaticState.java:559)
>> > > at
>> > > org.orbeon.oxf.xforms.processor.XFormsToXHTML.createCacheContainingDocument(XFormsToXHTML.java:333)
>> > > at
>> > > org.orbeon.oxf.xforms.processor.XFormsToXHTML.access$200(XFormsToXHTML.java:50)
>> > > at
>> > > org.orbeon.oxf.xforms.processor.XFormsToXHTML$2.read(XFormsToXHTML.java:152)
>> > > at
>> > > org.orbeon.oxf.processor.ProcessorImpl.readCacheInputAsObject(ProcessorImpl.java:453)
>> > > at
>> > > org.orbeon.oxf.xforms.processor.XFormsToXHTML.doIt(XFormsToXHTML.java:121)
>> > > at
>> > > org.orbeon.oxf.xforms.processor.XFormsToXHTML.access$000(XFormsToXHTML.java:50)
>> > > at
>> > > org.orbeon.oxf.xforms.processor.XFormsToXHTML$1.readImpl(XFormsToXHTML.java:80)
>> > > at
>> > > org.orbeon.oxf.processor.ProcessorImpl$6.read(ProcessorImpl.java:995)
>> > > at
>> > > org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1178)
>> > > at
>> > > org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:350)
>> > > at
>> > > org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:355)
>> > > at
>> > > org.orbeon.oxf.processor.xinclude.XIncludeProcessor.access$100(XIncludeProcessor.java:41)
>> > > at
>> > > org.orbeon.oxf.processor.xinclude.XIncludeProcessor$2.read(XIncludeProcessor.java:85)
>> > > at
>> > > org.orbeon.oxf.processor.ProcessorImpl.readCacheInputAsObject(ProcessorImpl.java:453)
>> > > at
>> > > org.orbeon.oxf.processor.xinclude.XIncludeProcessor.access$200(XIncludeProcessor.java:41)
>> > > at
>> > > org.orbeon.oxf.processor.xinclude.XIncludeProcessor$1.readImpl(XIncludeProcessor.java:79)
>> > > at
>> > > org.orbeon.oxf.processor.ProcessorImpl$6.read(ProcessorImpl.java:995)
>> > > at
>> > > org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1178)
>> > > at
>> > > org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:350)
>> > > at
>> > > org.orbeon.oxf.processor.pipeline.PipelineProcessor.access$000(PipelineProcessor.java:62)
>> > > at
>> > > org.orbeon.oxf.processor.pipeline.PipelineProcessor$2.run(PipelineProcessor.java:92)
>> > > at
>> > > org.orbeon.oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl.java:519)
>> > > at
>> > > org.orbeon.oxf.processor.pipeline.PipelineProcessor.access$100(PipelineProcessor.java:62)
>> > > ------------------------------------
>> > > Like I said this has never happened to me before. I even tested my web
>> > > application and the web page using OF 3.6.0.200712181809 (both in
>> > > integrated and in separate deployment mode). No problems at all nor no
>> > > signs of increased response times after 50 requests.
>> > > I am using OF as it is i.e. haven't done any performance tuning.
>> > > Has somebody else ran into the same problem with the recent versions of
>> > > Orbeon Forms? I am happy to give more information about the error if
>> > > needed.
>> > > Regards
>> > > -Markku Laine<orbeon_-_outofmemory.jpg>
>> > > --
>> > > 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
>
> --
> 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
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Re: Out of Memory Error

Alessandro Vernet
Administrator
.::: Markku :::. wrote
However, if you go to: Run > Run Configurations... > Tomcat vx.x Server at
localhost > Arguments tab > VM arguments: and add -Xms512m -Xmx512m at the
end -- that will do the trick!
Great to read this is working now. Thank you for confirming this.

Alex