activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Edwin Yu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMQ-3281) Messages stuck
Date Wed, 25 Jul 2012 18:18:35 GMT

    [ https://issues.apache.org/jira/browse/AMQ-3281?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13422474#comment-13422474
] 

Edwin Yu commented on AMQ-3281:
-------------------------------

Hello, I encountered this issue as well with ActiveMQ 5.6.0.  I attached some debugging screenshots
to this issue.  
In my case, the messages are consumed fine during normal operation.  It *seems* when JVM becomes
busy doing gc, message(s) can be left in the queue forever until the server is restarted.
 It's not 100% reproducible but does occur.  In the JConsole screenshot, you see ConsumerCount=1,
InFlightCount=0, and QueueSize=1.  A message is left unconsumed.
I debugged the ActiveMQ library code.  Please see the debug-1.png and debug-2.png.  A thread
regularly iterates through the queue, finds the pending messages, and tries to page in messages
from kaha db store by filling a batch.  However, AbstractStoreCursor.fillBatch() doesn't 
execute doFillBatch().  And the execution thread finishes without dispatching the pending
message to the consumer.
I don't know what the expected behavior should be, and I don't know if I were debugging the
wrong part of the ActiveMQ code.  ActiveMQ engineers, please let me know where else I should
debug to help identify the problem. Thanks.
                
> Messages stuck
> --------------
>
>                 Key: AMQ-3281
>                 URL: https://issues.apache.org/jira/browse/AMQ-3281
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 5.5.0
>         Environment: Linux and Windows
>            Reporter: Erkan
>            Priority: Critical
>             Fix For: 5.7.0
>
>         Attachments: activemq-jdbc.xml, activemq.log, activemq.xml, debug.zip
>
>
> Sometimes the messages stuck in queue and after restart of activemq then this messages
redeliver to consumer. There are a lot of of topics:
> http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html
> and this some of them:
> http://activemq.2283324.n4.nabble.com/Stuck-messages-Dispatch-issues-td2367852.html
> http://activemq.2283324.n4.nabble.com/Messages-stuck-in-queue-td3244342.html

--
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

        

Mime
View raw message