You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Mark Payne (JIRA)" <ji...@apache.org> on 2018/05/25 19:26:00 UTC
[jira] [Created] (NIFI-5241) When calculating stats for components,
use synchronized methods instead of atomic variables
Mark Payne created NIFI-5241:
--------------------------------
Summary: When calculating stats for components, use synchronized methods instead of atomic variables
Key: NIFI-5241
URL: https://issues.apache.org/jira/browse/NIFI-5241
Project: Apache NiFi
Issue Type: Improvement
Components: Core Framework
Reporter: Mark Payne
Assignee: Mark Payne
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.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)