Giter VIP home page Giter VIP logo

Comments (9)

thenextsupersun avatar thenextsupersun commented on June 5, 2024

图片上的代码在什么路径

from dynamic-tp.

applenele avatar applenele commented on June 5, 2024

可通过dubbo spi扩展获取Dispatcher对象,但是如何获取WrappedChannelHandler对象,线程池是在WrappedChannelHandler中。 @yanhom1314

image

from dynamic-tp.

yanhom1314 avatar yanhom1314 commented on June 5, 2024

可通过dubbo spi扩展获取Dispatcher对象,但是如何获取WrappedChannelHandler对象,线程池是在WrappedChannelHandler中。 @yanhom1314

image

AllChannelHandler 是继承 WrappedChannelHandler 的吧

from dynamic-tp.

applenele avatar applenele commented on June 5, 2024

image

仔细看了下 dataStore.get() 返回的一个新Map,executorMap.replace(k, proxy) dataStore元数据不会修改,建议用dataStore put覆盖的方式试试。
image

@yanhom1314

另外建议排查下Apache Dubbo

from dynamic-tp.

applenele avatar applenele commented on June 5, 2024

可通过dubbo spi扩展获取Dispatcher对象,但是如何获取WrappedChannelHandler对象,线程池是在WrappedChannelHandler中。 @yanhom1314
image

AllChannelHandler 是继承 WrappedChannelHandler 的吧

是的

from dynamic-tp.

yanhom1314 avatar yanhom1314 commented on June 5, 2024

image

仔细看了下 dataStore.get() 返回的一个新Map,executorMap.replace(k, proxy) dataStore元数据不会修改,建议用dataStore put覆盖的方式试试。 image

@yanhom1314

另外建议排查下Apache Dubbo

有可能是这个问题,apache dubbo 高版本是通过反射获取data的,应该没问题,低版本也可能有这个问题,你有dubbo环境,改完测测吧

from dynamic-tp.

applenele avatar applenele commented on June 5, 2024

image
仔细看了下 dataStore.get() 返回的一个新Map,executorMap.replace(k, proxy) dataStore元数据不会修改,建议用dataStore put覆盖的方式试试。 image
@yanhom1314
另外建议排查下Apache Dubbo

有可能是这个问题,apache dubbo 高版本是通过反射获取data的,应该没问题,低版本也可能有这个问题,你有dubbo环境,改完测测吧

不行,不能这么整,还是得想办法替换WrappedChannelHandler中的executor

from dynamic-tp.

ray-lsr avatar ray-lsr commented on June 5, 2024

扩展方式可以实现,不过dispatcher有5个实现,虽然all是最常用的,但是扩展后,必须配置扩展后的id如图
image
配置方式,可以由使用方配置原始id如,all,通过beanpost将all替换为CustomAll,这种方式对使用方来说是无感的。这种方式是否可以呢。

from dynamic-tp.

yanhom1314 avatar yanhom1314 commented on June 5, 2024

@applenele @ray-lsr 不好直接获取到的话可以用 jvmti 工具,能直接获取到内存中指定类的对象

from dynamic-tp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.