当前位置: 首页 > 工具软件 > Memory stack > 使用案例 >

springboot启动报错:create a memory leak. Stack trace of thread:(DubboResponseTimeoutScanTimer)

夹谷辰沛
2023-12-01

2019-08-08 18:19:24.050 INFO 20344 — [ main] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} inited
Parsed mapper file: ‘file [D:\anmo\goods-service\target\classes\mapper\goods\ActivityDao.xml]’
2019-08-08 18:19:24.457 INFO 20344 — [ main] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closed
2019-08-08 18:19:24.461 INFO 20344 — [ main] o.apache.catalina.core.StandardService : Stopping service [Tomcat]
2019-08-08 18:19:24.463 INFO 20344 — [ost-startStop-1] io.anmo.listener.DubboServiceListener : 销毁dubbo实例中…
2019-08-08 18:19:24.501 INFO 20344 — [tor-Framework-0] o.a.c.f.imps.CuratorFrameworkImpl : backgroundOperationsLoop exiting
2019-08-08 18:19:24.518 INFO 20344 — [ain-EventThread] org.apache.zookeeper.ClientCnxn : EventThread shut down for session: 0x100000a3ac50134
2019-08-08 18:19:24.518 INFO 20344 — [ost-startStop-1] org.apache.zookeeper.ZooKeeper : Session: 0x100000a3ac50134 closed
2019-08-08 18:19:24.533 INFO 20344 — [ost-startStop-1] io.anmo.listener.DubboServiceListener : 销毁dubbo服务完成!
2019-08-08 18:19:24.535 WARN 20344 — [ost-startStop-1] o.a.c.loader.WebappClassLoaderBase : The web application [goods-service] appears to have started a thread named [DubboResponseTimeoutScanTimer] 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)
com.alibaba.dubbo.remoting.exchange.support.DefaultFuture R e m o t i n g I n v o c a t i o n T i m e o u t S c a n . r u n ( D e f a u l t F u t u r e . j a v a : 301 ) j a v a . l a n g . T h r e a d . r u n ( T h r e a d . j a v a : 748 ) 2019 − 08 − 0818 : 19 : 24.536 W A R N 20344 − − − [ o s t − s t a r t S t o p − 1 ] o . a . c . l o a d e r . W e b a p p C l a s s L o a d e r B a s e : T h e w e b a p p l i c a t i o n [ g o o d s − s e r v i c e ] a p p e a r s t o h a v e s t a r t e d a t h r e a d n a m e d [ D u b b o S h a r e d H a n d l e r − t h r e a d − 1 ] b u t h a s f a i l e d t o s t o p i t . T h i s i s v e r y l i k e l y t o c r e a t e a m e m o r y l e a k . S t a c k t r a c e o f t h r e a d : s u n . m i s c . U n s a f e . p a r k ( N a t i v e M e t h o d ) j a v a . u t i l . c o n c u r r e n t . l o c k s . L o c k S u p p o r t . p a r k N a n o s ( L o c k S u p p o r t . j a v a : 215 ) j a v a . u t i l . c o n c u r r e n t . S y n c h r o n o u s Q u e u e RemotingInvocationTimeoutScan.run(DefaultFuture.java:301) java.lang.Thread.run(Thread.java:748) 2019-08-08 18:19:24.536 WARN 20344 --- [ost-startStop-1] o.a.c.loader.WebappClassLoaderBase : The web application [goods-service] appears to have started a thread named [DubboSharedHandler-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.parkNanos(LockSupport.java:215) java.util.concurrent.SynchronousQueue RemotingInvocationTimeoutScan.run(DefaultFuture.java:301)java.lang.Thread.run(Thread.java:748)2019080818:19:24.536WARN20344[oststartStop1]o.a.c.loader.WebappClassLoaderBase:Thewebapplication[goodsservice]appearstohavestartedathreadnamed[DubboSharedHandlerthread1]buthasfailedtostopit.Thisisverylikelytocreateamemoryleak.Stacktraceofthread:sun.misc.Unsafe.park(NativeMethod)java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215)java.util.concurrent.SynchronousQueueTransferStack.awaitFulfill(SynchronousQueue.java:460)
java.util.concurrent.SynchronousQueue T r a n s f e r S t a c k . t r a n s f e r ( S y n c h r o n o u s Q u e u e . j a v a : 362 ) j a v a . u t i l . c o n c u r r e n t . S y n c h r o n o u s Q u e u e . p o l l ( S y n c h r o n o u s Q u e u e . j a v a : 941 ) j a v a . u t i l . c o n c u r r e n t . T h r e a d P o o l E x e c u t o r . g e t T a s k ( T h r e a d P o o l E x e c u t o r . j a v a : 1073 ) j a v a . u t i l . c o n c u r r e n t . T h r e a d P o o l E x e c u t o r . r u n W o r k e r ( T h r e a d P o o l E x e c u t o r . j a v a : 1134 ) j a v a . u t i l . c o n c u r r e n t . T h r e a d P o o l E x e c u t o r TransferStack.transfer(SynchronousQueue.java:362) java.util.concurrent.SynchronousQueue.poll(SynchronousQueue.java:941) java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1073) java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134) java.util.concurrent.ThreadPoolExecutor TransferStack.transfer(SynchronousQueue.java:362)java.util.concurrent.SynchronousQueue.poll(SynchronousQueue.java:941)java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1073)java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134)java.util.concurrent.ThreadPoolExecutorWorker.run(ThreadPoolExecutor.java:624)
java.lang.Thread.run(Thread.java:748)

项目采用的是springboot + dubbo框架

可能有两种情况会报这种错:
1.mybatis中的xml文件映射或者类路径错了
2.在controller中的访问路径重复了
自己检查了好久才发现!

 类似资料: