Description
Incorrect sleep implementation in org.apache.activemq.network.jms.DestinationBridge.onMessage
In the current implementation the condition 'attempt > 0' is true during the first iteration. It causes critical performance problems in high load environment.
Code example from DestinationBridge.onMessage:
...
while (started.get() && message != null && ++attempt <= maxRetries) {
try {
if (attempt > 0) {//IT'S TRUE DURING FIRST ITERATION
try
catch(InterruptedException e)
{ break; } }
...