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