On 05/21/2010 01:57 PM, kent.anders...@tieto.com wrote:
Hi,

The Tomcat webserver 6.0.20 we are using has run out of memory.
Got the following message in the Catalina.out file:
less /opt/jakarta/tomcat/logs/catalina.out
...
java.lang.OutOfMemoryError: Java heap space
...
         at org.apache.jsp.contents_jsp._jspService(contents_jsp.java:174)
...
> at org.apache.jsp.mainpage_jsp._jspService(mainpage_jsp.java:109)

... so, it seems that this did happen when someone was accessing
your mainpage.jsp, at the point where the mainpage.jsp was including
its contents.jsp (could be close to the end of contents.jsp processing,
as the stack contained references about releasing pagecontext).


It might help to look at the contents.jsp of your application, and
especially the Java file created from the contents.jsp, at line 174.
(you'll need to override the global jspservlet definition in your
applications web.xml to prohibit tomcat from removing the java code
generated from the jsp files). Reviewing the pagecontext data
structure for the contents.jsp might also help.

It's a bit curious that the actual JSP row number is not in the log,
but then apparently this even has not happened strictly during the
processing of that JSP (but still does have some relation to it).

As for the question on amount of memory needed by Tomcat, Tomcat
doesn't need that much - but your application might. Please, please,
try to also look at the application you've built on top of Tomcat,
and find out whatever memory requirements it might have.
--
..Juha

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to