[rabbitmq-discuss] Memory usage
Hagbard at gmx.de
Mon May 23 15:49:13 BST 2011
Thanks for your answer and sorry for the questions - i just want to know if RabbitMQ is a possible solution for my problem.
Does it mean that RabbitMQ will nerver hit the watermark if the producer slow enough (and the speed of my producers depends on the amount of memory i use)?
In my tests (with no consumers) the memory usage grows constantly with the amount of messages. Sometimes the memory usage decreased but overall it grows until the watermark. Are the producers still too fast for RabbitMQ (and my hardware)?
To solve my problem i have to guarantee that all messages will be queued and not blocked by RabbitMQ.
Thanks a lot
> Since 2.x, RabbitMQ will no longer allow the Erlang process to run out
> of memory and stop due to fast producers and slow consumers.
> If you have a fast producer running constantly, accompanied by a slow
> consumer then the number of queued messages will grow. To prevent this
> from causing out of memory problems, Rabbit will throttle the producer
> once the memory high watermark is hit.
> The throttling works by simply blocking the producer from sending any
> more data over the TCP socket. Once memory drops below the high
> watermark, due to the consumer catching up or messages being flushed to
> disk, the producer can send data again.
> Note that your producer might bounce off the watermark frequently if it
> just keeps publishing without let up.
> Hagbard at gmx.de wrote:
> > Hi,
> > im new to RabbitMQ and i have a question about the memory usage of
> RabbitMQ. I read that since RabbitMQ 2.x i don't need to care about fast
> producers and slow consumers and so don't need to care about the amount of
> messages in a queue and memory usage. After a test yesterday with 2GB memory and
> 4M messages in a queue (no consumer) RabbitMQ reached high memory watermark
> and stopped. Can somebody explain that behaviour?
> > Thanks a lot
> > Hagbard
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
NEU: FreePhone - kostenlos mobil telefonieren!
Jetzt informieren: http://www.gmx.net/de/go/freephone
More information about the rabbitmq-discuss