You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Christopher L. Shannon (JIRA)" <ji...@apache.org> on 2019/06/14 14:49:00 UTC

[jira] [Resolved] (AMQ-7228) Avoid lock contention when getting pending metrics from subscriptions

     [ https://issues.apache.org/jira/browse/AMQ-7228?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Christopher L. Shannon resolved AMQ-7228.
-----------------------------------------
    Resolution: Fixed

> 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
>            Priority: Minor
>             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)