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

Don't recreate the read-attribute op ModelNode for every read

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • None
    • Micrometer
    • None
    • Undefined
    • ---
    • ---

      MetricsCollector (both in MP Metrics and base) is building up a ModelNode for the read op for each read. Look into creating a static one and cloning it and then just setting the dynamic parts (the address and the attribute name.)

      We do thousands of these per scrape so a minor optimization is a bit less minor.

              jaslee@redhat.com Jason Lee
              bstansbe@redhat.com Brian Stansberry
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: