Artemis MQ locking seen from Dynatrace
Issue
- In our case, Artemis client stumbled upon synchronization block of which reported as long LOCK time by Dynatrace. Excerpt from ActiveMQConnectionFactory code confirms this.
- When executing Threads tried to enter synchronised method, it will acquires lock(monitor). This usually take more time compared to unsynchronised version. Since this looks expensive(I stand to be corrected)
- is there other way to improve this? for example using PooledConnectionFactory ...et all.
Environment
- Red Hat AMQ
- 7.3
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.