You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Bruce Perryman <bp...@yahoo.com> on 2005/09/13 00:46:41 UTC
Out of Memory Exception
Hi,
I've searched and seen that others have had this
problem, but I haven't found a posted resolution. I'm
sure this will ring a bell here.
After the application runs for a while, Tomcat reports
that Cocoon threw exception
java.lang.OutOfMemoryError.
The only way to clear the problem is to restart
Tomcat.
My application is on TC 5.0.19, Cocoon 2.1.4, java
1.4.2_04 on RH Linux 9.0.
Thanks.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Out of Memory Exception
Posted by Sandor Spruit <sa...@cs.uu.nl>.
On 13 Sep 2005, at 15:46, Bruce Perryman wrote:
> Thanks for your post. I will try the CATALINA_OPTS
> suggestion, then look into profiling.
>
> I've already attempted to make changes to cocoon.xconf
> for memory considerations.
This might be a good moment to jump-in, to say that I've
recently looked at the "testing and profiling platform" in
Eclipse (TPTP). It seems to work quite nicely, although
you have to read the requirements carefully and install
some other stuff first - or it will just not work :)
See www.eclipse.org/tptp/
Sandor Spruit
sandor@cs.uu.nl
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
SQLTransformer problem
Posted by Mike Holt <mi...@zenserve.com>.
Hi,
I'm perplexed by an error that I keep receiving when trying to
process an XSL page contain a dynamic SQL query:
Description: org.apache.cocoon.ProcessingException: Exception in
ServerPagesGenerator.generate(): java.lang.IllegalArgumentException:
Unknown type of result: class javax.xml.transform.dom.DOMResult
My sub-sitemap contains the following:
<map:match pattern="*.xsp">
<map:generate type="serverpages" src="pages/{1}.xsp" />
<map:transform type="xslt" src="transforms/stylesheet.xsl" />
<map:transform type="sql">
<map:parameter name="use-connection" value="vouchers" />
<map:parameter name="clob-encoding" value="UTF-8" />
</map:transform>
<map:serialize type="xhtml" />
</map:match>
...and the stylesheet contains the following:
<xsl:template match="updatesql">
<execute-query xmlns="http://apache.org/cocoon/SQL/2.0">
<query>select * from reference</query>
</execute-query>
</xsl:template
The sql namespace is properly declared in both the XSP and the
stylesheet, and I know that the connection pool is correctly defined
and that the connection is working as I am using esql elsewhere in
the source XSP without any problems. I'm using Saxon8 as my processor.
Any help with this would *greatly* appreciated.
Thanks,
Mike
Re: Out of Memory Exception
Posted by Bruce Perryman <bp...@yahoo.com>.
Hi,
Just wanted to report that I made the modifications
that Jorg suggested, as well as those in the Cocoon
Developers Guide, and I've been running for quite
sometime now without an error being generated.
Thanks a lot for your help.
--- Bruce Perryman <bp...@yahoo.com> wrote:
> Hi,
>
> Before doing anything else, this is what I've found.
>
> When I start my machine, about 104M of my 512M RAM
> is
> used when I cat meminfo from /proc (on RH Linux 9.0)
>
> When I start Tomcat, the meminfo jumps up to about
> 400M and continues to rise. This is without me ever
> issuing any requests. Eventually, it seems that my
> RAM
> limit would be exceeded and that Cocoon would run
> out
> of memory. Something keeps grabbing chunks of
> memory.
>
> --- Bruce Perryman <bp...@yahoo.com> wrote:
>
> > Thanks for your post. I will try the CATALINA_OPTS
> > suggestion, then look into profiling.
> >
> > I've already attempted to make changes to
> > cocoon.xconf
> > for memory considerations.
> >
> > --- Jorg Heymans <jh...@domek.be> wrote:
> >
> > >
> > > Bruce Perryman wrote:
> > > > Hi,
> > > >
> > > > I've searched and seen that others have had
> this
> > > > problem, but I haven't found a posted
> > resolution.
> > > I'm
> > > > sure this will ring a bell here.
> > > >
> > > > After the application runs for a while, Tomcat
> > > reports
> > > > that Cocoon threw exception
> > > > java.lang.OutOfMemoryError.
> > > >
> > >
> > > OOMs are not always happening because of faulty
> > code
> > > or memory leaks,
> > > sometimes your app just needs a bit more memory.
> > For
> > > tomcat, try
> > > increasing the allocated VM memory size :
> > >
> > > set the CATALINA_OPTS environment var to
> > > -Xms512m -Xmx512m
> > >
> > >
> > > If this doesn't help try profiling your code to
> > see
> > > what is not getting
> > > gc collected.
> > >
> > >
> > > HTH
> > > Jorg
> > >
> > >
> > >
> >
>
---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > > users-unsubscribe@cocoon.apache.org
> > > For additional commands, e-mail:
> > > users-help@cocoon.apache.org
> > >
> > >
> >
> >
> >
> >
> > __________________________________
> > Yahoo! Mail - PC Magazine Editors' Choice 2005
> > http://mail.yahoo.com
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > users-unsubscribe@cocoon.apache.org
> > For additional commands, e-mail:
> > users-help@cocoon.apache.org
> >
> >
>
>
>
>
> __________________________________
> Yahoo! Mail - PC Magazine Editors' Choice 2005
> http://mail.yahoo.com
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail:
> users-help@cocoon.apache.org
>
>
__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Out of Memory Exception
Posted by Bruce Perryman <bp...@yahoo.com>.
Hi,
Before doing anything else, this is what I've found.
When I start my machine, about 104M of my 512M RAM is
used when I cat meminfo from /proc (on RH Linux 9.0)
When I start Tomcat, the meminfo jumps up to about
400M and continues to rise. This is without me ever
issuing any requests. Eventually, it seems that my RAM
limit would be exceeded and that Cocoon would run out
of memory. Something keeps grabbing chunks of memory.
--- Bruce Perryman <bp...@yahoo.com> wrote:
> Thanks for your post. I will try the CATALINA_OPTS
> suggestion, then look into profiling.
>
> I've already attempted to make changes to
> cocoon.xconf
> for memory considerations.
>
> --- Jorg Heymans <jh...@domek.be> wrote:
>
> >
> > Bruce Perryman wrote:
> > > Hi,
> > >
> > > I've searched and seen that others have had this
> > > problem, but I haven't found a posted
> resolution.
> > I'm
> > > sure this will ring a bell here.
> > >
> > > After the application runs for a while, Tomcat
> > reports
> > > that Cocoon threw exception
> > > java.lang.OutOfMemoryError.
> > >
> >
> > OOMs are not always happening because of faulty
> code
> > or memory leaks,
> > sometimes your app just needs a bit more memory.
> For
> > tomcat, try
> > increasing the allocated VM memory size :
> >
> > set the CATALINA_OPTS environment var to
> > -Xms512m -Xmx512m
> >
> >
> > If this doesn't help try profiling your code to
> see
> > what is not getting
> > gc collected.
> >
> >
> > HTH
> > Jorg
> >
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > users-unsubscribe@cocoon.apache.org
> > For additional commands, e-mail:
> > users-help@cocoon.apache.org
> >
> >
>
>
>
>
> __________________________________
> Yahoo! Mail - PC Magazine Editors' Choice 2005
> http://mail.yahoo.com
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail:
> users-help@cocoon.apache.org
>
>
__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Out of Memory Exception
Posted by Bruce Perryman <bp...@yahoo.com>.
Thanks for your post. I will try the CATALINA_OPTS
suggestion, then look into profiling.
I've already attempted to make changes to cocoon.xconf
for memory considerations.
--- Jorg Heymans <jh...@domek.be> wrote:
>
> Bruce Perryman wrote:
> > Hi,
> >
> > I've searched and seen that others have had this
> > problem, but I haven't found a posted resolution.
> I'm
> > sure this will ring a bell here.
> >
> > After the application runs for a while, Tomcat
> reports
> > that Cocoon threw exception
> > java.lang.OutOfMemoryError.
> >
>
> OOMs are not always happening because of faulty code
> or memory leaks,
> sometimes your app just needs a bit more memory. For
> tomcat, try
> increasing the allocated VM memory size :
>
> set the CATALINA_OPTS environment var to
> -Xms512m -Xmx512m
>
>
> If this doesn't help try profiling your code to see
> what is not getting
> gc collected.
>
>
> HTH
> Jorg
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail:
> users-help@cocoon.apache.org
>
>
__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Out of Memory Exception
Posted by Jorg Heymans <jh...@domek.be>.
Bruce Perryman wrote:
> Hi,
>
> I've searched and seen that others have had this
> problem, but I haven't found a posted resolution. I'm
> sure this will ring a bell here.
>
> After the application runs for a while, Tomcat reports
> that Cocoon threw exception
> java.lang.OutOfMemoryError.
>
OOMs are not always happening because of faulty code or memory leaks,
sometimes your app just needs a bit more memory. For tomcat, try
increasing the allocated VM memory size :
set the CATALINA_OPTS environment var to
-Xms512m -Xmx512m
If this doesn't help try profiling your code to see what is not getting
gc collected.
HTH
Jorg
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Out of Memory Exception
Posted by Bruce Perryman <bp...@yahoo.com>.
Does this mean that there was a bug/memory leak in
Cocoon? Tomcat? Java? Or all of the above?
--- Antonio Gallardo <ag...@agssa.net> wrote:
> Bruce Perryman wrote:
>
> >Hi,
> >
> >I've searched and seen that others have had this
> >problem, but I haven't found a posted resolution.
> I'm
> >sure this will ring a bell here.
> >
> >After the application runs for a while, Tomcat
> reports
> >that Cocoon threw exception
> >java.lang.OutOfMemoryError.
> >
> >The only way to clear the problem is to restart
> >Tomcat.
> >
> >My application is on TC 5.0.19, Cocoon 2.1.4, java
> >1.4.2_04 on RH Linux 9.0.
> >
> >
> Update to TC 5.0.28, cocoon 2.1.7 and java 1.4.2_09.
> ;-)
>
> Best Regards,
>
> Antonio Gallardo.
>
> >Thanks.
> >
> >__________________________________________________
> >Do You Yahoo!?
> >Tired of spam? Yahoo! Mail has the best spam
> protection around
> >http://mail.yahoo.com
> >
>
>---------------------------------------------------------------------
> >To unsubscribe, e-mail:
> users-unsubscribe@cocoon.apache.org
> >For additional commands, e-mail:
> users-help@cocoon.apache.org
> >
> >
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail:
> users-help@cocoon.apache.org
>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Out of Memory Exception
Posted by Antonio Gallardo <ag...@agssa.net>.
Bruce Perryman wrote:
>Hi,
>
>I've searched and seen that others have had this
>problem, but I haven't found a posted resolution. I'm
>sure this will ring a bell here.
>
>After the application runs for a while, Tomcat reports
>that Cocoon threw exception
>java.lang.OutOfMemoryError.
>
>The only way to clear the problem is to restart
>Tomcat.
>
>My application is on TC 5.0.19, Cocoon 2.1.4, java
>1.4.2_04 on RH Linux 9.0.
>
>
Update to TC 5.0.28, cocoon 2.1.7 and java 1.4.2_09. ;-)
Best Regards,
Antonio Gallardo.
>Thanks.
>
>__________________________________________________
>Do You Yahoo!?
>Tired of spam? Yahoo! Mail has the best spam protection around
>http://mail.yahoo.com
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>For additional commands, e-mail: users-help@cocoon.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org