[rabbitmq-discuss] mnesia tables
Alain Dazzi
alain.dazzi at gmail.com
Wed May 11 00:44:52 BST 2011
Hi,
I was wondering if anyone had a procedure to connect to running rabbitmq
node and
read/extract mnesia records using erlang. For the lack of such tool, I use
grep to try to find stuck
messages in the various queues (cd /var/lib/rabbitmq/mnesia/...node.../ and
grep one of the queues).
Something like ... which seems to only show the schema table.
adazzi at cumulonimbus:~$ erl name node
Erlang R13B03 (erts-5.7.4) [source] [64-bit] [smp:8:8] [rq:8]
[async-threads:0] [hipe] [kernel-poll:false]
Eshell V5.7.4 (abort with ^G)
1> mnesia:start().
ok
2> mnesia:change_config (extra_db_nodes, [ 'node at cumlonimbus.dev.foo.com'
]).
{ok,[]}
3> mnesia:info().
---> Processes holding locks <---
---> Processes waiting for locks <---
---> Participant transactions <---
---> Coordinator transactions <---
---> Uncertain transactions <---
---> Active tables <---
schema : with 1 records occupying 424 words of mem
===> System info in version "4.4.12", debug level = none <===
opt_disc. Directory "/home/adazzi/Mnesia.nonode at nohost" is NOT used.
use fallback at restart = false
running db nodes = [nonode at nohost]
stopped db nodes = []
master node tables = []
remote = []
ram_copies = [schema]
disc_copies = []
disc_only_copies = []
[{nonode at nohost,ram_copies}] = [schema]
3 transactions committed, 0 aborted, 0 restarted, 0 logged to disc
0 held locks, 0 in queue; 0 local transactions, 0 remote
0 transactions waits for other nodes: []
ok
4>
Thanks!
-A
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20110510/63daeb14/attachment.htm>
More information about the rabbitmq-discuss
mailing list