1 Spring Boot Actutator

1.1 SpringBoot中引入依赖

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-actuator</artifactId>
</dependency>

1.2 开放端口

health info

management:
  endpoints:
    web:
      exposure:
        include: '*'

1.3 游览器查看

 

1.4 可视化界面Spring Boot Admin

https://github.com/yuanyu-1997/spring-cloud-alibaba/tree/master/01-spring-boot-actuator


2 Sentinel Dashboard


3 Spring Cloud Sleuth + Zipkin


4 JVM监控

  • Spring Boot Actuator: metrics/heapdump/threaddump
  • Java自带的JVM监控工具:jconsole/jvisualvm


5 GC日志/线程Dump日志/堆Dump可视化分析

GCEasy:https://gceasy.io/

-Xmx5m -XX:+PrintGCDetails -Xloggc:gc.log

FastThread:https://fastthread.io/

HeapHero:https://heaphero.io/

GCPlot:http://ggplot.yhathq.com/ 


6 日志监控ELK

ELK(Elasticsearch + Logstash + Kibana)

http://www.imooc.com/article/291751 

6.1 ELK架构

6.2 效果

 

Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐