You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Derek Hohls <DH...@csir.co.za> on 2004/11/18 11:33:48 UTC
Pesky memory problems (Tomcat/WindowsXP)
I know there have been a number of threads on this topic; but
I am obviously missing something, well, obvious!
I have set the CATALINA_OPTS variable as follows:
-Xms64m -Xmx256m -Dfile.encoding=ISO-8859-1
-DproxySet=true -DproxyHost=http://my-proxy.com -DproxyPort=3128
Cocoon runs fine for a while, then the error message:
----- Root Cause -----
java.lang.OutOfMemoryError
appears. The memory monitor *appears* to show
Tomcat using about 110M of memory... well within the
256M limit I would have thought?
Is there anything else that could be causing this?? It
has only started happening with my latest app, and I'm
still not really sure what could cause such an overload.
Thanks
Derek
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Pesky memory problems (Tomcat/WindowsXP)
Posted by Reinhard Poetz <re...@apache.org>.
Derek Hohls wrote:
> I know there have been a number of threads on this topic; but
> I am obviously missing something, well, obvious!
>
> I have set the CATALINA_OPTS variable as follows:
>
> -Xms64m -Xmx256m -Dfile.encoding=ISO-8859-1
> -DproxySet=true -DproxyHost=http://my-proxy.com -DproxyPort=3128
>
> Cocoon runs fine for a while, then the error message:
> ----- Root Cause -----
> java.lang.OutOfMemoryError
>
> appears. The memory monitor *appears* to show
> Tomcat using about 110M of memory... well within the
> 256M limit I would have thought?
>
> Is there anything else that could be causing this?? It
> has only started happening with my latest app, and I'm
> still not really sure what could cause such an overload.
>
> Thanks
> Derek
>
Try to re-produce your memory problems using a load testing tool. Look for
"typical" pages and then run stress tests. When you find a test that fails,
reduce it as far as possible.
Two "usual suspects" are Cron jobs calling pipelines and macros in JXTemplate.
--
Reinhard
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Pesky memory problems (Tomcat/WindowsXP)
Posted by Francois Jannin <f....@free.fr>.
Hi Derek
Derek Hohls wrote:
>I know there have been a number of threads on this topic; but
>I am obviously missing something, well, obvious!
>
>I have set the CATALINA_OPTS variable as follows:
>
>-Xms64m -Xmx256m -Dfile.encoding=ISO-8859-1
>-DproxySet=true -DproxyHost=http://my-proxy.com -DproxyPort=3128
>
>Cocoon runs fine for a while, then the error message:
>----- Root Cause -----
>java.lang.OutOfMemoryError
>
>appears. The memory monitor *appears* to show
>Tomcat using about 110M of memory... well within the
>256M limit I would have thought?
>
>
>
The same happende to me..
Depending on the system you run Tomcat on, setting CATALINA_OPTS can be
overrided by catalina.bat or catalina.sh . My last investigating about
this matter revealed different behaviours depending on the system.
In jakarta-tomcat-5.0.28, while under Windows you can add options in
catalina.bat like this :
set CATALINA_OPTS=-Xms256m -Xmx512m -server -Xdebug -Xnoagent
-Djava.compiler=NONE
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000
under Linux catalina.sh seems to behave differently, i.e it seems to
actually use CATALINA_OPTS as it comes from environment variable (I'm
not a good reader of such messy scripts anyway).
I suggest you try to locate where your container is actually started and
whether CATALINA_OPTS is redefined or used as it comes.
Good luck
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Pesky memory problems (Tomcat/WindowsXP)
Posted by Antonio Gallardo <ag...@agssa.net>.
Hi Derek:
Wich Cocoon version are you using?
BTW, See this:
http://issues.apache.org/bugzilla/show_bug.cgi?id=31760
Can this be your problem?
Best Regards,
Antonio Gallardo
Derek Hohls dijo:
> I know there have been a number of threads on this topic; but
> I am obviously missing something, well, obvious!
>
> I have set the CATALINA_OPTS variable as follows:
>
> -Xms64m -Xmx256m -Dfile.encoding=ISO-8859-1
> -DproxySet=true -DproxyHost=http://my-proxy.com -DproxyPort=3128
>
> Cocoon runs fine for a while, then the error message:
> ----- Root Cause -----
> java.lang.OutOfMemoryError
>
> appears. The memory monitor *appears* to show
> Tomcat using about 110M of memory... well within the
> 256M limit I would have thought?
>
> Is there anything else that could be causing this?? It
> has only started happening with my latest app, and I'm
> still not really sure what could cause such an overload.
>
> Thanks
> Derek
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
> MailScanner thanks transtec Computers for their support.
>
>
> ---------------------------------------------------------------------
> 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