Skip to content

4.24/4.25 cannot view JMX beans in dashboard #1350

Closed

Description

@space88man

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

Activity

  1. manueljordan commented on Sep 11, 2024

    @manueljordan

    Hello

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

    Thank You

  2. space88man commented on Sep 11, 2024

    @space88man
    Author

    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
    
  3. BoykoAlex commented on Sep 11, 2024

    @BoykoAlex
    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...

  4. BoykoAlex commented on Sep 11, 2024

    @BoykoAlex
    Contributor

    Fixed with 30abaec

  5. self-assigned this
    on Sep 11, 2024
  6. added this to the 4.26.0.RELEASE milestone on Sep 11, 2024
  7. space88man commented on Sep 11, 2024

    @space88man
    Author

    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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions