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 E39FF18C38 for ; Thu, 10 Mar 2016 19:58:34 +0000 (UTC) Received: (qmail 90094 invoked by uid 500); 10 Mar 2016 19:58:34 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 90023 invoked by uid 500); 10 Mar 2016 19:58:34 -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 89976 invoked by uid 99); 10 Mar 2016 19:58:34 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Mar 2016 19:58:34 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id B5A0C18053A for ; Thu, 10 Mar 2016 19:58:33 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.381 X-Spam-Level: ** X-Spam-Status: No, score=2.381 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_NONE=-0.0001, URI_HEX=1.313, URI_TRY_3LD=0.068] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id Z-GbjrSC-Xuk for ; Thu, 10 Mar 2016 19:58:31 +0000 (UTC) Received: from mwork.nabble.com (mwork.nabble.com [162.253.133.43]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id DF21C5F1BE for ; Thu, 10 Mar 2016 19:58:30 +0000 (UTC) Received: from mjoe.nabble.com (unknown [162.253.133.57]) by mwork.nabble.com (Postfix) with ESMTP id 4E7E41B881146 for ; Thu, 10 Mar 2016 11:48:07 -0800 (PST) Date: Thu, 10 Mar 2016 11:30:29 -0800 (PST) From: swift99 To: users@activemq.apache.org Message-ID: <1457638229483-4709178.post@n4.nabble.com> In-Reply-To: References: <1457554287960-4709127.post@n4.nabble.com> Subject: =?UTF-8?Q?Re:_ActiveMQ_/_JMS_=E2=80=9Closing=E2=80=9D_?= =?UTF-8?Q?messages_-_what_am_I_missing=3F?= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I'm not having much luck with the JMX viewer, but I turned on debug logging to get (I think) the same information. It is very clear that there was two enqueues and one dequeue, with the dequeue of the "end-of-data marker" happening before the dequeue of the intended data. Log entries follow: INFO com.myapp.SourceSelectionReaderImpl - 1 rows were selected as roots in 602 milliseconds. DEBUG org.apache.activemq.broker.region.Queue - localhost Message ID:zip-54580-1457638742697-4:2:2:1:1 sent to queue://Stuff via SQL.401 DEBUG org.apache.activemq.broker.region.Queue - queue://Stuff via SQL.401, subscriptions=2, memory=0%, size=1, pending=0 toPageIn: 1, Inflight: 0, pagedInMessages.size 0, pagedInPendingDispatch.size 0, enqueueCount: 1, dequeueCount: 0, memUsage:2214 INFO com.myapp.SelectedDataJmsWriter - Committed 1 thing to redo log and JMS queue *** Emphasis added - Note that the end of stream marker is posted second *** INFO com.myapp.SourceSelectionReaderImpl - Returning empty thing and end-of-stream placeholder. DEBUG org.apache.activemq.broker.region.Queue - localhost Message ID:zip-54580-1457638742697-4:2:2:1:2 sent to queue://Stuff via SQL.401 DEBUG org.apache.activemq.broker.region.Queue - queue://Stuff via SQL.401, subscriptions=2, memory=0%, size=2, pending=0 toPageIn: 1, Inflight: 1, pagedInMessages.size 1, pagedInPendingDispatch.size 0, enqueueCount: 2, dequeueCount: 0, memUsage:3155 INFO com.myapp.SelectedDataJmsWriter - Committed 1 thing to redo log and JMS queue *** Emphasis added - note that the end of stream marker is retrieved first, the first one is still marked as inflight *** INFO com.myapp.SelectedDataJmsReader - executed read, found end-of-stream marker, returning null DEBUG org.apache.activemq.broker.region.Queue - queue://Stuff via SQL.401, subscriptions=2, memory=0%, size=1, pending=0 toPageIn: 0, Inflight: 1, pagedInMessages.size 1, pagedInPendingDispatch.size 0, enqueueCount: 2, dequeueCount: 1, memUsage:1107 DEBUG org.apache.activemq.broker.region.Queue - queue://Stuff via SQL.401, subscriptions=2, memory=0%, size=1, pending=0 toPageIn: 0, Inflight: 1, pagedInMessages.size 1, pagedInPendingDispatch.size 0, enqueueCount: 2, dequeueCount: 1, memUsage:1107 DEBUG org.apache.activemq.broker.region.AbstractRegion - localhost removing consumer: ID:zip-54580-1457638742697-4:1:2:1 for destination: queue://Stuff via SQL.401 DEBUG org.apache.activemq.broker.region.Queue - queue://Stuff via SQL.401 remove sub: QueueSubscription: consumer=ID:zip-54580-1457638742697-4:1:2:1, destinations=1, dispatched=0, delivered=0, pending=0, lastDeliveredSeqId: 9, dequeues: 1, dispatched: 2, inflight: 1, groups: 0 DEBUG org.apache.activemq.broker.region.Queue - queue://Stuff via SQL.401, subscriptions=1, memory=0%, size=1, pending=0 toPageIn: 0, Inflight: 1, pagedInMessages.size 1, pagedInPendingDispatch.size 0, enqueueCount: 2, dequeueCount: 1, memUsage:1107 INFO org.springframework.batch.core.launch.support.SimpleJobLauncher - Job: [FlowJob: [name=archive-purge]] completed with the following parameters: [{jobName=Stuff via SQL}] and the following status: [COMPLETED] -- View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-JMS-losing-messages-what-am-I-missing-tp4709127p4709178.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.