Hello,

 

It is very tricky to find out why our server rans periodically (between 12
and 24 hours) into Java heap space errors.

We have a virtual Windows 2003 Standard R2 Server 32-bit, with 4 GB
physically RAM. Two Tomcats 6.0.32 (serve different webapps) 32 bit with a
Apache 2.2.14 Frontend Webserver on the same server. We use the 1.6 Update
25 Server JVM 32 bit of Sun.

The errormessages from catalina log are : 

"SCHWERWIEGEND: Exception initializing page context

java.lang.OutOfMemoryError: Java heap space

16.05.2011 23:59:37 org.apache.jasper.runtime.JspFactoryImpl
internalGetPageContext

SCHWERWIEGEND: Exception initializing page context

java.lang.OutOfMemoryError: Java heap space

16.05.2011 23:59:37 org.apache.jasper.runtime.JspFactoryImpl
internalGetPageContext

SCHWERWIEGEND: Exception initializing page context

java.lang.OutOfMemoryError: Java heap space

16.05.2011 23:59:49 org.apache.catalina.core.ApplicationDispatcher invoke

SCHWERWIEGEND: Servlet.service() for servlet Controller threw exception

java.lang.OutOfMemoryError: Java heap space

16.05.2011 23:59:49 org.apache.catalina.core.StandardWrapperValve invoke

SCHWERWIEGEND: Servlet.service() for servlet default threw exception

java.lang.OutOfMemoryError: Java heap space

16.05.2011 23:59:54 org.apache.catalina.core.StandardWrapperValve invoke

SCHWERWIEGEND: Servlet.service() for servlet Controller threw exception

java.lang.OutOfMemoryError: Java heap space

16.05.2011 23:59:55
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor
processChildren

SCHWERWIEGEND: Exception invoking periodic operation: 

java.lang.OutOfMemoryError: Java heap space

16.05.2011 23:59:55
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor
processChildren

SCHWERWIEGEND: Exception invoking periodic operation: 

java.lang.OutOfMemoryError: Java heap space

16.05.2011 23:59:55
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor
processChildren

SCHWERWIEGEND: Exception invoking periodic operation: 

java.lang.OutOfMemoryError: Java heap space

"

 

The Tomcat Java Opts Settings in the Console:

-XX:+UseConcMarkSweepGC

-XX:+CMSClassUnloadingEnabled

-XX:+CMSPermGenSweepingEnabled

-Xms128m

-Xmx1024m

-XX:MaxPermSize=256m

 

The windows process grow up and consuming 1020 MB of RAM. The 2nd Tomcat
service was not started and we ran although in the Memory leak. 

What is the best way to find out the best parameters for the settings of
Tomcat?

 

Best regards

Alexander Diedler

 

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to