Sense Chan
Sense Chan
tomcat 移除了war包spring执行销毁的时候调用了NotifyCenter.shutdown方法,但监控还有nacosclient的线程还在,tomcat提示还有未释放的线程 ---- 回复的原邮件 ---- | 发件人 | 杨翊 ***@***.***> | | 发送日期 | 2025年06月13日 11:40 | | 收件人 | alibaba/nacos ***@***.***> | | 抄送人 | Sense ***@***.***>, Author ***@***.***>...
tomcat 移除了war包spring执行销毁的时候调用了NotifyCenter.shutdown方法,但监控还有nacosclient的线程还在,tomcat提示还有未释放的线程,手动强强制中断线程后还是有问题,现在释放这些线程和内存资源,在war停止或移除的时候彻底的清理 java.lang.NoClassDefFoundError: com/alibaba/nacos/shaded/io/grpc/netty/shaded/io/netty/util/concurrent/DefaultPromise$1 at com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:500) at com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.netty.util.concurrent.DefaultPromise.setValue0(DefaultPromise.java:636) at com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.netty.util.concurrent.DefaultPromise.setSuccess0(DefaultPromise.java:625) at com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.netty.util.concurrent.DefaultPromise.setSuccess(DefaultPromise.java:97) at com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:1059) at com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) at com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) at java.base/java.lang.Thread.run(Thread.java:1575) Caused by: java.lang.ClassNotFoundException: Illegal access: this web application instance has...
我现在想要的是如何彻底的释放nacos-client的所有资源,在war包在tomcat停止或删除的执行销毁的时候,求教如何代码,谢谢 ---- 回复的原邮件 ---- | 发件人 | 杨翊 ***@***.***> | | 发送日期 | 2025年06月13日 11:40 | | 收件人 | ***@***.***> | | 抄送人 | Sense ***@***.***> , ***@***.***> | |...
@KomachiSion @zhfish @martin-g @jun1st
How to completely release all resources of nacos client when the war package is stopped or deleted in Tomcat and destroyed during execution
How to completely release all resources of the nacos-client when the WAR package is stopped or deleted during the shutdown or destruction process in Tomcat.
How to completely release all resources of the nacos-client when the WAR package is stopped or deleted during the shutdown or destruction process in Tomcat. @KomachiSion @zhfish @martin-g @jun1st
The application using nacos-client deployed in a WAR package, after uninstalling the WAR package, the threads starting with nacos.publisher- are not being released. These nacos.publisher- threads cannot be garbage collected...
这个问题我自己的理解是因为tomcat已经卸载了war包所以它加载不到这个类了,实际上还有nacos client还有线程程序在执行导致的 ---- 回复的原邮件 ---- | 发件人 | 杨翊 ***@***.***> | | 发送日期 | 2025年06月16日 13:55 | | 收件人 | ***@***.***> | | 抄送人 | Sense ***@***.***> , ***@***.***> |...
有调用 ---- 回复的原邮件 ---- | 发件人 | 杨翊 ***@***.***> | | 发送日期 | 2025年06月19日 10:33 | | 收件人 | alibaba/nacos ***@***.***> | | 抄送人 | Sense ***@***.***>, Mention ***@***.***> |...