Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-6250

JMX inefficiently handles resource adapters

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Done
    • 10.0.0.Final
    • 11.0.0.Alpha1
    • JCA, JMX
    • None

    Description

      If you connect to JBoss over JMX when it has many rars deployed (over 500), long running high CPU is seen in the following calls:

              at org.jboss.as.controller.ModelControllerImpl.execute(ModelControllerImpl.java:188)
              at org.jboss.as.jmx.model.ResourceAccessControlUtil.getResourceAccess(ResourceAccessControlUtil.java:85)
              at org.jboss.as.jmx.model.RootResourceIterator.doIterate(RootResourceIterator.java:51)
              at org.jboss.as.jmx.model.RootResourceIterator.doIterate(RootResourceIterator.java:61)
              at org.jboss.as.jmx.model.RootResourceIterator.doIterate(RootResourceIterator.java:61)
              at org.jboss.as.jmx.model.RootResourceIterator.doIterate(RootResourceIterator.java:61)
              at org.jboss.as.jmx.model.RootResourceIterator.doIterate(RootResourceIterator.java:61)
              at org.jboss.as.jmx.model.RootResourceIterator.doIterate(RootResourceIterator.java:61)
              at org.jboss.as.jmx.model.RootResourceIterator.doIterate(RootResourceIterator.java:61)
              at org.jboss.as.jmx.model.RootResourceIterator.iterate(RootResourceIterator.java:43)
      

      It's evident that it is iterating over each deployment (each resource adapter counting as a deployment), but for each deployment, it is also iterating over all resource adapter's and their config properties. So it would iterate over all 500+ resource adapters once for each deployment, so it iterates over all 500 adapters at least 500 times. Is there anyway we could avoid that n^2 iteration for deployed rars?

      Attachments

        1. README.txt
          0.5 kB
        2. xaa
          10.00 MB
        3. xab
          10.00 MB
        4. xac
          10.00 MB
        5. xad
          8.41 MB

        Issue Links

          Activity

            People

              smaestri@redhat.com Stefano Maestri
              smaestri@redhat.com Stefano Maestri
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: