O'Reilly logo

Java 11 Cookbook by Mohamed Sanaulla, Nick Samoylov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How it works...

Spring Boot provides a library called actuator with features to help you monitor and manage the application when deployed to production. This out-of-the-box functionality doesn't require any setup from the developers' side. So you get auditing, health checks, and metrics-gathering all without any work.  

As mentioned before, actuator uses Micrometer to instrument and capture different metrics from the code, such as:

  • JVM memory usage
  • Connection-pooling information
  • Response time of different HTTP endpoints in the app
  • Frequency of invocation of different HTTP endpoints

To enable your application to have these production-ready features, you need to add the following dependency to your pom.xml if you are using Maven (there is ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required