【问题标题】:Spring actuator metrics not visible from JMX console from 2.2.0 release onwards从 2.2.0 版本开始,从 JMX 控制台看不到 Spring actuator 指标
【发布时间】:2023-03-03 02:13:01
【问题描述】:

使用 start.spring.io 创建的最简单的 Spring Boot 应用程序,无需进一步更改。添加了3个依赖spring-boot-starter-actuator, spring-boot-starter-web and spring-boot-devtools.

Spring Boot 2.4.0、2.2.0 - org.springframework.boot 指标不可见

Spring Boot 2.1.0 或以前的版本 - 有效

jdk 11 和 15、macOS Catalina 和 windows 中的行为相同。

'/actuator' path is accessible

But org.springframework.boot metrics not visible from JConsole or VisualVM when connected

对于行为的重大改变有什么意义?

【问题讨论】:

    标签: java windows macos spring-boot-actuator


    【解决方案1】:

    显式添加了“micrometer-registry-jmx”依赖

    【讨论】:

    • 我遇到了同样的问题:我有“micrometer-registry-jmx”,但我的非 Web 应用程序 (WebApplicationType.NONE) 缺少“spring-boot-starter-actuator”。似乎没有执行器,没有计算 JMX 指标。
    猜你喜欢
    • 1970-01-01
    • 2015-07-27
    • 2021-05-30
    • 1970-01-01
    • 2019-06-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多