【问题标题】:How to check the health of embedded tomcat in spring boot application?如何在 Spring Boot 应用程序中检查嵌入式 tomcat 的健康状况?
【发布时间】:2018-07-10 02:49:30
【问题描述】:

有人知道如何获取传入线程/队列大小的信息吗?我想将它包含在健康检查中(扩展 AbstractHealthIndicator 的类)。

【问题讨论】:

    标签: java apache tomcat spring-boot health-monitoring


    【解决方案1】:

    您可以使用 Actuator 和 Micrometer 在 Spring Boot 中获取有关 tomcat 的数据。但是如果你想要关于 Thread 的信息,你必须在 spring boot 配置文件中配置更多。

    server.tomcat.mbeanregistry.enabled=true

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-04-21
      • 2019-03-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-05-29
      相关资源
      最近更新 更多