You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Jean-Baptiste Onofré (Jira)" <ji...@apache.org> on 2021/03/29 16:49:00 UTC

[jira] [Updated] (AMQ-7059) Stale connection hanging at broker during consumer crash

     [ https://issues.apache.org/jira/browse/AMQ-7059?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Baptiste Onofré updated AMQ-7059:
--------------------------------------
    Fix Version/s:     (was: 5.15.15)

> Stale connection hanging at broker during consumer crash
> --------------------------------------------------------
>
>                 Key: AMQ-7059
>                 URL: https://issues.apache.org/jira/browse/AMQ-7059
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Broker, Command Line Tools, JMS client, OSGi/Karaf
>    Affects Versions: 5.14.0
>            Reporter: Hemanathan
>            Assignee: Jean-Baptiste Onofré
>            Priority: Major
>             Fix For: 5.16.2
>
>
> Stale connection hanging at broker during consumer crash :
> Step1 :
> When a consumer is getting attached with ActiveMQ broker, the consumer count is getting increased with one , which is verified through "dstat" command . Also the "netstat" from client machine shows one connection establishment with broker. 
> Netstat:
> tcp        0      0     x.x.x.x:61617         x.x.x.x:44332         ESTABLISHED 18625/java
> dstat value is:
> Name                                                               Queue Size  Producer #  Consumer #   Enqueue #   Dequeue #   Forward #    Memory %
> consumer.xyz.virtualTopic.abc.productUpdateNotificationEvent.1_0           8       0        1            10          2            0            0
> Step2 :
> Kill the client connection and no such connection in netstat from client machine. But still the connection hanging with broker and dstat showing the same result as before. 
> Netstat:
> -NA-
> dstat value is:
> Name                                                                 Queue Size  Producer #  Consumer #   Enqueue #   Dequeue #   Forward #    Memory %
> consumer.xyz.virtualTopic.abc.productUpdateNotificationEvent.1_0           8           0          1            10        2          0            0
> Step 3: 
> Few of the message (multiples of 1000) not getting de-queue even after the new client getting connected. So the number of messages and number of consumers is getting increased on every attempt of client termination. When we try to change the "prefetchPolicy.queuePrefetch" property on consumer side, its reflecting so the number of messages are hanging (as configured in property . Eg. If we set value as "prefetchPolicy.queuePrefetch=10", then 10 messages are hanging on the queue)
> Step 4 : 
> After re-starting the broker , all the pending messages are getting de-queued, Where one client is up and running .



--
This message was sent by Atlassian Jira
(v8.3.4#803005)