[openamq-dev] Open AMQ server crash

Pieter Hintjens ph at imatix.com
Fri Aug 10 14:29:37 CEST 2007


Hi Jayadev,


> See the server console dump...

> 2007-08-10 17:29:39: I: cnn=2 msg=32947 mem=32948K/168081K exc=8 que=1 csm=1

It's pretty clear, the server is being overloaded with messages (32k of them).

I assume your test case has also created queues, otherwise the
publishes would just get thrown away.  The dump shows one queue
(que=1).

Try using the --max_memory_mb option to limit memory.  The server will
throw out messages if it hits the limit.

Better, configure your queues to have a lower limit (the default is
50k messages).  Create a file called amq_server.cfg that contains
this:

<?xml?>
<config>
    <queue_profile name = "private">
        <limit name = "warn" value = "1000" />
        <limit name = "trim" value = "5000" />
    </queue_profile>

    <queue_profile name = "shared">
        <limit name = "warn" value = "1000" />
        <limit name = "kill" value = "5000" />
    </queue_profile>
</config>

-Pieter


More information about the openamq-dev mailing list