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

Inefficient use of OperationContext.readResourceFromRoot

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.1.0.CR1
    • None
    • Management
    • None

      The single param OperationContext.readResourceFromRoot(...) variant can be quite expensive, as can be the 2 param variant if the 'recursive' param is true. The op returns a clone of the management model, and creating the clone can be expensive if the cloning is recursive and the affected tree is large.

      There are a lot of calls like this in full WildFly that look like they could use the 2 param variant with recursive = false. Some of these are cloning the entire resource tree.

            bstansbe@redhat.com Brian Stansberry
            bstansbe@redhat.com Brian Stansberry
            Martin Simka Martin Simka
            Martin Simka Martin Simka
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: