chency147 commented on issue #6696: URL: https://github.com/apache/dubbo/issues/6696#issuecomment-2227877230
同意,我们生产环境因为这个拒绝策略内部跑 ThreadDump 会导致 20s+ 的 JVM停服。 我们的服务单副本tps 1k+,大内存服务。线程池的占满多数情况是因为轻微的网络抖动导致数据查询夯住,一般抖动持续1s左右马上就能恢复,而且能利用拒绝策略快速失败,consumer侧会故障转移,此过程对业务无感。 但是因为这个 JStackDump 操作反而使得1s的问题扩大到20s+,注意停服期间 provider侧 是无响应的,consumer侧只能够等到请求超时从而故障转移,从而影响到了业务RT。 我这边目前的做法是自己实现了线程池和 AbortPolicyWithoutReport 的拒绝策略(使用SPI注册到服务里面就能配置使用),解掉了这个问题。参考官方文档:https://cn.dubbo.apache.org/zh-cn/overview/mannual/java-sdk/reference-manual/spi/description/threadpool/ 。 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
