Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C05599185 for ; Wed, 11 Apr 2012 09:59:52 +0000 (UTC) Received: (qmail 99429 invoked by uid 500); 11 Apr 2012 09:59:52 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 99307 invoked by uid 500); 11 Apr 2012 09:59:51 -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 99287 invoked by uid 99); 11 Apr 2012 09:59:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Apr 2012 09:59:50 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of torsten@fusesource.com designates 74.125.245.80 as permitted sender) Received: from [74.125.245.80] (HELO na3sys010aog106.obsmtp.com) (74.125.245.80) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Apr 2012 09:59:43 +0000 Received: from mail-bk0-f44.google.com ([209.85.214.44]) (using TLSv1) by na3sys010aob106.postini.com ([74.125.244.12]) with SMTP ID DSNKT4VV+MvTgLyHJ0it1Q2EROJTDyQQ9ncj@postini.com; Wed, 11 Apr 2012 02:59:22 PDT Received: by bkuw5 with SMTP id w5so650074bku.31 for ; Wed, 11 Apr 2012 02:59:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer :x-gm-message-state; bh=OwUoa3PgjQE4VdPjmm+70y46wkCqTbto15jQN27Z2fM=; b=DZzg0e+XcPDZz++02HLdTgdfcox+lzWyx2BARo5avkQYT8y4eduatZMhvTjmNimxH0 /pg3GU3/IQS8w6d0n0GOeoSfbPxNVC8hDaPRbO1IH+usPtl4Rp65J17UefudgqFewfB3 n6wr4uI8RjXqSAHWKE9XPSJPpDYFOvnOYD5p92qnDsjkIVyAS2UYY2ZuG/g6fUxAsdWb ijbFt+Rk/cRNjJP68iZ2+3gSaRjTW+YOvMmMv7x+s/StRjA6d6CWSVF0dJHztbvBMbi9 iJ6aVYc5KbA2U+3JGTe6tGrkCzP13ifhYRN7MsxHTMe1bPIdBTABBPsLKdmQFJmor1ZS chNQ== Received: by 10.204.150.73 with SMTP id x9mr5538860bkv.7.1334138359318; Wed, 11 Apr 2012 02:59:19 -0700 (PDT) Received: from [192.168.178.31] (p57BD6692.dip0.t-ipconnect.de. [87.189.102.146]) by mx.google.com with ESMTPS id hk7sm3731020bkc.2.2012.04.11.02.59.18 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 11 Apr 2012 02:59:19 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1084) Subject: Re: [org.apache.activemq.transport.failover.FailoverTransport] (ActiveMQ Task-55) Successfully connected to From: Torsten Mielke In-Reply-To: Date: Wed, 11 Apr 2012 11:59:17 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <5CCD2720-1EA7-4ACE-AD2E-AB8A00C09744@fusesource.com> References: To: users@activemq.apache.org X-Mailer: Apple Mail (2.1084) X-Gm-Message-State: ALoCoQm2hgx37nfydeUzAU7WFr1TDzSzNfKjAUnR8vJ3q6A2o43ec5Ur3noSP7rYNiiNLE5GbGAW Hello, Correct, these log lines indicate that your JBoss client has reconnected = to the broker.=20 As to why that happened, I don't know. However a reconnect once a day = does not sound like a bigger problem.=20 Is there any information in the broker log as to why the connection was = shut down? Cheers, Torsten Mielke torsten@fusesource.com tmielke@blogspot.com On Apr 11, 2012, at 12:58 AM, qt4x11 wrote: > We have ActiveMQ clustering between our two servers configured as a = network > of brokers. Our config files look like >=20 > brokerName=3D"receiver" persistent=3D"false" useJmx=3D"false" > dataDirectory=3D"${activemq.base}/data" > destroyApplicationContextOnStop=3D"true"> >=20 > >=20 > uri=3D"static:(ssl://le2.comt:61616 > )"/> >=20 > >=20 >=20 > and >=20 >=20 > > uri=3D"static:(ssl://le1.comt:61616 > )"/> > >=20 >=20 > We're starting to see some errors in our JBoss logs that look like >=20 >=20 >=20 > 14:53:37,812 INFO > [org.apache.activemq.transport.failover.FailoverTransport] (ActiveMQ > Task-55) Successfully connected to ssl://le2.com:61616?keepAlive=3Dtrue >=20 >=20 > 14:54:30,213 INFO > [org.apache.activemq.transport.failover.FailoverTransport] (ActiveMQ > Task-57) Successfully connected to ssl://le2.com:61616?keepAlive=3Dtrue >=20 >=20 >=20 > I took a look at the source for > org.apache.activemq.transport.failover.FailoverTransport - this = message > gets written to log when a successfully reconnection event has been = made > from the client - in this case, Java/JBoss. Since JBoss is configured = with > jms_url as a static list of brokers, i.e., >=20 >=20 > failover:( > ssl://le1.com:61616?keepAlive=3Dtrue,ssl://le2.com:61616?keepAlive=3Dtru= e) >=20 >=20 > JBoss attempts to connect to one of the brokers upon startup, the > connection logic randomizes which broker to connect to by default. = What I > think is happening when these messages get written is the client has = lost > connection to the broker it has connected to initially, due to hitting = the > inactivityTimeoutThreshold of 30 seconds somehow - and is attempting = to > reconnect to one of the nodes in our network of brokers. Is this a = correct > assumption? Is it correct that the Java code running in our JBoss > container is writing these types of 'reconnect' messages to the logs? = We > see these messages about once a day, is that too frequent for that = period > of time? The reason I ask is that some clients are reporting errors, = and > we were able to correlate that to when these 'reconnecton' events = appear in > our logs. >=20 >=20 > The reason the client needs to reconnect to the failover cluster is = unclear > to me. There are no indications of an ActiveMQ server restart at this > time, just that connection between client and broker needs to be > reestablished. Can anyone recommend anything we can do to prevent = these > types of reconnection events from happening as much as possible, given = our > setup? Or anything we can reconfigure that may be causing frequent > reconnection events? Thanks.