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 9C42C10794 for ; Tue, 2 Dec 2014 17:44:01 +0000 (UTC) Received: (qmail 78986 invoked by uid 500); 2 Dec 2014 17:44:01 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 78935 invoked by uid 500); 2 Dec 2014 17:44:01 -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 78900 invoked by uid 99); 2 Dec 2014 17:44:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Dec 2014 17:44:00 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of srp@illinois.edu designates 141.142.199.3 as permitted sender) Received: from [141.142.199.3] (HELO rimantadine.ncsa.uiuc.edu) (141.142.199.3) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Dec 2014 17:43:33 +0000 Received: from fester.ncsa.illinois.edu (fester.ncsa.illinois.edu [141.142.22.4]) (authenticated bits=0) by rimantadine.ncsa.uiuc.edu (8.14.9/8.14.4) with ESMTP id sB2HgpGu025868 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Tue, 2 Dec 2014 11:42:52 -0600 From: Stephen Pietrowicz Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: when should you set maxInactivityDuration=0? Date: Tue, 2 Dec 2014 11:43:00 -0600 Message-Id: To: users@activemq.apache.org Mime-Version: 1.0 (Apple Message framework v1283) X-Mailer: Apple Mail (2.1283) X-Null-Tag: 44c1057198a08aa08e1658a047bc1a0a X-NCSA-MailScanner-Information: Please contact help@ncsa.uiuc.edu for more information, rimantadine.ncsa.uiuc.edu X-NCSA-MailScanner-ID: sB2HgpGu025868 X-NCSA-MailScanner: Found to be clean X-Virus-Checked: Checked by ClamAV on apache.org Some time ago I noticed a dropped connection, and saw an error along the = lines of "Channel was inactive for too long". I made note of various = folks here and elsewhere saying that the way to prevent this from = happening is adding wireFormat.maxInactivityDuration=3D0 So now I've got the time to look into this, and after reading further = into the documentation, I'm not sure under which circumstances I should = change this parameter at all. The inactivity threads are set up in = such a way that if no messages come across after the default (30000 ms) = time, a message is sent to keep the connection active. If there's no = activity because of a broken socket, the "Channel was inactive for too = long" exception gets issued. I'm really hesitant to add this to the URL since I've only seen this = error once. It used to be that sending really long messages would make = this exception come up, but that was fixed several versions ago. =20 Under what circumstances would you set this parameter equal to zero? Steve=