[rabbitmq-discuss] chan.flow and vm_memory_high_watermark

Nicolás César nico at nicocesar.com
Tue Jun 8 12:33:24 BST 2010


Hi.

I'm a having issues with a huge memory consumption with rabbit.

I'm uting rabbit 1.7.2 with Debian Linux


----- /etc/rabbitmq/rabbitmq.config ----
[{rabbit, [{vm_memory_high_watermark, 0.2}]}].
------------------------------------------------------

I hit the maximum:
------ tail -f /var/log/rabbitmq/rabbit.log | grep -i memory ------
vm_memory_high_watermark set. Memory used:434801384 allowed:429496729
    alarm_handler: {set,{vm_memory_high_watermark,[]}}
------------------------------------------------------


I'm  sopposed  to use channel.flow to stop the producer. My python code is:

-------------------------------------------
        while not self.chan.flow(True):
            sys.stdout.write("W")
            sys.stdout.flush()
            time.sleep(1)

        self.chan.basic_publish(msg,
                                exchange=self.config_amqp["exchange"],
                                routing_key=self.config_amqp['routing_key'])
-------------------------------------------

What i'm doing wrong?

BTW, Im using delivery_mode=2 and a durable exchange and queue

PS: thanks tonyg for your irclog:
http://dev.rabbitmq.com/irclog/index.php?date=2010-05-13

Nico César
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20100608/39ea8726/attachment.htm>


More information about the rabbitmq-discuss mailing list