[openamq-dev] amq_server on AIX with amq.topic exchange crashes after 60K+ messages
Martin Sustrik
sustrik at imatix.com
Thu Sep 13 11:26:54 CEST 2007
Dmitri,
> Yes, this seems to be memory. Our reader isn't reading fast enough from
> queue and amq_server memory usage rapidly grows till process dies. I
> will have to look into how to speedup our reader and how to configure
> amq_server to be more sustainable to this kind of situations.
Slow consumer is a problem for any middleware. As for OpenAMQ you can
configure your queues to have a certain limit. Have a look here:
http://wiki.openamq.org/tutorial:server-runs-out-of-memory-and-crashes
> What is strange is that our reader does not do much, it just sits in a
> loop and waits for content from the queue to arrive. Then it copies a
> content and destroys it. I wonder why it is so much slower then the
> writer. Things much better when I have reader running on the same box,
> maybe it is network...
It's difficult to say. When doing our internal tests, publisher and
subscriber tend to be approximately equally fast. The cause of the
slowness can be slow CPU, slow network, slow OS, whatever...
Martin
More information about the openamq-dev
mailing list