[rabbitmq-discuss] Durable queue disappears

Ben Hood 0x6e6562 at gmail.com
Wed Sep 10 23:11:46 BST 2008


Sreeni

On Wed, Sep 10, 2008 at 10:55 PM, Sreeni Kankanala
<Sreeni.Kankanala at palm.com> wrote:
> Hi Ben,
>
> I am new to RabbitMQ and trying to use it from y'day.

Cool.

> Installed rabbitMq 1.4.0 on debian java client on windows, everything looks good, ran some basic admin tasks and sample examples provided.
>
> My question is wondering is there a way to see the messages, queues in rabbitMQ throw browser or some other means.
>
> How to use the rabbit_amqqueue:stat_all()?

Normally when you run Rabbit, the name of the Erlang node that it is
running in is called rabbit at YOUR_HOSTNAME.

So to start a remote shell to that node, start a new Erlang shell
using the following command line:

$ erl -sname foo -remsh rabbit at YOUR_HOSTNAME

Then you should see:

Erlang (BEAM) emulator version 5.6.4 [source] [smp:2]
[async-threads:0] [kernel-poll:false]

Eshell V5.6.4  (abort with ^G)
(rabbit at xlr8)1>

(As an aside, if you had run rabbit in the foreground and could access
it's Erlang shell, you would see the following pop up when the 2nd
node connects to it: node foo at xlr8 up).

In the remote shell, type in rabbit_amqqueue:stat_all():

(rabbit at xlr8)1> rabbit_amqqueue:stat_all().
[{ok,{resource,<<"/">>,queue,<<"foo1221083995729">>},0,0}]

And there you go.

BTW, one request - please post to the list and not to me personally :-)

HTH,

Ben




More information about the rabbitmq-discuss mailing list