Comments (9)
图片上的代码在什么路径
from dynamic-tp.
可通过dubbo spi扩展获取Dispatcher对象,但是如何获取WrappedChannelHandler对象,线程池是在WrappedChannelHandler中。 @yanhom1314
from dynamic-tp.
可通过dubbo spi扩展获取Dispatcher对象,但是如何获取WrappedChannelHandler对象,线程池是在WrappedChannelHandler中。 @yanhom1314
AllChannelHandler 是继承 WrappedChannelHandler 的吧
from dynamic-tp.
仔细看了下 dataStore.get() 返回的一个新Map,executorMap.replace(k, proxy) dataStore元数据不会修改,建议用dataStore put覆盖的方式试试。
另外建议排查下Apache Dubbo
from dynamic-tp.
可通过dubbo spi扩展获取Dispatcher对象,但是如何获取WrappedChannelHandler对象,线程池是在WrappedChannelHandler中。 @yanhom1314
AllChannelHandler 是继承 WrappedChannelHandler 的吧
是的
from dynamic-tp.
仔细看了下 dataStore.get() 返回的一个新Map,executorMap.replace(k, proxy) dataStore元数据不会修改,建议用dataStore put覆盖的方式试试。
另外建议排查下Apache Dubbo
有可能是这个问题,apache dubbo 高版本是通过反射获取data的,应该没问题,低版本也可能有这个问题,你有dubbo环境,改完测测吧
from dynamic-tp.
仔细看了下 dataStore.get() 返回的一个新Map,executorMap.replace(k, proxy) dataStore元数据不会修改,建议用dataStore put覆盖的方式试试。
@yanhom1314
另外建议排查下Apache Dubbo有可能是这个问题,apache dubbo 高版本是通过反射获取data的,应该没问题,低版本也可能有这个问题,你有dubbo环境,改完测测吧
不行,不能这么整,还是得想办法替换WrappedChannelHandler中的executor
from dynamic-tp.
扩展方式可以实现,不过dispatcher有5个实现,虽然all是最常用的,但是扩展后,必须配置扩展后的id如图
配置方式,可以由使用方配置原始id如,all,通过beanpost将all替换为CustomAll,这种方式对使用方来说是无感的。这种方式是否可以呢。
from dynamic-tp.
@applenele @ray-lsr 不好直接获取到的话可以用 jvmti 工具,能直接获取到内存中指定类的对象
from dynamic-tp.
Related Issues (20)
- 当任务执行执行超时时尝试中断线程
- undertow线程池管理报java.lang.VerifyError: Cannot inherit from final class异常 HOT 4
- 完善spring-configuration-metadata.json
- dubbo线程池初始化报错:class java.lang.String cannot be cast to class java.lang.Integer HOT 1
- bug: spring boot3接入 grpc线程池适配,影响了 grpc client 调用其他应用
- Optimized ThreadPoolBuilder code
- 简化消息通知Webhook
- 配置了企业微信推送,邮箱推送。但是无法收到推送消息 HOT 10
- 告警时traceId错乱问题
- dubbo 2.7.5以下的版本动态线程池不生效 HOT 1
- 仅配置了线程池,未在代码中使用就收到了告警通知 HOT 3
- 内存泄漏:默认配置下 DtpExecutor 在 AbortPolicy 拒绝策略下,拒绝时产生内存泄露 HOT 1
- 飞书告警报错 HOT 2
- 1.1.6.1版本和Skywalking线程池插件使用内存溢出 HOT 5
- 引入 rabbitmq adapter 后,使用 @RabbitListener 等注解预先定义好监听后,在项目启动后,再使用 RabbitListenerEndpointRegistry 注册监听时,出现 [java.util.concurrent.RejectedExecutionException] HOT 2
- 大佬们可以提供下grafana监控模版json或者id吗 HOT 2
- 在低版本rocketMQ里没有getAsyncSenderExecutor方法导致NoSuchMethodError
- 配置了任务包装器并且使用NamedRunnable.of包装线程,导致设置runnable name为空
- 引入dynamic
- question 引入dynamic启动失败 报 Invalid property 'executors[0].taskWrapperNames[1]' of bean class [org.dromara.dynamictp.common.properties.DtpProperties] HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dynamic-tp.