Uploaded image for project: 'Thorntail'
  1. Thorntail
  2. THORN-1918

Detailed JMX attributes not exposed by swarm.

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2018.3.3
    • Fix Version/s: None
    • Component/s: core
    • Labels:
      None
    • Environment:

      Swarm 2018.3.3, also seen in 2018.4.0-SNAPSHOT
      JDK 1.8.0_162-b12 (oracle not openJDK)
      Linux: 4.15.12-201.fc26.x86_64

    • Story Points:
      5
    • Steps to Reproduce:
      Hide

      Clone swarm-example
      Build JSF module
      Run swar-jar
      Connect via JMC (or other tool)
      Try to find interesting JMX attributes.

      Show
      Clone swarm-example Build JSF module Run swar-jar Connect via JMC (or other tool) Try to find interesting JMX attributes.

      Description

      Detailed JMX attributes and data about the components 'in' a swarm instances are not published via JMX. The detailed attributes I am looking for are those like found under "jboss.as" and "jboss.as.expr" when running a JBOSS EAP or regular Wildfly instance and connecting (locally) via PID with a tool like JMC.

      When I run a simple Swarm WAR and connect to the PID with JMC; those trees or anything like them are missing.

      This can be seen using just using the 'JSF' example in the https://github.com/wildfly-swarm/wildfly-swarm-examples. Build it, run it via java -jar ./target/example-jsf-swarm.jar and connection with JMC; I only get basic JMX data. I doctored the JSF pom and added:

                  <fraction>jmx</fraction>            
                  <fraction>management</fraction>            
      

      Rebuilt and reran; same results. I did see during the swarm startup logging that JMX and management fractions were loaded.

      I created in a project-defaults.yml and ran via: java -jar ./target/example-jsf-swarm.jar -s project-defaults.yml. I got the same results.

      Here is the projects-defaults.yml:

      swarm:
        logging: DEBUG
        jmx:
          audit-log-configuration:
            enabled: true
            log-boot: true
            log-read-only: true
          expression-expose-model:
            domain-name: jboss.as
          jmx-remoting-connector:
            use-management-endpoint: true
          non-core-mbean-sensitivity: true
          resolved-expose-model:
            domain-name: jboss.as.expr   
            proper-property-format: true
          show-model: true
      
      

      There is a google-groups thread about this issue:

      https://groups.google.com/d/msg/wildfly-swarm/mhX6CzsgcIw/0uNDzpcGAgAJ

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  fwelland Fred Welland
                • Votes:
                  2 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated: