spring-cloud-hystrix之Unable to connect to Command Metric Stream.异常
来源:互联网 发布:mac重新安装cocoapods 编辑:程序博客网 时间:2024/05/22 16:55
解决方法:
1,检查是否添加以下依赖
<!--监控中心--><dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-actuator</artifactId> </dependency><!-- hystrix 断路器--><dependency><groupId>org.springframework.cloud</groupId><artifactId>spring-cloud-starter-hystrix</artifactId></dependency><!-- hystrix-dashboard监控 --><dependency><groupId>org.springframework.cloud</groupId><artifactId>spring-cloud-starter-hystrix-dashboard</artifactId></dependency>
2,springboot启动程序是否设置@EnableHystrixDashboard、@EnableCircuitBreaker注解
@EnableFeignClients @EnableDiscoveryClient @SpringBootApplication @EnableHystrixDashboard @EnableCircuitBreaker public class FeignApplication { public static void main(String[] args) { SpringApplication.run(FeignApplication.class, args); } }
3,是否在服务方法上添加 @HystrixCommand配置
@HystrixCommand(fallbackMethod = "addFallBack", threadPoolProperties = { @HystrixProperty(name = "coreSize", value = "30"), @HystrixProperty(name = "maxQueueSize", value = "101"), @HystrixProperty(name = "keepAliveTimeMinutes", value = "2"), @HystrixProperty(name = "queueSizeRejectionThreshold", value = "15"), @HystrixProperty(name = "metrics.rollingStats.numBuckets", value = "12"), @HystrixProperty(name = "metrics.rollingStats.timeInMilliseconds", value = "1440") }, commandProperties = { @HystrixProperty(name="execution.isolation.strategy", value="SEMAPHORE"), @HystrixProperty(name = "execution.isolation.thread.timeoutInMilliseconds", value = "100"), @HystrixProperty(name = "circuitBreaker.requestVolumeThreshold", value = "50") })
4,hystrix dashboard主页是否正确设置Monitor Stream
一般为:域名:端口/hystrix.stream
阅读全文
12 0
- spring-cloud-hystrix之Unable to connect to Command Metric Stream.异常
- spring-cloud-hystrix之Unable to connect to Command Metric Stream.异常
- Hystrix仪表盘--Unable to connect to Command Metric Stream
- Unable to connect to Command Metric Stream.解决方案
- Spring Cloud Hystrix: 控制stream推送频率
- Spring Cloud Hystrix: 控制stream推送频率
- 【Spring Cloud】Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletCon
- Unable to connect device
- jxl读取excel文件异常:Unable to recognize OLE stream
- jxl读取excel文件异常:Unable to recognize OLE stream
- Unable to recognize OLE stream
- Spring Cloud系列三 之 Hystrix断路器
- spring cloud之断路器hystrix(五)
- maven/jekinsFailed to connect to repository : Command
- Unable to connect to specified host. 错误
- unable to connect to converter enterprise server
- :“Unable to connect to Manager Service”
- Unable to connect to printd的解决方法
- 数据分析,我该想些什么-以共享单车为例
- echarts的中文乱码问题
- c++运算符优先级
- docker学习笔记05:docker inspect命令
- SpringMVC之Interceptor拦截器
- spring-cloud-hystrix之Unable to connect to Command Metric Stream.异常
- mysql——mmm安装及配置
- EChart 去掉坐标轴刻度线
- 快速入门 Editor.MD---在Web项目里使用 Markdown 编辑器
- 01背包空间优化
- 把awk中的数组赋值给shell中的数组
- 从输入url到页面展示到底发生了什么,转载大神的
- C语言进阶之路-----用函数将一个字符串中的元音字母复制到另一个字符串中
- 如何理解TensorFlow中的batch和minibatch