简体   繁体   中英

How to check the health of embedded tomcat in spring boot application?

Anyone know how to get information of incoming threads / queue size? I want to include it in health check (class extending AbstractHealthIndicator).

You can use Actuator and Micrometer to get data about tomcat in spring boot. But if you want information about Thread you must configure more in spring boot config file.

server.tomcat.mbeanregistry.enabled=true

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM