¡Liferay es Líder en el Cuadrante Mágico de Gartner por Sexto Año consecutivo! Sepa por qué aquí

Vista combinada Visión Plana Vista de árbol
Discusiones [ Anterior | Siguiente ]
toggle
Marek Wianecki
Unclean shutdown after cluster ehcache enable (Tomcat 6.0.26)
18 de agosto de 2010 4:15
Respuesta

Marek Wianecki

Ranking: New Member

Mensajes: 15

Fecha de incorporación: 10 de mayo de 2010

Mensajes recientes

Liferay 6.0.4 cluster with MySQL 5.0.1.43 Ent

After ehache enable shutdown problem appeared:

INFO: Server startup in 64293 ms
Aug 18, 2010 11:10:33 AM org.apache.coyote.http11.Http11AprProtocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8080
Aug 18, 2010 11:10:33 AM org.apache.coyote.ajp.AjpAprProtocol pause
INFO: Pausing Coyote AJP/1.3 on ajp-8009
Aug 18, 2010 11:10:34 AM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Aug 18, 2010 11:10:35 AM org.apache.catalina.loader.WebappClassLoader clearReferencesStopTimerThread
SEVERE: A web application appears to have started a TimerThread named [MySQL Statement Cancellation Timer] via the java.util.Timer API but has failed to stop it. To prevent a memory leak, the timer (and hence the associated thread) has been forcibly cancelled.
Aug 18, 2010 11:10:35 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: A web application appears to have started a thread named [Replication Thread] but has failed to stop it. This is very likely to create a memory leak.
Aug 18, 2010 11:10:35 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: A web application appears to have started a thread named [Replication Thread] but has failed to stop it. This is very likely to create a memory leak.
Aug 18, 2010 11:10:35 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: A web application appears to have started a thread named [Replication Thread] but has failed to stop it. This is very likely to create a memory leak.
Aug 18, 2010 11:10:35 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: A web application appears to have started a thread named [Replication Thread] but has failed to stop it. This is very likely to create a memory leak.
Aug 18, 2010 11:10:35 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: A web application appears to have started a thread named [Replication Thread] but has failed to stop it. This is very likely to create a memory leak.
Aug 18, 2010 11:10:35 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: A web application appears to have started a thread named [Replication Thread] but has failed to stop it. This is very likely to create a memory leak.
....

and proces hangs failing to shutdown.

I did some research and it appears that there are some issues with Tomcat 6.0.26 and mem leak detection (https://issues.apache.org/bugzilla/show_bug.cgi?id=48971).
Does anybody has the same problem ? Do you know how to solve it ?
Marek Wianecki
RE: Unclean shutdown after cluster ehcache enable (Tomcat 6.0.26)
18 de agosto de 2010 7:36
Respuesta

Marek Wianecki

Ranking: New Member

Mensajes: 15

Fecha de incorporación: 10 de mayo de 2010

Mensajes recientes

as far as I dig into the problem it seems that Tomcat version 6.0.26 has "false positive mem leak" problem. so the solution should be Tomcat downgrade to the version <6.0.25 or upgrade 6.0.27 or up.
temporary solution which works for me (besides stacktrace in catalina.out) - http://ehcache.org/documentation/shutdown.html
<listener>
<listener-class>net.sf.ehcache.constructs.web.ShutdownListener</listener-class>
</listener>
Behemoth .
RE: Unclean shutdown after cluster ehcache enable (Tomcat 6.0.26)
12 de septiembre de 2010 6:11
Respuesta

Behemoth .

Ranking: New Member

Mensajes: 19

Fecha de incorporación: 3 de agosto de 2008

Mensajes recientes

"the solution should be Tomcat downgrade to the version <6.0.25 or upgrade 6.0.27 or up."
This is the best way. With Tomcat v.6.0.29 (now - last) it works correct.
Caution: files tomcat/bin/setenv.sh in LR's and Tomcat's bundles are not the same.