Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.10.1
-
None
Description
The ActiveMQServerImpl sessions field is a ConcurrentHashMap. Synchronizing on the ActiveMQServerImpl object to iterate over the map is not necessary. ActiveMQServerImpl#getSession, ActiveMQServerImpl#removeSession and ActiveMQServerImpl#createSession also work on the sessions field without synchronizing on the ActiveMQServerImpl.
Removing the synchronized keyword on the ActiveMQServerImpl#getSessions() methods e.g. improves loading of Connections view, especially when multiple administrators are using the UI.
Attachments
Attachments
Issue Links
- is related to
-
ARTEMIS-2570 Very slow loading of Connections view
- Closed
- links to