Github user michaelandrepearce commented on a diff in the pull request:
https://github.com/apache/activemq-artemis/pull/1496#discussion_r135966165
--- Diff:
artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/QueueImpl.java
---
@@ -177,9 +177,9 @@
private final ScheduledDeliveryHandler scheduledDeliveryHandler;
- private long messagesAdded;
+ private AtomicLong messagesAdded = new AtomicLong(0);
--- End diff --
To be more memory friendly where lots of queues can the long be volatile
and then use a AtomicLongFieldUpdater to safely update.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---