Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-5241

When calculating stats for components, use synchronized methods instead of atomic variables

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.7.0
    • Core Framework
    • None

    Description

      Currently, the EventSumValue that is used to calculate stats for components, such as bytes in, bytes out, etc. using AtomicLong's and AtomicInteger's, etc to keep track of values. This made sense at first when there were only a few stats. Now, however, they hold about 17 different values and the atomic updates / atomic reads are more expensive than a synchronized method would be. This can cause sluggishness in the UI after the instance has been running for a while, especially if there are a lot of processors.

      Attachments

        Issue Links

          Activity

            People

              markap14 Mark Payne
              markap14 Mark Payne
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: