[
https://issues.jboss.org/browse/JBMESSAGING-1906?page=com.atlassian.jira....
]
Yong Hao Gao commented on JBMESSAGING-1906:
-------------------------------------------
Note:
PagingChannelSupport.getMessageCount() is sync also. Looks like no harm to remove the lock
too.
Howard
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