We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
public WrappedChannelHandler(ChannelHandler handler, URL url) { this.handler = handler; this.url = url; // would create a new ThreadPoolExecutor executor = (ThreadPoolExecutor) ExtensionLoader.getExtensionLoader(ThreadPool.class).getAdaptiveExtension().getExecutor(url); }
The text was updated successfully, but these errors were encountered:
那么每个连接几个线程比较合适呢? 我觉得一般来说肯定是一个大的线程池,除非特别重要的方法或者特别慢的方法才需要隔离吧。
Sorry, something went wrong.
@cvictory 是的呀,应该统一一个大线程池就够了呀,为啥这里要隔离呢
Provider端 默认共用同一个线程池,在有些情况下也会根据protocol划分多个线程池,如:
<dubbo:protocol id="1" name="dubbo" port="20880"/> <dubbo:protocol id="2" name="dubbo" port="20881"/>
则protocol 1 和 protocol 2各自使用自己的线程池
Consumer端 当前是每个链接共享一个线程池,如有consumer到3个provider分别有一个长链接,则每个长链接各自使用独立的线程池。
参见这个 #2013
对于consumer线程池,当前正在尝试优化中: #4131
No branches or pull requests
The text was updated successfully, but these errors were encountered: