Hi,

We are running Jakarta Tomcat Servlet/JSP Engine 6.0.20 on Solaris 2.10.
We have -Xmx128M, is that to small?

Best Regards
/Kent

-----Original Message-----
From: Pid [mailto:p...@pidster.com] 
Sent: den 21 maj 2010 13:20
To: Tomcat Users List
Subject: Re: Tomcat 6.0.20 is running out of memory

On 21/05/2010 11:57, 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 java.util.Properties$LineReader.<init>(Properties.java:389)
>         at java.util.Properties.load(Properties.java:325)
>         at java.util.PropertyResourceBundle.<init>
> (PropertyResourceBundle.java:111)
>         at 
> java.util.ResourceBundle$Control.newBundle(ResourceBundle.java:2428)
>         at java.util.ResourceBundle.loadBundle(ResourceBundle.java:1406)
>         at java.util.ResourceBundle.findBundle(ResourceBundle.java:1365)
>         at java.util.ResourceBundle.findBundle(ResourceBundle.java:1292)
>         at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1234)
>         at java.util.ResourceBundle.getBundle(ResourceBundle.java:715)
>         at org.apache.jasper.compiler.Localizer.<clinit>(Localizer.java:36)
>         at org.apache.jasper.runtime.PageContextImpl.release
> (PageContextImpl.java:191)
>         at 
> org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext
> (JspFactoryImpl.java:118)
>         at org.apache.jasper.runtime.JspFactoryImpl.releasePageContext
> (JspFactoryImpl.java:77)
>         at org.apache.jsp.contents_jsp._jspService(contents_jsp.java:174)
>         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>         at org.apache.jasper.servlet.JspServletWrapper.service
> (JspServletWrapper.java:374)
>         at org.apache.jasper.servlet.JspServlet.serviceJspFile
> (JspServlet.java:342)
>         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>         at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
> (ApplicationFilterChain.java:290)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter
> (ApplicationFilterChain.java:206)
>         at org.apache.catalina.core.ApplicationDispatcher.invoke
> (ApplicationDispatcher.java:646)
>         at org.apache.catalina.core.ApplicationDispatcher.doInclude
> (ApplicationDispatcher.java:551)
>         at org.apache.catalina.core.ApplicationDispatcher.include
> (ApplicationDispatcher.java:488)
>         at org.apache.jasper.runtime.JspRuntimeLibrary.include
> (JspRuntimeLibrary.java:968)
>         at org.apache.jsp.mainpage_jsp._jspService(mainpage_jsp.java:109)
>         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>         at org.apache.jasper.servlet.JspServletWrapper.service
> (JspServletWrapper.java:374)
>         at org.apache.jasper.servlet.JspServlet.serviceJspFile
> (JspServlet.java:342)
>         at 
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
> ERROR:  'Java heap space'
> Does anyone have any idea how to prevent this, or why this is happening?

Your application has used all the memory it has allocated, prevent the error by 
allocating more memory, unless your application has a memory leak - in which 
case, find the leak and fix it.

You're on a linux variant presumably?  Please state your exact JVM version, & 
OS info.  In this case the amount of hardware RAM available would be useful too.

Do you have any memory settings in your JAVA_OPTS or CATALINA_OPTS?
(If you're not sure, they look like "-Xmx1024M" for example.)

Execute the following command to find out what the heap is using:

 jmap -heap <pid>


p











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

Reply via email to