Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dubbo服务shutdowntomcat时会抛出异常2.6.3 #2476

Closed
funky-eyes opened this issue Sep 10, 2018 · 1 comment
Closed

dubbo服务shutdowntomcat时会抛出异常2.6.3 #2476

funky-eyes opened this issue Sep 10, 2018 · 1 comment

Comments

@funky-eyes
Copy link
Contributor

异常信息:
2018-09-10 10:00:31 -29990 [localhost-startStop-2] DEBUG - Invoking destroy() on bean with name 'com.baomidou.springmvc.common.service.IAffairsService'
2018-09-10 10:00:31 -29990 [localhost-startStop-2] DEBUG - Retrieved dependent beans for bean 'sqlSessionFactory': [affairsMapper]
2018-09-10 10:00:31 -29990 [localhost-startStop-2] DEBUG - Retrieved dependent beans for bean 'affairsMapper': [IAffairsService]
2018-09-10 10:00:31 -29991 [localhost-startStop-2] DEBUG - Retrieved dependent beans for bean 'paginationInterceptor': [sqlSessionFactory]
2018-09-10 10:00:31 -29991 [localhost-startStop-2] DEBUG - Retrieved dependent beans for bean 'dataSource': [transactionManager]
2018-09-10 10:00:31 -29991 [localhost-startStop-2] DEBUG - Retrieved dependent beans for bean 'transactionManager': [transactionAdvice]
2018-09-10 10:00:31 -29991 [localhost-startStop-2] DEBUG - Retrieved dependent beans for bean '(inner bean)#47fe92e3': [transactionAdvice]
2018-09-10 10:00:31 -29991 [localhost-startStop-2] DEBUG - Invoking destroy method 'close' on bean with name 'dataSource'
2018-09-10 10:00:31 -29996 [localhost-startStop-2] INFO - {dataSource-1} closed
九月 10, 2018 10:00:31 上午 org.apache.catalina.core.ApplicationContext log
信息: DubboShutDownListener.contextDestroyed called!
2018-09-10 10:00:31 -29998 [localhost-startStop-2] INFO - [DUBBO] Close all registries [], dubbo version: 2.6.3, current host: 192.168.99.1
九月 10, 2018 10:00:31 上午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
警告: The web application [dubbo_service] appears to have started a thread named [localhost-startStop-1-SendThread(127.0.0.1:2181)] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
java.lang.Thread.sleep(Native Method)
org.apache.zookeeper.ClientCnxnSocketNIO.cleanup(ClientCnxnSocketNIO.java:230)
org.apache.zookeeper.ClientCnxn$SendThread.cleanup(ClientCnxn.java:1246)
org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1182)
九月 10, 2018 10:00:31 上午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
警告: The web application [dubbo_service] appears to have started a thread named [DubboSaveRegistryCache-thread-1] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
sun.misc.Unsafe.park(Native Method)
java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039)
java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442)
java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1074)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
java.lang.Thread.run(Thread.java:748)
九月 10, 2018 10:00:31 上午 org.apache.catalina.core.ApplicationContext log
信息: SessionListener: contextDestroyed()
九月 10, 2018 10:00:31 上午 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: contextDestroyed()
九月 10, 2018 10:00:31 上午 org.apache.coyote.AbstractProtocol stop
信息: Stopping ProtocolHandler ["http-nio-8080"]
九月 10, 2018 10:00:31 上午 org.apache.coyote.AbstractProtocol stop
信息: Stopping ProtocolHandler ["ajp-nio-8009"]
九月 10, 2018 10:00:31 上午 org.apache.coyote.AbstractProtocol destroy
信息: Destroying ProtocolHandler ["http-nio-8080"]
九月 10, 2018 10:00:31 上午 org.apache.coyote.AbstractProtocol destroy
信息: Destroying ProtocolHandler ["ajp-nio-8009"]
我的依赖:


com.alibaba
dubbo
2.6.3


org.springframework
spring


org.jboss.netty
netty


javax.servlet
javax.servlet-api




org.apache.zookeeper
zookeeper
${zookeeper.version}



com.101tec
zkclient
0.8



org.apache.activemq
activemq-all
5.15.5

	<dependency>
		<groupId>org.javassist</groupId>
		<artifactId>javassist</artifactId>
		<version>${javassist.version}</version>
	</dependency>
	<dependency>
		<groupId>org.apache.curator</groupId>
		<artifactId>curator-recipes</artifactId>
		<version>${curator.version}</version>

	</dependency>
	<jstl.version>1.2</jstl.version>
	<zookeeper.version>3.4.10</zookeeper.version>
	<javassist.version>3.22.0-GA</javassist.version>
	<curator.version>2.3.0</curator.version>
	<!--dubbo end -->
@beiwei30
Copy link
Member

Tomcat tries to stop all threads before shutdown. DubboSaveRegistryCache-thread-1 is a daemon thread, pls. ignore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants