question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

3.0.0-M5: JMX Endpoint Exposure

See original GitHub issue

From the Release Notes

By default, only the health endpoint is now exposed over JMX, to align with the default web endpoint exposure. This can be changed by configuring the management.endpoints.jmx.exposure.include and management.endpoints.jmx.exposure.exclude properties.

What needs to be done

To guarantee that JMX endpoint exposure is exactly the same as prior to 3.0 the settings in 2.7 should be restored and the user should be warned about the implications and how to secure JMX endpoints.

Report

Condition

Application is a Spring Boot 3.0.0 application and management.endpoints.jmx.exposure.include is not set.

Section

By default, only the health endpoint is now exposed over JMX, to align with the default web endpoint exposure. This can be changed by configuring the management.endpoints.jmx.exposure.include and management.endpoints.jmx.exposure.exclude properties. As Spring Boot Migrator can’t tell if the JMX endpoints provided in 2.7 are used, the recipe will restore the defaults as in 2.7 by setting management.endpoints.jmx.exposure.include=*. This exposes all management endpoints over JMX. To provide only required information over JMX we strongly recommend to configure the management.endpoints.jmx.exposure.include property to your specific needs and only expose required JMX endpoints. Please consult the reference documentation Spring Boot 3.0.0-M5 or after 3.0.0 is GA: Spring Boot 3.0.0

Recipe

Condition

Application is a Spring Boot 3.0.0 application and management.endpoints.jmx.exposure.include is not set.

Action

  • Set management.endpoints.jmx.exposure.include=* in application.properties

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:16 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
fabapp2commented, Oct 8, 2022

Hi @ishu-thakur Thanks for asking these questions! Your questions highlighted more missing bits in #446 I will answer your questions there, hoping it’s helpful for others.

1reaction
DevPJ9commented, Sep 30, 2022

Hello @fabapp2.I know @ishu-thakur and will be able to sync with him. Thanks for your suggestion and support.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Production-ready Features - Spring
Exposing Endpoints. By default, only the health endpoint is exposed over HTTP and JMX. Since Endpoints may contain sensitive information, you should carefully ......
Read more >
Chapter 18. Monitoring Spring with JMX - liveBook · Manning
Figure 18.1. Actuator endpoints are automatically exposed as JMX MBeans. · Figure 18.2. Using JConsole to display logging levels from a Spring Boot...
Read more >
Apache James Server 3 - Monitor via JMX
You can monitor James Server via JMX. The managed objects are exposed from ... Simply launch jconsole to access the exposed attributes and...
Read more >
How to Enable All Endpoints in Spring Boot Actuator - Baeldung
In this tutorial, we're going to learn how to enable all the endpoints in the Spring Boot Actuator. We'll start with the necessary...
Read more >
Spring Boot Actuator Endpoints - DigitalOcean
Spring Boot Actuator Endpoints are exposed over JMX and HTTP, most of the times we use HTTP based Actuator endpoints because they are...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found