activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Timothy Bish (JIRA)" <>
Subject [jira] [Commented] (AMQ-4595) QueueBrowser hangs when browsing large queues
Date Fri, 12 Jul 2013 15:39:49 GMT


Timothy Bish commented on AMQ-4595:

The current behavior is definitely still a bug, however there are ways to work around it.
 I'm pretty sure you could get around it by setting a lower memory limit in 5.8 so it doesn't
page in so many messages but I didn't try that.  

The problem is that the Message Audit that's don't to prevent the messages that are redispatched
when not acked by a closed consumer from getting dropped into a browser a second time since
they are read from the pending dispatch message list.  Since this list can grow quite long
in this test case it exceeds the audit depth so we get into a loop since the messages in the
list don't appear to be duplicates.  Its a flaw in the way Queue Browsers are designed currently.
 It wasn't really an issue until we made the change to page in messages for browsers instead
of limiting them to a single page.  
> QueueBrowser hangs when browsing large queues
> ---------------------------------------------
>                 Key: AMQ-4595
>                 URL:
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 5.8.0
>         Environment: All
>            Reporter: Nicholas Rahn
>            Priority: Critical
>              Labels: QueueBrowser
>         Attachments:,, amq-test-20130621T155120.log
> When trying to browse a queue with a QueueBrowser, the browsing will hang and never complete.
This appears to happen only with "a lot" of message in the queue. 1000 messages works correctly,
but 10000 hangs.
> I have attached a unit test that exhibits the problem. Change the "messageToSend" variable
in the test method to see the difference between small queue size and large queue size. 
> I've attached the unit test code as well as the output from one of the runs with 10000

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

View raw message