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 891BF78AB for ; Wed, 20 Jul 2011 13:25:19 +0000 (UTC) Received: (qmail 37491 invoked by uid 500); 20 Jul 2011 13:25:19 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 37358 invoked by uid 500); 20 Jul 2011 13:25:17 -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 37345 invoked by uid 99); 20 Jul 2011 13:25:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Jul 2011 13:25:17 +0000 X-ASF-Spam-Status: No, hits=2.9 required=5.0 tests=HTML_MESSAGE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [195.166.52.163] (HELO mail.myedgeservices.com) (195.166.52.163) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Jul 2011 13:25:09 +0000 Received: from CORP-MAIL-002.edge.local (10.105.12.7) by uk-mail-edge.edge.local (10.95.0.4) with Microsoft SMTP Server (TLS) id 14.1.270.1; Wed, 20 Jul 2011 14:24:44 +0100 Received: from cobalt.mettonigroup.com (172.21.252.20) by mail.myedgeservices.com (10.105.12.7) with Microsoft SMTP Server id 14.1.255.0; Wed, 20 Jul 2011 14:24:45 +0100 Received: from nickel.mettonigroup.com ([172.21.252.25]) by cobalt.mettonigroup.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 20 Jul 2011 14:24:45 +0100 Content-Class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01CC46E0.63F211E6" X-MimeOLE: Produced By Microsoft Exchange V6.5 Subject: Connection close not working when Usage Manager Store is reached Full. Date: Wed, 20 Jul 2011 14:24:44 +0100 Message-ID: <3181A30B8C35AB4AA8577B78DDF461380838B372@nickel.mettonigroup.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Connection close not working when Usage Manager Store is reached Full. Thread-Index: AcxG4GPegGbintDGTmqCjQHhfyz+FA== From: Suneel Papineni To: X-OriginalArrivalTime: 20 Jul 2011 13:24:45.0442 (UTC) FILETIME=[64307E20:01CC46E0] X-Virus-Checked: Checked by ClamAV on apache.org ------_=_NextPart_001_01CC46E0.63F211E6 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, =20 I am using ActiveMQ-CPP (v 3.4.0) and ActiveMQ server (v 5.5.0). I am checking what is going to happen when "StoreUsage" memory limit is reached 100%. For this I configured "storeUsage" limit as "1 mb" and tried to send a message. On calling sendMessage, my application got struck and it is hung state for 10 seconds. After that it thrown an error saying "No valid response received for command ....." (I did configure connection.sendTimeout=3D10000) =20 When I try to send message, I could see a INFO message on ActiveMQ which is shown below "Usage Manager Store is Full, 100% of 1048576. Stopping producer..." =20 At this point as there is an error, I thought of closing connection. When I called Connection.close() method, application got hung again for 15 seconds and thrown an error "No valid response received for command: RemoveInfo {.....", thus making connection not closed properly. I could see in browser as the connection still exists. Without closing connection properly, I am unable to reconnect from the application unless application is closed physically (which in my case is not possible as the application performs some other operations). =20 Could someone please let me know why connection is not getting closed at this time. Also please let me know how should I solve this issue. =20 Thanks & Regards Suneel =20 ------_=_NextPart_001_01CC46E0.63F211E6--