使用hystrix-dashboard监控服务时,发现Thread Pool信息会一直处于Loading状态,如图

Hystrix Dashboard的Thread pools一直处于Loading

有两种情况

1.还没发送请求

没有进行feign调用,暂时没有记录

解决方法:

  给dashboard监控的服务发送一个请求

2.Hystrix的隔离策略

监控Spring Cloud Zuul构建的API网关,Hystrix 的隔离策略也会导致处于loading

解决的方法:

  将Hystrix的隔离策略修改为线程池的方式

修改配置文件,添加

#设置Hystrix隔离策略为线程池
zuul.ribbon-isolation-strategy=thread
#每个路由使用独立的线程池
zuul.thread-pool.use-separate-thread-pools=true

重启服务

Hystrix Dashboard的Thread pools一直处于Loading

 

相关文章:

  • 2021-09-25
  • 2021-08-28
  • 2022-12-23
  • 2022-12-23
  • 2021-06-04
  • 2021-10-09
  • 2022-12-23
猜你喜欢
  • 2021-11-24
  • 2021-04-29
  • 2022-12-23
  • 2022-12-23
  • 2021-07-14
  • 2021-11-23
  • 2021-10-23
相关资源
相似解决方案