[jboss-jira] [JBoss JIRA] (JBMESSAGING-1906) Add un-synchronized getMessageCount()

Yong Hao Gao (Resolved) (JIRA) jira-events at lists.jboss.org
Wed Oct 26 05:08:45 EDT 2011


     [ https://issues.jboss.org/browse/JBMESSAGING-1906?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Yong Hao Gao resolved JBMESSAGING-1906.
---------------------------------------

    Resolution: Done


solution:

remove the sync blocks from the methods. No new method added.

                
> Add un-synchronized getMessageCount()
> -------------------------------------
>
>                 Key: JBMESSAGING-1906
>                 URL: https://issues.jboss.org/browse/JBMESSAGING-1906
>             Project: JBoss Messaging
>          Issue Type: Enhancement
>          Components: Configuration and Management
>    Affects Versions: 1.4.0.SP3.CP14, 1.4.8.SP3
>            Reporter: Justin Bertram
>            Assignee: Yong Hao Gao
>
> The method org.jboss.messaging.core.impl.ChannelSupport.getMessageCount() is essentially completely synchronized.  This can cause performance problems for management utilities that execute this method via JMX in a polling fashion to gather statistics over time.  Please either remove the synchronization from this method or add another that is not synchronized.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list