spring-projects / sts4

The next generation of tooling for Spring Boot, including support for Cloud Foundry manifest files, Concourse CI pipeline definitions, BOSH deployment manifests, and more... - Available for Eclipse, Visual Studio Code, and Theia
https://spring.io/tools
Eclipse Public License 1.0
872 stars 205 forks source link

4.24/4.25 cannot view JMX beans in dashboard #1350

Closed space88man closed 4 weeks ago

space88man commented 4 weeks ago

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

Additional Information

Sample

demo-1.zip

manueljordan commented 4 weeks ago

Hello

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

Thank You

space88man commented 4 weeks ago

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 commented 4 weeks ago

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 commented 4 weeks ago

Fixed with 30abaec4d6e2bf6d2fe09c500e388edca3e1ee25

space88man commented 3 weeks ago

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!