You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Claudio Santana (JIRA)" <ji...@apache.org> on 2014/09/02 22:08:22 UTC

[jira] [Updated] (AMQ-5342) Deadlock in network of brokers simple architecture

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

Claudio Santana updated AMQ-5342:
---------------------------------
    Attachment: deadlock.txt
                activemq-b2.xml
                activemq-b1.xml

> Deadlock in network of brokers simple architecture
> --------------------------------------------------
>
>                 Key: AMQ-5342
>                 URL: https://issues.apache.org/jira/browse/AMQ-5342
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Transport
>    Affects Versions: 5.9.1, 5.10.0
>         Environment: Ubuntu 12.04.5 LTS 
> java version "1.7.0_60"
> Java(TM) SE Runtime Environment (build 1.7.0_60-b19)
> Java HotSpot(TM) 64-Bit Server VM (build 24.60-b09, mixed mode)
>            Reporter: Claudio Santana
>            Priority: Critical
>         Attachments: activemq-b1.xml, activemq-b2.xml, deadlock.txt
>
>
> With the following topology:
> producer (1+ threads) --> broker1 <====>broker2 <--- consumer (2+ threads)
> The producer has to be started up 1st and allow to enqueue a few messages, then the consumer threads are started.
> The consumer shows messages to have received only one or two messages while the producer keeps on enqueueing messages normally. The scenario doesn't happen when the consumer threads are started 1st then the producers but if the consumers are disconnected and then reconnected the issue is visible again. I'm using the swiss army open wire example clients.
> Consumer starting command line:
> ant consumer -Durl=tcp://localhost:61627 -Dtopic=false -Dmax=200 -DparallelThreads=2 -DsleepTime=100
> Producer starting command line:
> ant producer -Durl=tcp://localhost:61626 -Dtopic=false -Dmax=400 -DparallelThreads=1 -DsleepTime=100 -DmessageSize=1000
> Taking a thread dump I can see a deadlock. look at the attached file for details. I also attached the brokers configurations.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)