Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 20056 invoked from network); 8 Jul 2010 13:51:01 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 8 Jul 2010 13:51:01 -0000 Received: (qmail 53122 invoked by uid 500); 8 Jul 2010 13:51:00 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 53002 invoked by uid 500); 8 Jul 2010 13:50:58 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 52994 invoked by uid 99); 8 Jul 2010 13:50:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Jul 2010 13:50:58 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,SPF_HELO_PASS,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Jul 2010 13:50:51 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1OWrUk-0004rL-I7 for users@activemq.apache.org; Thu, 08 Jul 2010 06:50:30 -0700 Message-ID: <29107245.post@talk.nabble.com> Date: Thu, 8 Jul 2010 06:50:30 -0700 (PDT) From: dbrondy To: users@activemq.apache.org Subject: Strange behavior using failover and network of broker MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: dbrondy@yahoo.fr X-Virus-Checked: Checked by ClamAV on apache.org Hi everybody, We are currently using ActiveMQ 5.2 application in our project and we are glad to use this great app. One of our java application is misbehaving while receiving and producing message and I don't have a lot of clue to troubleshoot the problem. In fact, we are using 4 computers to run ActiveMQ broker. The following configuration has been implemented : BROKER1 : BROKER2 : BROKER3 : BROKER4 : Following is the illustrated topology : http://old.nabble.com/file/p29107245/topology.jpg All our applications use Topic. They publish and subscribe messages using a TopicConnectionFactory defined as follow : failover:(tcp://BROKER1:61616?connectionTimeout=2000&soTimeout=2000&wireFormat.maxInactivityDuration=2000,tcp://BROKER2:61616?connectionTimeout=2000&soTimeout=2000&wireFormat.maxInactivityDuration=2000,tcp://BROKER3:61616?connectionTimeout=2000&soTimeout=2000&wireFormat.maxInactivityDuration=2000,tcp://BROKER4:61616?connectionTimeout=2000&soTimeout=2000&wireFormat.maxInactivityDuration=2000)?jms.useAsyncSend=true&maxReconnectDelay=2000&backup=false&useExponentialBackOff=false&maxReconnectAttempts=2 The application causing troubles subscribes bytes messages on Topic A, performs a dedicated processing internally and publishes object messages on Topic B. The bytes messages posted on Topic A are created by 6 or 7 publishers. Object messages published on Topic B are also received by different consumers. All messages used for now are NON PERSISTENT message and all subscritions are non durable with AUTO-ACKNOWLEDGE mode. After 3 or 4 days of normal work, the transport thread called "ActiveMQ Transport: tcp://BROKER1/10.160.14.31:61616" starts been recreated and connected on another broker element. More precisely, during 3 days, the application used the BROKER1 for publish/subscribe and at a given time, the transport thread get recreated passing randomly from one element to all other BROKER element every 5 minutes (more or less). Remark : it never came back connected on BROKER1. After couple of switching, I see our application unable retaining a large amount of incoming messages which cannot be treated in a timely maner. If we don't do anything, the application will fails in JavaHeapSpace. Could it be possible to get a kind of duplicated message flooding at the time the transport get reconnected ? Is our BROKER configuration suitable (topology and network connector definition) ? Does someone see this problem already ? I will really appreciate any clue, ideas or recommandation. Tks in advance and thanks for all the great job you do. denis -- View this message in context: http://old.nabble.com/Strange-behavior-using-failover-and-network-of-broker-tp29107245p29107245.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.