You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@qpid.apache.org by dmounessa <dm...@yahoo.com> on 2011/12/01 22:29:03 UTC
How to clear the Journal so I can restart C++ Broker?
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
Re: How to clear the Journal so I can restart C++ Broker?
Posted by Paul Colby <pa...@colby.id.au>.
I'm not exactly sure what the problem is, but you can clear the C++
broker's persistent store via the --truncate=yes option... maybe that's
what you're looking for?
AFAIK, the only way to grow the store is to recreate the relevant queues...
but I'm definitely no expert.
Good luck.
pc
----
http://colby.id.au
On Fri, Dec 2, 2011 at 8:29 AM, dmounessa <dm...@yahoo.com> 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
>
>
Re: How to clear the Journal so I can restart C++ Broker?
Posted by dmounessa <dm...@yahoo.com>.
Yes, I wanted to be able to re-size and/or truncate the queues.
I will try these.
Thank You all
--
View this message in context: http://apache-qpid-users.2158936.n2.nabble.com/How-to-clear-the-Journal-so-I-can-restart-C-Broker-tp7052224p7055249.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
Re: How to clear the Journal so I can restart C++ Broker?
Posted by Kim van der Riet <ki...@redhat.com>.
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
Re: How to clear the Journal so I can restart C++ Broker?
Posted by Pavel Moravec <pm...@redhat.com>.
Hi,
There is a tool for (even offline) journal resizing, see e.g. http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_MRG/2/html/Messaging_User_Guide/sect-Messaging_User_Guide-Determining_Journal_Size-Resizing_the_Journal.html (I hope also some qpid documentation covers that):
/usr/libexec/qpid/resize --help
The DIR argument shall be directory <store-directory>/rhn/jnrl/<queue_name>, check settings of --data-dir and/or --store-dir options (or, when running as a service, check directory /var/lib/qpidd).
The simplest way (e.g. if you don't know parameters of the current journal) is to increase the number of journal files (-N parameter of resize command).
Hope that helps.
Kind regards,
Pavel
----- Original Message -----
> From: "dmounessa" <dm...@yahoo.com>
> To: users@qpid.apache.org
> Sent: Thursday, December 1, 2011 10:29:03 PM
> Subject: How to clear the Journal so I can restart C++ Broker?
>
> 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