activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Ermakov (JIRA)" <>
Subject [jira] [Created] (AMQ-3920) Performance issue with delay policy in DestinationBridge.onMessage
Date Tue, 10 Jul 2012 14:29:34 GMT
Sergey Ermakov created AMQ-3920:

             Summary: Performance issue with delay policy in DestinationBridge.onMessage
                 Key: AMQ-3920
             Project: ActiveMQ
          Issue Type: Bug
          Components: Broker
    Affects Versions: 5.6.0
            Reporter: Sergey Ermakov
            Priority: Critical

Incorrect sleep implementation in

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 {                       Thread.sleep(jmsConnector.getReconnectionPolicy().getNextDelay(attempt));
                    } catch(InterruptedException e) {

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message