[ https://issues.apache.org/jira/browse/AMQ-7059?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17310782#comment-17310782 ]
Jean-Baptiste Onofré commented on AMQ-7059: ------------------------------------------- As mentioned in a previous, can you please provide the broker URL (especially if you use failover) ? > 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.15.15, 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)