Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] Procedure for shutting down CDO when running in Tomcat
[CDO] Procedure for shutting down CDO when running in Tomcat [message #1233559] Mon, 20 January 2014 01:13 Go to next message
Scott Dybiec is currently offline Scott DybiecFriend
Messages: 146
Registered: July 2009
Senior Member
I'm using a CDO client in a web application. When I close all the CDO
sessions my applications uses and then attempt to shutdown Tomcat (or
when Eclipse's WTP tries to restart it) Tomcat hangs up, because of
there are threads running. The console messages are below.

What's the proper way to shutdown CDO, so that all the threads it
manages are gracefully quiesced?

INFO: A valid shutdown command was received via the shutdown port.
Stopping the Server instance.
Jan 19, 2014 8:08:24 PM org.apache.coyote.AbstractProtocol pause
INFO: Pausing ProtocolHandler ["http-bio-8080"]
Jan 19, 2014 8:08:24 PM org.apache.coyote.AbstractProtocol pause
INFO: Pausing ProtocolHandler ["ajp-bio-8009"]
Jan 19, 2014 8:08:24 PM org.apache.catalina.core.StandardService
stopInternal
INFO: Stopping service Catalina
Jan 19, 2014 8:08:24 PM org.apache.catalina.loader.WebappClassLoader
clearReferencesThreads
SEVERE: The web application [/com.humanfactor.rw.lrs.webapp] appears to
have started a thread named [EMF Reference Cleaner] but has failed to
stop it. This is very likely to create a memory leak.
Jan 19, 2014 8:08:24 PM org.apache.catalina.loader.WebappClassLoader
clearReferencesThreads
SEVERE: The web application [/com.humanfactor.rw.lrs.webapp] appears to
have started a thread named [Net4jBufferPoolMonitor] but has failed to
stop it. This is very likely to create a memory leak.
Jan 19, 2014 8:08:24 PM org.apache.catalina.loader.WebappClassLoader
clearReferencesThreads
SEVERE: The web application [/com.humanfactor.rw.lrs.webapp] appears to
have started a thread named [TCPSelector] but has failed to stop it.
This is very likely to create a memory leak.
Jan 19, 2014 8:08:24 PM org.apache.catalina.loader.WebappClassLoader
clearReferencesThreads
SEVERE: The web application [/com.humanfactor.rw.lrs.webapp] appears to
have started a thread named [Net4jReceiveSerializer-Channel[Control,
CLIENT]] but has failed to stop it. This is very likely to create a
memory leak.
Jan 19, 2014 8:08:24 PM org.apache.catalina.loader.WebappClassLoader
checkThreadLocalMapForLeaks
SEVERE: The web application [/com.humanfactor.rw.lrs.webapp] created a
ThreadLocal with key of type
[org.eclipse.emf.internal.cdo.object.CDOLegacyWrapper$1] (value
[org.eclipse.emf.internal.cdo.object.CDOLegacyWrapper$1@728314a5]) and a
value of type [java.util.HashMap] (value [{}]) but failed to remove it
when the web application was stopped. Threads are going to be renewed
over time to try and avoid a probable memory leak.
Jan 19, 2014 8:08:24 PM org.apache.catalina.loader.WebappClassLoader
checkThreadLocalMapForLeaks
SEVERE: The web application [/com.humanfactor.rw.lrs.webapp] created a
ThreadLocal with key of type
[org.eclipse.emf.internal.cdo.object.CDOLegacyWrapper$2] (value
[org.eclipse.emf.internal.cdo.object.CDOLegacyWrapper$2@7bc0975e]) and a
value of type
[org.eclipse.emf.internal.cdo.object.CDOLegacyWrapper.Counter] (value
[org.eclipse.emf.internal.cdo.object.CDOLegacyWrapper$Counter@2111dbcb])
but failed to remove it when the web application was stopped. Threads
are going to be renewed over time to try and avoid a probable memory leak.
Jan 19, 2014 8:08:24 PM org.apache.catalina.loader.WebappClassLoader
checkThreadLocalMapForLeaks
SEVERE: The web application [/com.humanfactor.rw.lrs.webapp] created a
ThreadLocal with key of type
[org.eclipse.emf.internal.cdo.object.CDOLegacyWrapper$1] (value
[org.eclipse.emf.internal.cdo.object.CDOLegacyWrapper$1@728314a5]) and a
value of type [java.util.HashMap] (value [{}]) but failed to remove it
when the web application was stopped. Threads are going to be renewed
over time to try and avoid a probable memory leak.
Jan 19, 2014 8:08:24 PM org.apache.catalina.loader.WebappClassLoader
checkThreadLocalMapForLeaks
SEVERE: The web application [/com.humanfactor.rw.lrs.webapp] created a
ThreadLocal with key of type
[org.eclipse.emf.internal.cdo.object.CDOLegacyWrapper$2] (value
[org.eclipse.emf.internal.cdo.object.CDOLegacyWrapper$2@7bc0975e]) and a
value of type
[org.eclipse.emf.internal.cdo.object.CDOLegacyWrapper.Counter] (value
[org.eclipse.emf.internal.cdo.object.CDOLegacyWrapper$Counter@2111dbcb])
but failed to remove it when the web application was stopped. Threads
are going to be renewed over time to try and avoid a probable memory leak.
Jan 19, 2014 8:08:24 PM org.apache.catalina.loader.WebappClassLoader
checkThreadLocalMapForLeaks
SEVERE: The web application [/com.humanfactor.rw.lrs.webapp] created a
ThreadLocal with key of type
[org.eclipse.emf.internal.cdo.object.CDOLegacyWrapper$1] (value
[org.eclipse.emf.internal.cdo.object.CDOLegacyWrapper$1@728314a5]) and a
value of type [java.util.HashMap] (value [{}]) but failed to remove it
when the web application was stopped. Threads are going to be renewed
over time to try and avoid a probable memory leak.
Jan 19, 2014 8:08:24 PM org.apache.catalina.loader.WebappClassLoader
checkThreadLocalMapForLeaks
SEVERE: The web application [/com.humanfactor.rw.lrs.webapp] created a
ThreadLocal with key of type
[org.eclipse.emf.internal.cdo.object.CDOLegacyWrapper$2] (value
[org.eclipse.emf.internal.cdo.object.CDOLegacyWrapper$2@7bc0975e]) and a
value of type
[org.eclipse.emf.internal.cdo.object.CDOLegacyWrapper.Counter] (value
[org.eclipse.emf.internal.cdo.object.CDOLegacyWrapper$Counter@2111dbcb])
but failed to remove it when the web application was stopped. Threads
are going to be renewed over time to try and avoid a probable memory leak.
Jan 19, 2014 8:08:24 PM org.apache.catalina.loader.WebappClassLoader
checkThreadLocalMapForLeaks
SEVERE: The web application [/com.humanfactor.rw.lrs.webapp] created a
ThreadLocal with key of type
[org.eclipse.emf.internal.cdo.object.CDOLegacyWrapper$1] (value
[org.eclipse.emf.internal.cdo.object.CDOLegacyWrapper$1@728314a5]) and a
value of type [java.util.HashMap] (value [{}]) but failed to remove it
when the web application was stopped. Threads are going to be renewed
over time to try and avoid a probable memory leak.
Jan 19, 2014 8:08:24 PM org.apache.catalina.loader.WebappClassLoader
checkThreadLocalMapForLeaks
SEVERE: The web application [/com.humanfactor.rw.lrs.webapp] created a
ThreadLocal with key of type
[org.eclipse.emf.internal.cdo.object.CDOLegacyWrapper$2] (value
[org.eclipse.emf.internal.cdo.object.CDOLegacyWrapper$2@7bc0975e]) and a
value of type
[org.eclipse.emf.internal.cdo.object.CDOLegacyWrapper.Counter] (value
[org.eclipse.emf.internal.cdo.object.CDOLegacyWrapper$Counter@2111dbcb])
but failed to remove it when the web application was stopped. Threads
are going to be renewed over time to try and avoid a probable memory leak.
Jan 19, 2014 8:08:24 PM org.apache.coyote.AbstractProtocol stop
INFO: Stopping ProtocolHandler ["http-bio-8080"]
Jan 19, 2014 8:08:24 PM org.apache.coyote.AbstractProtocol stop
INFO: Stopping ProtocolHandler ["ajp-bio-8009"]
Jan 19, 2014 8:08:24 PM org.apache.coyote.AbstractProtocol destroy
INFO: Destroying ProtocolHandler ["http-bio-8080"]
Jan 19, 2014 8:08:24 PM org.apache.coyote.AbstractProtocol destroy
INFO: Destroying ProtocolHandler ["ajp-bio-8009"]
Re: [CDO] Procedure for shutting down CDO when running in Tomcat [message #1234746 is a reply to message #1233559] Wed, 22 January 2014 18:07 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6441
Registered: July 2009
Senior Member
Am 20.01.2014 02:13, schrieb scott@xxxxxxxx:
> I'm using a CDO client in a web application. When I close all the CDO sessions my applications uses and then attempt
> to shutdown Tomcat (or when Eclipse's WTP tries to restart it) Tomcat hangs up, because of there are threads running.
> The console messages are below.
>
> What's the proper way to shutdown CDO, so that all the threads it manages are gracefully quiesced?
>
> INFO: A valid shutdown command was received via the shutdown port. Stopping the Server instance.
> Jan 19, 2014 8:08:24 PM org.apache.coyote.AbstractProtocol pause
> INFO: Pausing ProtocolHandler ["http-bio-8080"]
> Jan 19, 2014 8:08:24 PM org.apache.coyote.AbstractProtocol pause
> INFO: Pausing ProtocolHandler ["ajp-bio-8009"]
> Jan 19, 2014 8:08:24 PM org.apache.catalina.core.StandardService stopInternal
> INFO: Stopping service Catalina
> Jan 19, 2014 8:08:24 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
> SEVERE: The web application [/com.humanfactor.rw.lrs.webapp] appears to have started a thread named [EMF Reference
> Cleaner] but has failed to stop it. This is very likely to create a memory leak.
This one has to be answered by Ed. He's on vacation for 2 more weeks).

> Jan 19, 2014 8:08:24 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
> SEVERE: The web application [/com.humanfactor.rw.lrs.webapp] appears to have started a thread named
> [Net4jBufferPoolMonitor] but has failed to stop it. This is very likely to create a memory leak.
> Jan 19, 2014 8:08:24 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
> SEVERE: The web application [/com.humanfactor.rw.lrs.webapp] appears to have started a thread named [TCPSelector] but
> has failed to stop it. This is very likely to create a memory leak.
These two threads are most likely (depending on how you've set up everything) started within an IManagedContainer such
as IPluginContainer.INSTANCE. This container should be deactivated explicitely on shutdown to dispose of resources such
as threads and thread pools.

> Jan 19, 2014 8:08:24 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
> SEVERE: The web application [/com.humanfactor.rw.lrs.webapp] appears to have started a thread named
> [Net4jReceiveSerializer-Channel[Control, CLIENT]] but has failed to stop it. This is very likely to create a memory leak.
This one is a little suspicious because it indicates either an open connection/channel in the embedded Net4j client or a
problem in Net4j (thread not properly terminated). Even in the latter case the containing thread pool should be stopped
when you deactivate the IMAnageContainer.

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


> Jan 19, 2014 8:08:24 PM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
> SEVERE: The web application [/com.humanfactor.rw.lrs.webapp] created a ThreadLocal with key of type
> [org.eclipse.emf.internal.cdo.object.CDOLegacyWrapper$1] (value
> [org.eclipse.emf.internal.cdo.object.CDOLegacyWrapper$1@728314a5]) and a value of type [java.util.HashMap] (value
> [{}]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try
> and avoid a probable memory leak.
> Jan 19, 2014 8:08:24 PM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
> SEVERE: The web application [/com.humanfactor.rw.lrs.webapp] created a ThreadLocal with key of type
> [org.eclipse.emf.internal.cdo.object.CDOLegacyWrapper$2] (value
> [org.eclipse.emf.internal.cdo.object.CDOLegacyWrapper$2@7bc0975e]) and a value of type
> [org.eclipse.emf.internal.cdo.object.CDOLegacyWrapper.Counter] (value
> [org.eclipse.emf.internal.cdo.object.CDOLegacyWrapper$Counter@2111dbcb]) but failed to remove it when the web
> application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
> Jan 19, 2014 8:08:24 PM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
> SEVERE: The web application [/com.humanfactor.rw.lrs.webapp] created a ThreadLocal with key of type
> [org.eclipse.emf.internal.cdo.object.CDOLegacyWrapper$1] (value
> [org.eclipse.emf.internal.cdo.object.CDOLegacyWrapper$1@728314a5]) and a value of type [java.util.HashMap] (value
> [{}]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try
> and avoid a probable memory leak.
> Jan 19, 2014 8:08:24 PM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
> SEVERE: The web application [/com.humanfactor.rw.lrs.webapp] created a ThreadLocal with key of type
> [org.eclipse.emf.internal.cdo.object.CDOLegacyWrapper$2] (value
> [org.eclipse.emf.internal.cdo.object.CDOLegacyWrapper$2@7bc0975e]) and a value of type
> [org.eclipse.emf.internal.cdo.object.CDOLegacyWrapper.Counter] (value
> [org.eclipse.emf.internal.cdo.object.CDOLegacyWrapper$Counter@2111dbcb]) but failed to remove it when the web
> application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
> Jan 19, 2014 8:08:24 PM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
> SEVERE: The web application [/com.humanfactor.rw.lrs.webapp] created a ThreadLocal with key of type
> [org.eclipse.emf.internal.cdo.object.CDOLegacyWrapper$1] (value
> [org.eclipse.emf.internal.cdo.object.CDOLegacyWrapper$1@728314a5]) and a value of type [java.util.HashMap] (value
> [{}]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try
> and avoid a probable memory leak.
> Jan 19, 2014 8:08:24 PM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
> SEVERE: The web application [/com.humanfactor.rw.lrs.webapp] created a ThreadLocal with key of type
> [org.eclipse.emf.internal.cdo.object.CDOLegacyWrapper$2] (value
> [org.eclipse.emf.internal.cdo.object.CDOLegacyWrapper$2@7bc0975e]) and a value of type
> [org.eclipse.emf.internal.cdo.object.CDOLegacyWrapper.Counter] (value
> [org.eclipse.emf.internal.cdo.object.CDOLegacyWrapper$Counter@2111dbcb]) but failed to remove it when the web
> application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
> Jan 19, 2014 8:08:24 PM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
> SEVERE: The web application [/com.humanfactor.rw.lrs.webapp] created a ThreadLocal with key of type
> [org.eclipse.emf.internal.cdo.object.CDOLegacyWrapper$1] (value
> [org.eclipse.emf.internal.cdo.object.CDOLegacyWrapper$1@728314a5]) and a value of type [java.util.HashMap] (value
> [{}]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try
> and avoid a probable memory leak.
> Jan 19, 2014 8:08:24 PM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
> SEVERE: The web application [/com.humanfactor.rw.lrs.webapp] created a ThreadLocal with key of type
> [org.eclipse.emf.internal.cdo.object.CDOLegacyWrapper$2] (value
> [org.eclipse.emf.internal.cdo.object.CDOLegacyWrapper$2@7bc0975e]) and a value of type
> [org.eclipse.emf.internal.cdo.object.CDOLegacyWrapper.Counter] (value
> [org.eclipse.emf.internal.cdo.object.CDOLegacyWrapper$Counter@2111dbcb]) but failed to remove it when the web
> application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
> Jan 19, 2014 8:08:24 PM org.apache.coyote.AbstractProtocol stop
> INFO: Stopping ProtocolHandler ["http-bio-8080"]
> Jan 19, 2014 8:08:24 PM org.apache.coyote.AbstractProtocol stop
> INFO: Stopping ProtocolHandler ["ajp-bio-8009"]
> Jan 19, 2014 8:08:24 PM org.apache.coyote.AbstractProtocol destroy
> INFO: Destroying ProtocolHandler ["http-bio-8080"]
> Jan 19, 2014 8:08:24 PM org.apache.coyote.AbstractProtocol destroy
> INFO: Destroying ProtocolHandler ["ajp-bio-8009"]


Previous Topic:CDO as running a server from a java class
Next Topic:CDO ArrayIndexOutOfBoundsException on rollback due to contains optimization in DelegatingEcoreEList.
Goto Forum:
  


Current Time: Mon Aug 26 01:19:10 GMT 2019

Powered by FUDForum. Page generated in 0.03041 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top