Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 0425A200C5E for ; Sat, 22 Apr 2017 23:57:04 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 02D9B160BA2; Sat, 22 Apr 2017 21:57:04 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 47231160B91 for ; Sat, 22 Apr 2017 23:57:03 +0200 (CEST) Received: (qmail 48003 invoked by uid 500); 22 Apr 2017 21:57: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 47992 invoked by uid 99); 22 Apr 2017 21:57:01 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 22 Apr 2017 21:57:01 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 3DC1B1A04A1 for ; Sat, 22 Apr 2017 21:57:01 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.1 X-Spam-Level: ** X-Spam-Status: No, score=2.1 tagged_above=-999 required=6.31 tests=[KAM_COUK=1.1, KAM_LAZY_DOMAIN_SECURITY=1] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 9jrGx3mJF1a7 for ; Sat, 22 Apr 2017 21:56:59 +0000 (UTC) Received: from limey.futurelogix.co.uk (li11-11.members.linode.com [70.85.31.11]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id C3CC25FB5A for ; Sat, 22 Apr 2017 21:56:58 +0000 (UTC) Received: from c-73-174-248-248.hsd1.pa.comcast.net ([73.174.248.248] helo=Steve-Hills-MBP.hsd1.pa.comcast.net) by limey.futurelogix.co.uk with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1d23Am-000486-7P for users@activemq.apache.org; Sat, 22 Apr 2017 18:06:32 -0400 Subject: Re: kahadb recovery To: users@activemq.apache.org References: <91cdff26-2237-a5cd-b77e-4a038b139405@futurelogix.co.uk> From: Steve Hill Message-ID: <4ab9fa05-06a9-5485-43be-b4a4e91a0ff6@futurelogix.co.uk> Date: Sat, 22 Apr 2017 17:56:53 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <91cdff26-2237-a5cd-b77e-4a038b139405@futurelogix.co.uk> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit archived-at: Sat, 22 Apr 2017 21:57:04 -0000 We now realize that the number after the @ is the file number being processed and after the colon is the offset in the file. Eg, 97226:18610005 means db-97226.log is being processed. Based on this at least we now know how far we are through the startup. It looks like it will take a further 2 hours to start, with a total startup time of 8 hours - this feels somewhat excessive! On 4/22/17 4:53 PM, Steve Hill wrote: > Hi! > > Can anyone provide guidance on why restarting ActiveMQ can take > hours? We were seeing lots of message not found in sequence and it is > currently at 5.9M entries recovered. Is there a way to know how many > entries there are so we have an idea when it might finish? > > There are currently about 1600 files in the kahadb data directory and > the total size is 30GB of what about 700mb is the db.data file. > > > 2017-04-22 16:28:21,079 | DEBUG | message not found in sequence id > index: ID:atas01p.x.com-57366-1491745186855-3:1:20207097:1:1 | > org.apache.activemq.store.kahadb.MessageDatabase | main > 2017-04-22 16:28:21,082 | DEBUG | message not found in sequence id > index: ID:atas01p.x.com-57366-1491745186855-3:1:20207096:1:1 | > org.apache.activemq.store.kahadb.MessageDatabase | main > 2017-04-22 16:28:21,187 | DEBUG | message not found in sequence id > index: ID:atas01p.x.com-57366-1491745186855-3:1:20462448:1:1 | > org.apache.activemq.store.kahadb.MessageDatabase | main > 2017-04-22 16:30:56,681 | INFO | @97201:5488429, 5600000 entries > recovered .. | org.apache.activemq.store.kahadb.MessageDatabase | main > 2017-04-22 16:36:17,337 | INFO | @97210:5155402, 5700000 entries > recovered .. | org.apache.activemq.store.kahadb.MessageDatabase | main > 2017-04-22 16:41:45,794 | INFO | @97217:11700458, 5800000 entries > recovered .. | org.apache.activemq.store.kahadb.MessageDatabase | main > 2017-04-22 16:47:19,324 | INFO | @97226:18610005, 5900000 entries > recovered .. | org.apache.activemq.store.kahadb.MessageDatabase | main > > Any guidance would be much appreciated. > > Thanks! > > Steve. >