From the course: Performance Tuning in Spring Apps

Unlock the full course today

Join today to access over 24,900 courses taught by industry experts.

Solution: Spring performance monitoring

Solution: Spring performance monitoring - Spring Tutorial

From the course: Performance Tuning in Spring Apps

Solution: Spring performance monitoring

(upbeat music) - [Instructor] Now, let's work through a solution to the Spring Boot Actuator challenge. As a reminder, the challenge was to expose one and only one Spring Boot Actuator endpoint, the health endpoint, from our DemoApi application as a JMX Bean to VisualVM. So, let's talk through how this is done. The one configuration we need to add to the repository is the exposure application property. In this fashion, management endpoints jmx.exposure.include=health. This is the endpoint we're interested in exposing, management endpoints JMX exposure, and see, it's kind of analogous to the web exposure endpoints that we'd been working with all along. There's also one other property that you inherited in the repository, which is to enable JMX at the spring level, no need for you to enter that yourself. So, this one property should be all we need in order to meet the challenge and see if we succeeded. Here's our…

Contents