Return-Path: X-Original-To: apmail-activemq-dev-archive@www.apache.org Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 765FC106D9 for ; Tue, 1 Apr 2014 09:11:52 +0000 (UTC) Received: (qmail 66939 invoked by uid 500); 1 Apr 2014 09:11:51 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 66600 invoked by uid 500); 1 Apr 2014 09:11:48 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 65500 invoked by uid 99); 1 Apr 2014 09:11:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Apr 2014 09:11:42 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gary.tully@gmail.com designates 209.85.213.174 as permitted sender) Received: from [209.85.213.174] (HELO mail-ig0-f174.google.com) (209.85.213.174) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Apr 2014 09:11:35 +0000 Received: by mail-ig0-f174.google.com with SMTP id h18so4559582igc.13 for ; Tue, 01 Apr 2014 02:11:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=ceyqKX3LP3TlFiZT1G0oSJswDxVhh0UO3BQ9gtU64jA=; b=HHIrDyP3rEIeVztjJHtygdl5kmVHzrctIAFkeLSjkdp9nAzsqIP21fulrwEI9nOOE0 igkET0PKsmraWydDnvlZM1mBA64VOYNVLzoEBCyFUls9mMdxVpE/gOVACDblfBUclfmT 5W/m4NtWHmRlwNeaz9XYwDxU7mQMgqt6rVNKqt0PdxE5xvndohWrCSw8/t2qjbAh6raM U07mUvmW/EoJtKU7bn7c4aGOCBOPdD9LxOYt3FNG0sy2Ba+Dbu0DpuYUxWzrcyYikT5l cuhthKxujANxd8KVn2+Fay1ihGilcplgURuX2ffgvlAiSKFvkSmKkwcBFGgMe8p5GC1P 3zaA== MIME-Version: 1.0 X-Received: by 10.50.79.195 with SMTP id l3mr34183igx.36.1396343475212; Tue, 01 Apr 2014 02:11:15 -0700 (PDT) Received: by 10.64.225.205 with HTTP; Tue, 1 Apr 2014 02:11:15 -0700 (PDT) Received: by 10.64.225.205 with HTTP; Tue, 1 Apr 2014 02:11:15 -0700 (PDT) In-Reply-To: References: Date: Tue, 1 Apr 2014 10:11:15 +0100 Message-ID: Subject: Re: [jira] [Commented] (AMQ-4955) TCP Connections and related thread leak. From: Gary Tully To: dev@activemq.apache.org Content-Type: multipart/alternative; boundary=089e01182d0ad3185004f5f78c6e X-Virus-Checked: Checked by ClamAV on apache.org --089e01182d0ad3185004f5f78c6e Content-Type: text/plain; charset=ISO-8859-1 I think it should cause the connection to die. The subs currently don't deal with a dispatch failure wrt stats and redelivery so the only safe thing to do is termination. On 1 Apr 2014 06:28, "Arthur Naseef (JIRA)" wrote: > > [ > https://issues.apache.org/jira/browse/AMQ-4955?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13956124#comment-13956124] > > Arthur Naseef commented on AMQ-4955: > ------------------------------------ > > Reading back through the comments, I see the issue being raised now -- the > eaten IOException for all commands except MessageDispatch. > > I think the right thing to do here is to always re-throw the exception. > Can anyone think of a case in which an IOException on > Broker.preProcessDispatch() or TransportConnection.dispatch() could have a > non-fatal meaning? > > > TCP Connections and related thread leak. > > ---------------------------------------- > > > > Key: AMQ-4955 > > URL: https://issues.apache.org/jira/browse/AMQ-4955 > > Project: ActiveMQ > > Issue Type: Bug > > Components: Broker > > Affects Versions: 5.8.0 > > Environment: Windows 2008 R2, Jdk 1.7.40 > > Reporter: Murali Mogalayapalli > > Assignee: Arthur Naseef > > Attachments: AMQ4955Test.java, TCP-Connection.jpg, > ThreadStack.jpg, activemq.xml > > > > > > TCP Connections and related thread leak. > > Scenario > > Active MQ version 5.8 > > NMS Client version 1.6 > > OS - Windows 2008 R2 > > JDK - 1.7.x > > activemq.xml is attached > > If a client connectivity gets lost between the time the initial socket > is created and the exchange of the wire format, the active MQ server's > Client's server thread gets blocked in socket read hanging out the TCP > connection and the related thread > > Here are the steps to recreate > > 1. Configure the Active MQ server with the activemq.xml attached. > > 2. Start the client in a debugger and have a break point at a place in > such a way that the client can be disconnected after the socket is > established. > > 3. Once the breakpoint is hit, disconnect the client machine from the > network > > 4. Kill the client- This basically simulates a situation where the > socket tear down packets are not reached the active mq server. > > 5. Open the JConsole. Look for the hanging TCP connection and the > related thread. > > Is there an configurable option in Active MQ to sweep and close the > connections, on regular interval, that still didn't finish the wire > protocol negotiation? > > > > -- > This message was sent by Atlassian JIRA > (v6.2#6252) > --089e01182d0ad3185004f5f78c6e--