Return-Path: X-Original-To: apmail-qpid-users-archive@www.apache.org Delivered-To: apmail-qpid-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 4642E9D97 for ; Fri, 2 Dec 2011 13:30:52 +0000 (UTC) Received: (qmail 16471 invoked by uid 500); 2 Dec 2011 13:30:52 -0000 Delivered-To: apmail-qpid-users-archive@qpid.apache.org Received: (qmail 16448 invoked by uid 500); 2 Dec 2011 13:30:52 -0000 Mailing-List: contact users-help@qpid.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@qpid.apache.org Delivered-To: mailing list users@qpid.apache.org Received: (qmail 16437 invoked by uid 99); 2 Dec 2011 13:30:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Dec 2011 13:30:51 +0000 X-ASF-Spam-Status: No, hits=-3.7 required=5.0 tests=RCVD_IN_DNSWL_HI,SPF_HELO_PASS,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of kim.vdriet@redhat.com designates 209.132.183.28 as permitted sender) Received: from [209.132.183.28] (HELO mx1.redhat.com) (209.132.183.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Dec 2011 13:30:45 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id pB2DUOMV011706 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 2 Dec 2011 08:30:24 -0500 Received: from [10.16.16.49] (busy-beaver.bos.redhat.com [10.16.16.49]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id pB2DUNBp021866 for ; Fri, 2 Dec 2011 08:30:23 -0500 Subject: Re: How to clear the Journal so I can restart C++ Broker? From: Kim van der Riet To: users@qpid.apache.org In-Reply-To: <1322774943179-7052224.post@n2.nabble.com> References: <1322774943179-7052224.post@n2.nabble.com> Content-Type: text/plain; charset="UTF-8" Organization: Red Hat Date: Fri, 02 Dec 2011 08:30:23 -0500 Message-ID: <1322832623.30849.113.camel@busy-beaver.bos.redhat.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 X-Virus-Checked: Checked by ClamAV on apache.org Using the --help parameter (with the store loaded) will show the store options. If you start the broker with the --log-enable info+ option, it will give you some useful information on the store (as well as other workings of the broker). Take note of where it reports that the store is located on broker startup: ... 2011-12-02 07:22:01 notice Store module initialized; store-dir=/data/store ... To destroy the store and start again, simply remove all the contents of this directory before you start the broker ("rm -rf /data/store/*" for the example above) You can also start the broker with the "--truncate yes". The default store size is set using the --num-jfiles and --jfile-size-pgs options. The python Qmf tools can be used to create individual queues with stores that are different from the default set on the broker command-line. The --jfile-size-pgs option sets the file size in multiples of 64 KiB, so to get a byte value for each file, multiply the parameter by 64 KiB to get the final size. The default value is 24. The default value for --num-jfiles is 8. To get the total store size, multiply as follows (in this case for the default values): each file: 24 pages * (64 * 1024) bytes/page = 1572864 bytes (~1.5MB) total per-queue store size: 1572864 * 8 files = 12582912 bytes (~12MB) As a rule of thumb for non-transactional messages, keep the store at least twice the size of your maximum expected message depth. On Thu, 2011-12-01 at 13:29 -0800, dmounessa wrote: > I get the following error when starting the qpidd > > Daemon startup failed: Queue N200: recoverQueues() failed: jexception 0x0205 > jcntl::recover() threw JERR_JCNTL_RECOVERJFULL: Journal data files full, > cannot write. (MessageStoreImpl.cpp:820) > > How do I clear the journal so I can start it up? > > How do I delete the queues with /usr/bin/qpid-config -- since it can not > connect to it? > > is there a way to expand the journal file? > > > -- > View this message in context: http://apache-qpid-users.2158936.n2.nabble.com/How-to-clear-the-Journal-so-I-can-restart-C-Broker-tp7052224p7052224.html > Sent from the Apache Qpid users mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > Apache Qpid - AMQP Messaging Implementation > Project: http://qpid.apache.org > Use/Interact: mailto:users-subscribe@qpid.apache.org > --------------------------------------------------------------------- Apache Qpid - AMQP Messaging Implementation Project: http://qpid.apache.org Use/Interact: mailto:users-subscribe@qpid.apache.org