[rabbitmq-discuss] bug21444 branch experience
mabrek
mabrek at gmail.com
Fri Nov 27 08:46:57 GMT 2009
On Thu, Nov 26, 2009 at 7:32 PM, Matthew Sackman <matthew at lshift.net> wrote:
>> First trouble was concerned with leaking disk space. Queue files were
>> remaining open after deletion.
>
> I'm not quite sure what you mean by this or how the attached patch
> helps. Can you describe what you were seeing in more detail?
file_handle_cache.erl was rewritten completely in bug21673 and my
workaround became irrelevant for it.
>> From repository changelog I can conclude that there is active
>> development in branch bug21673 and it have changes concerned with disk
>> queue. Is it worth trying?
>
> Yup. This is the active development. It's currently going through QA.
> Please feel free to try it and let us know how you get on with it.
I've tried (rev 8f9f7b0177e6) and crashed it. Test scenario was to
create 4 non-transactional producers without consumers, each producer
was about to send 1m messages with size 10kbytes each.
./scripts/rabbitmqctl list_queues name messages_unacknowledged
messages memory consumers
Listing queues ...
mail.active 0 36414 51855936 0
...done.
Queue disappeared after storing ~40000 messages, client started to
receive returned messages with replyCode 312, replyText 'unroutable',
routingKey mail.active.
./scripts/rabbitmqctl list_queues name messages_unacknowledged
messages memory consumers
Listing queues ...
...done.
And then erlang died with message:
Crash dump was written to: erl_crash.dump
eheap_alloc: Cannot allocate 1824525600 bytes of memory (of type "old_heap").
Aborted
See attached file for crash logs.
Here is small documentation patch for rabbitmqctl list_queues name
storage_mode replying with Error: {bad_argument,storage_mode}
diff -r 8f9f7b0177e6 src/rabbit_control.erl
--- a/src/rabbit_control.erl Thu Nov 26 21:51:35 2009 +0000
+++ b/src/rabbit_control.erl Fri Nov 27 11:34:50 2009 +0300
@@ -174,7 +174,7 @@
<QueueInfoItem> must be a member of the list [name, durable, auto_delete,
arguments, node, messages_ready, messages_unacknowledged,
messages_uncommitted,
-messages, acks_uncommitted, consumers, transactions, memory, storage_mode]. The
+messages, acks_uncommitted, consumers, transactions, memory]. The
default is to display name and (number of) messages.
<ExchangeInfoItem> must be a member of the list [name, type, durable,
Regards,
Anton.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: crash-logs.tgz
Type: application/x-gzip
Size: 151622 bytes
Desc: not available
Url : http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20091127/c1c2f23b/attachment.bin
More information about the rabbitmq-discuss
mailing list