[rabbitmq-discuss] Rabbit-MQ crashing
Tony Garnock-Jones
tonyg at lshift.net
Thu Nov 12 14:25:55 GMT 2009
Hi Derek,
(Replying here as well for the archive)
Derek Burdick wrote:
> I have a durable, fanout exchange and queue. I post persistent messages
> to the exchange. After sending messages for some time, the ERL process
> stops and I can not restart RabbitMQ without deleting the contents of
> the Database. Here is the log from startup:
> [...]
> {{{badmatch,eof},
> [{rabbit_persister,internal_load_snapshot,2},
> [...]
RabbitMQ has become overfull, and crashed during persister log rollover
as a result. You probably have a zero-byte-long rabbit_persister.LOG,
and a large rabbit_persister.LOG.previous. Make a backup of the
.previous file somewhere else, just in case, and then copy it over top
of the rabbit_persister.LOG file and start the broker. You shouldn't
need to delete the whole database.
We're working on fixing the underlying cause, but for now, you must not
store more messages than (some proportion of) your available RAM can
hold. If you are simply buffering things without trying to consume them,
then you will probably need to introduce some consumers of some kind :-)
and if you do have consumers running, but Rabbit is running out of
memory anyway, you should probably check that you are acknowledging
deliveries from the broker properly.
Regards,
Tony
--
[][][] Tony Garnock-Jones | Mob: +44 (0)7905 974 211
[][] LShift Ltd | Tel: +44 (0)20 7729 7060
[] [] http://www.lshift.net/ | Email: tonyg at lshift.net
More information about the rabbitmq-discuss
mailing list