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 A729918908 for ; Sat, 30 Jan 2016 06:22:16 +0000 (UTC) Received: (qmail 24790 invoked by uid 500); 30 Jan 2016 06:22:16 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 24738 invoked by uid 500); 30 Jan 2016 06:22:16 -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 24726 invoked by uid 99); 30 Jan 2016 06:22:16 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 30 Jan 2016 06:22:16 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id A4FA2C0D25 for ; Sat, 30 Jan 2016 06:22:15 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.287 X-Spam-Level: ** X-Spam-Status: No, score=2.287 tagged_above=-999 required=6.31 tests=[SPF_SOFTFAIL=0.972, URIBL_BLOCKED=0.001, URI_HEX=1.313, URI_TRY_3LD=0.001] autolearn=disabled Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id yg_8ZTKi7Ogc for ; Sat, 30 Jan 2016 06:22:06 +0000 (UTC) Received: from mwork.nabble.com (mwork.nabble.com [162.253.133.43]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTP id 84498204A0 for ; Sat, 30 Jan 2016 06:22:06 +0000 (UTC) Received: from mjoe.nabble.com (unknown [162.253.133.57]) by mwork.nabble.com (Postfix) with ESMTP id B5F3511081DD1 for ; Fri, 29 Jan 2016 22:16:07 -0800 (PST) Date: Fri, 29 Jan 2016 21:58:48 -0800 (PST) From: ipolevoy To: users@activemq.apache.org Message-ID: <1454133528504-4706672.post@n4.nabble.com> In-Reply-To: <975457534.16705056.1453996969243.JavaMail.zimbra@redhat.com> References: <1453938242273-4706550.post@n4.nabble.com> <1654018509.16146163.1453948664907.JavaMail.zimbra@redhat.com> <1453949903951-4706555.post@n4.nabble.com> <975457534.16705056.1453996969243.JavaMail.zimbra@redhat.com> Subject: Re: ActiveMQ does not send some messages MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi, Justin. We are getting this condition every day. Here is some more information. When largemessages directory has some files that do not get processed, we can still get the count of messages in queues like this: ObjectName queueName = ObjectNameBuilder.DEFAULT.getJMSQueueObjectName(queueName); JMSQueueControl queueControl = MBeanServerInvocationHandler.newProxyInstance(ManagementFactory.getPlatformMBeanServer(), queueName, JMSQueueControl.class, false); int count = queueControl.countMessages(null); The number returned by this code corresponds to number of files in the directory. When a broker is in this state, we are trying to peek inside the queue with this code: session = consumerConnection.createSession(); Enumeration messages = session.createBrowser(queue).getEnumeration(); for (int i = 0; i < messageCount && messages.hasMoreElements(); i++) { TextMessage msg = (TextMessage) messages.nextElement(); ///... } However, no messages are returned by this code. So, the message count in queue is not 0, but cannot browse messages with QueueBrowser. As before, restarting the broker makes problems go away and all messages somehow get recognized and delivered. Another new condition now: there is one file in largemessages directory, but its size is 0 bytes, and its name is 3255027.msg Is this information helpful in any way? tx -- View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-does-not-send-some-messages-tp4706550p4706672.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.