Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

4.24/4.25 cannot view JMX beans in dashboard #1350

Closed
space88man opened this issue Sep 11, 2024 · 5 comments
Closed

4.24/4.25 cannot view JMX beans in dashboard #1350

space88man opened this issue Sep 11, 2024 · 5 comments
Assignees

Comments

@space88man
Copy link

space88man commented Sep 11, 2024

Describe the bug
OS: Fedora 40, x86_64
Java: using the jre inside STS

Since 4.24.0 with actuator/JMX/beans enabled, scraping beans doesn't show in STS dashboard. The endpoint can be scraped with jconsole.

Working 4.23.1 (can scrape beans):

Screenshot from 2024-09-11 19-53-30

Not working 4.24.0/4.25 nightly (cannot scrape beans):

Screenshot from 2024-09-11 19-55-37

To Reproduce

  • Create a Spring starter with Web/Actuator
  • Enable JMX in Run config

Additional Information

  • 4.25 nightly build with Eclipse 4.31 works(!)
  • 4.25 nightly build with Eclipse 4.32 works(!)

Sample

demo-1.zip

@manueljordan
Copy link

Hello

For simplicity could you share here all the properties related with Spring Boot Actuator? Such as spring.jmx.enabled=true

Thank You

@space88man
Copy link
Author

space88man commented Sep 11, 2024

Vanilla 4.24.0-RELEASE (with no p2 updates) is still working:

com.sun.management.jmxremote.authenticate=false
com.sun.management.jmxremote.ssl=false
com.sun.management.jmxremote=
spring.jmx.enabled=true
management.endpoints.jmx.exposure.include=*
com.sun.management.jmxremote.port=40387

@BoykoAlex
Copy link
Contributor

Yes, it's a bug. There is exception thrown from the beans json parser. Not sure if we can squeeze this into 4.25.0 though...

@BoykoAlex
Copy link
Contributor

Fixed with 30abaec

@BoykoAlex BoykoAlex self-assigned this Sep 11, 2024
@BoykoAlex BoykoAlex added this to the 4.26.0.RELEASE milestone Sep 11, 2024
@space88man
Copy link
Author

space88man commented Sep 11, 2024

Fixed with 30abaec

I have built and overridden just that class into sts-4.25.0.RELEASE/ and can confirm that my issue is fixed - the beans pane now renders correctly. Thank you!

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

4 participants