Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 7230 invoked from network); 16 Feb 2007 20:48:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Feb 2007 20:48:44 -0000 Received: (qmail 66898 invoked by uid 500); 16 Feb 2007 20:48:51 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 66879 invoked by uid 500); 16 Feb 2007 20:48: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 66870 invoked by uid 99); 16 Feb 2007 20:48:51 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Feb 2007 12:48:51 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of jackh@google.com designates 216.239.45.13 as permitted sender) Received: from [216.239.45.13] (HELO smtp-out.google.com) (216.239.45.13) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Feb 2007 12:48:41 -0800 Received: from zps76.corp.google.com (zps76.corp.google.com [172.25.146.76]) by smtp-out.google.com with ESMTP id l1GKmIJB014803 for ; Fri, 16 Feb 2007 12:48:18 -0800 DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=received:message-id:date:from:to:subject:in-reply-to: mime-version:content-type:content-transfer-encoding: content-disposition:references; b=cCGePlF/0A1Z78kOrDsWrK05Is+zHO11KgHZ62wJkxwQjbTNL8Tq0uEqQEWPevjrh 4R/XzCqpdEv814706WBiQ== Received: from ug-out-1314.google.com (ugem3.prod.google.com [10.66.164.3]) by zps76.corp.google.com with ESMTP id l1GKkhnT012361 for ; Fri, 16 Feb 2007 12:48:14 -0800 Received: by ug-out-1314.google.com with SMTP id m3so333222uge for ; Fri, 16 Feb 2007 12:48:14 -0800 (PST) Received: by 10.82.188.15 with SMTP id l15mr5553627buf.1171658893935; Fri, 16 Feb 2007 12:48:13 -0800 (PST) Received: by 10.82.108.12 with HTTP; Fri, 16 Feb 2007 12:48:13 -0800 (PST) Message-ID: <79d7b4830702161248p20f8340cga90d5b24734e9209@mail.gmail.com> Date: Fri, 16 Feb 2007 15:48:13 -0500 From: "Jack Humphrey" To: users@activemq.apache.org Subject: Re: 4.1 hang in ActiveMQSession.setClientID In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <79d7b4830702131527g15deceb4p281d977cff9963e5@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org Don't have much more data at this point, but what is troubling is that regardless of the state of the broker when the hang starts, when we notice the hang the broker is inevitably working fine and accepting connections. To work around this we're going to try putting our code that establishes the connection in a background thread and kill it if it doesn't complete before a timeout. We recently upgraded from 3.2 and never had this problem there. ++Jack++ On 2/14/07, James Strachan wrote: > The hang could just mean that the broker is down/hung/busy? Its > basically just waiting for the broker to respond. Do you see anything > in the broker log? > > On 2/13/07, Jack Humphrey wrote: > > When creating a new connection, I am sometimes seeing a hang in > > setClientID when it tries to send the info command to the broker. Has > > anyone seen this? Any ideas? Thanks. > > > > Id: 18, Name: ***, State: WAITING, Lock: > > edu.emory.mathcs.backport.java.util.concurrent.locks.CondVar@1f096d6 > > java.lang.Object.wait(Native Method) > > java.lang.Object.wait(Unknown Source) > > edu.emory.mathcs.backport.java.util.concurrent.locks.CondVar.await(CondVar.java:75) > > edu.emory.mathcs.backport.java.util.concurrent.ArrayBlockingQueue.take(ArrayBlockingQueue.java:318) > > org.apache.activemq.transport.FutureResponse.getResult(FutureResponse.java:42) > > org.apache.activemq.transport.ResponseCorrelator.request(ResponseCorrelator.java:75) > > org.apache.activemq.ActiveMQConnection.syncSendPacket(ActiveMQConnection.java:1171) > > org.apache.activemq.ActiveMQConnection.ensureConnectionInfoSent(ActiveMQConnection.java:1259) > > org.apache.activemq.ActiveMQConnection.setClientID(ActiveMQConnection.java:361) > > > > > -- > > James > ------- > http://radio.weblogs.com/0112098/ >