From users-return-50900-archive-asf-public=cust-asf.ponee.io@activemq.apache.org Mon Feb 4 19:49:35 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 4DA27180651 for ; Mon, 4 Feb 2019 20:49:35 +0100 (CET) Received: (qmail 68680 invoked by uid 500); 4 Feb 2019 19:49: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 68669 invoked by uid 99); 4 Feb 2019 19:49:33 -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; Mon, 04 Feb 2019 19:49:33 +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 2D9D7183D76 for ; Mon, 4 Feb 2019 19:49:33 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.459 X-Spam-Level: ** X-Spam-Status: No, score=2.459 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_NONE=-0.0001, SPF_FAIL=0.919, SPF_HELO_PASS=-0.001, URI_HEX=1.313, URI_TRY_3LD=0.228] 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 lMU_JzCOF8V2 for ; Mon, 4 Feb 2019 19:49:31 +0000 (UTC) Received: from n4.nabble.com (n4.nabble.com [199.38.86.66]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id D7C2A5F19D for ; Mon, 4 Feb 2019 19:49:30 +0000 (UTC) Received: from n4.nabble.com (localhost [127.0.0.1]) by n4.nabble.com (Postfix) with ESMTP id 290DD5173EA9 for ; Mon, 4 Feb 2019 13:49:30 -0600 (CST) Date: Mon, 4 Feb 2019 13:49:30 -0600 (CST) From: bterhune To: users@activemq.apache.org Message-ID: <1549309770166-0.post@n4.nabble.com> In-Reply-To: References: <1521042124728-0.post@n4.nabble.com> <1521482212063-0.post@n4.nabble.com> Subject: Re: Camel Routing places KahaDB in an unexpected place MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Using ActiveMQ 5.15.8 now, I took your advice and put breakpoints around. Here is what I found.. 1. On startup I hit MessageDatabase.setDirectory() with our customer folder "/data/activemq/kahadb" 2. KahaDB directories are correct, let some time pass for messages to pass across broker 3. Shutdown.. (We launcher a broker instance from our Java application) I hit a breakpoint in BrokerService.createPersistenceAdapter():2503 Call Stack of breakpoint getDataDirectoryFile:1096, BrokerService (org.apache.activemq.broker) getBrokerDataDirectory:1101, BrokerService (org.apache.activemq.broker) createPersistenceAdapter:2503, BrokerService (org.apache.activemq.broker) getPersistenceAdapter:1267, BrokerService (org.apache.activemq.broker) getSystemUsage:1179, BrokerService (org.apache.activemq.broker) checkMemorySystemUsageLimits:2178, BrokerService (org.apache.activemq.broker) start:611, BrokerService (org.apache.activemq.broker) doCompositeConnect:127, VMTransportFactory (org.apache.activemq.transport.vm) compositeConnect:91, TransportFactory (org.apache.activemq.transport) * doReconnect:1011, FailoverTransport (org.apache.activemq.transport.failover)* iterate:148, FailoverTransport$2 (org.apache.activemq.transport.failover) runTask:133, PooledTaskRunner (org.apache.activemq.thread) run:48, PooledTaskRunner$1 (org.apache.activemq.thread) runWorker:1149, ThreadPoolExecutor (java.util.concurrent) run:624, ThreadPoolExecutor$Worker (java.util.concurrent) run:748, Thread (java.lang) If I had to guess, perhaps our camel connection to another broker is attempting to re-establish the connection on broker shutdown and this is causing an empty KahaDB to be created? -- Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html