Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-3498

JMX inefficiently handles resource adapters

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 7.0.0.ER7
    • 7.0.0.ER5
    • JCA, JMX
    • None

      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?

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

            istudens@redhat.com Ivo Studensky
            rhn-support-aogburn Aaron Ogburn
            Michal Jurc Michal Jurc
            Michal Jurc Michal Jurc
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: