tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roland Schmitt" <>
Subject Application Re-Deployment leads to OutOfMemoryException - Tomcat 7.22
Date Tue, 25 Oct 2011 13:59:18 GMT

we have an problem by re-deploying our jsf application war in tomcat 7.
Each time we re-deploy our application with tomcat7-maven-plugin we get an permgen error.

Also undeploying and deploying with the Tomcat Web Application Manager doesn't work and leads
into the same error.
To get undeploying working we had to change the configuration in tomcats context.xml to <Context
antiJARLocking="true" antiResourceLocking="true"> otherwise the web-inf\lib directory is
not removed.
I also used the find leaks function of  Tomcat Web Application Manager after undepolying,
which shows that the webapplication is still in use,
after some time (30-60 seconds) executing find leaks again results in no leaks found and the
application deployment works again.

Also increasing the pergmgen memory of java vm helps to enabel re-deployment some times more,
but after to much re-deployments the out of memory exception is back.
The Tomcat java opts used: JAVA_OPTS="-Xms2048m -Xmx2048m -XX:NewSize=1024m -XX:MaxNewSize=1024m
-XX:PermSize=1024m -XX:MaxPermSize=1024m"

Why is redeployment not possible? Is this issue known and can i do anything about that?

Folowing exception occurs on second deployment:

25.10.2011 14:50:07 org.apache.tomcat.util.modeler.BaseModelMBean invoke
SCHWERWIEGEND: Exception invoking method check
java.lang.OutOfMemoryError: PermGen space
	at java.lang.Class.getName0(Native Method)
	at java.lang.Class.getName(Unknown Source)
	at java.lang.Throwable.toString(
	at java.lang.Throwable.<init>(
	at java.lang.Exception.<init>(Unknown Source)
	at java.lang.RuntimeException.<init>(Unknown Source)
	at org.apache.tomcat.util.threads.DedicatedThreadExecutor.execute(
	at org.apache.catalina.core.StandardContext.startInternal(
	at org.apache.catalina.util.LifecycleBase.start(
	at org.apache.catalina.core.ContainerBase.addChildInternal(
	at org.apache.catalina.core.ContainerBase.addChild(
	at org.apache.catalina.core.StandardHost.addChild(
	at org.apache.catalina.startup.HostConfig.deployWAR(
	at org.apache.catalina.startup.HostConfig.deployApps(
	at org.apache.catalina.startup.HostConfig.check(
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(
	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(Unknown Source)
	at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(Unknown Source)
	at org.apache.catalina.manager.ManagerServlet.check(
	at org.apache.catalina.manager.ManagerServlet.deploy(
	at org.apache.catalina.manager.ManagerServlet.doPut(
	at javax.servlet.http.HttpServlet.service(
	at javax.servlet.http.HttpServlet.service(
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(
	at org.apache.catalina.filters.CsrfPreventionFilter.doFilter(
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(

Tomcat Version: 7.0.22
Windows Version: 7 Professional 64bit SP1
WebApplication includes following libs:	
Commons Lang 3 (3.0.1)
Javalution (5.5.1)
log4j 1.2.14 (1.2.14)
slf4j-log4j (1.5.8)
jul-to-sfl4j (1.5.8)
OWB (1.1.1)
BVal (0.3-incubating)
MyFaces (2.1.3)
PrimeFaces 3.0.M4-SNAPSHOT)
MyFaces CODI (1.0.1)
MyFaces ExtVal (2.0.4)
Hibernate (3.6.7.Final)
Jdts (1.2.4)

NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zurück-Garantie!		
Jetzt informieren:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message