Christopher L. Shannon created AMQ-7228:
-------------------------------------------
Summary: Avoid lock contention when getting pending metrics from
subscriptions
Key: AMQ-7228
URL: https://issues.apache.org/jira/browse/AMQ-7228
Project: ActiveMQ
Issue Type: Improvement
Components: Broker
Affects Versions: 5.15.9
Reporter: Christopher L. Shannon
Assignee: Christopher L. Shannon
Fix For: 5.16.0, 5.15.10
I noticed that there are a couple cases where some of the getters for acquiring
pending metrics (and discarded count too) from subscriptions are getting
blocked waiting on the pending cursor mutex in the subscription on a busy
broker. This lock is unnecessary as the cursors already are synchronized
internally so we should be able to get the metrics from the cursors without
having to wait for the mutex which is used to prevent concurrent access for
things such as dispatch, message send etc.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)