[rabbitmq-discuss] rabbitmq-c how many channels I need?

Tim Watson tim at rabbitmq.com
Wed Jun 19 12:25:49 BST 2013

On 19 Jun 2013, at 11:38, 3k4b251 wrote:
> thank  you!    like  you say,  i  not  very  skillful  at  rabbitmq-c.     I
> test  it  ,  I  found  that  if  I  use  the function 
> amqp_maybe_release_buffers()  after  amqp_queue_declare(),  the memory  stop 
> grow up .
> but the function  amqp_basic_consume()  still  have high use  of  memory..?

Probably because it's (a) allocating data to manage the consumer/channel, (b) allocating buffers to handle the incoming data and (c) bringing data in from the kernel (via syscalls such as recv and so on) to user space so as to present it to your application. What exactly were you expecting to see once your application started consuming data from the queues? Of course it's going to use memory!? Are you actually seeing memory use that is unexpected here? Is that because it is (a) higher than you would expect to see, or (b) not getting released when you think it should? One of those two (latter) things might indicate a problem (either in your code or in some library you might be calling) but generally speaking "doing stuff" requires memory, so saying "still have high use of memory" isn't much to go on.

More information about the rabbitmq-discuss mailing list