[rabbitmq-discuss] publish msg in immediate mode and rabbitmq server's memory is pilling up

Matthias Radestock matthias at rabbitmq.com
Wed Nov 7 14:47:08 GMT 2012


On 07/11/12 13:30, 陈宇剑 wrote:
> i check out that  i use the rabbitmq 2.8.6.

Hmm, that should be fine.

However, ...

note that any 'mandatory'/'immediate' messages that cannot be 
routed/delivered are *returned to the sender*. If the sender is not 
draining those messages from the socket then they could easily pile up 
at the server, causing memory usage to creep up.

As Simon said, 'immediate' is going away, so I recommend that you 
replace it with a per-queue message ttl 
(http://www.rabbitmq.com/ttl.html#per-queue-message-ttl) of 0, as 
previously suggested. Messages discarded that way will simply get 
dropped rather than returned.

Regards,

Matthias.


More information about the rabbitmq-discuss mailing list