Sergey Ermakov created AMQ-3920:
-----------------------------------
Summary: Performance issue with delay policy in
DestinationBridge.onMessage
Key: AMQ-3920
URL: https://issues.apache.org/jira/browse/AMQ-3920
Project: ActiveMQ
Issue Type: Bug
Components: Broker
Affects Versions: 5.6.0
Reporter: Sergey Ermakov
Priority: Critical
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 {
Thread.sleep(jmsConnector.getReconnectionPolicy().getNextDelay(attempt));
} catch(InterruptedException e) {
break;
}
}
...
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira