That should've gone to the whole list:<br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Alan Antonuk</b> <span dir="ltr"><<a href="mailto:alan.antonuk@gmail.com">alan.antonuk@gmail.com</a>></span><br>
Date: Tue, May 15, 2012 at 9:43 AM<br>Subject: Re: [rabbitmq-discuss] RabbitMQ Memory Leak<br>To: Rakesh <<a href="mailto:rmadhwan@gmail.com">rmadhwan@gmail.com</a>><br><br><br>After stewing about this a bit more, I suspect you're never calling amqp_maybe_release_buffers(), which is what releases memory allocated when receiving frames from the broker. You should do this after you have used the data in the amqp_frame_t's you get from amqp_simple_wait_frame().<div>
<br></div><div>amqp_destroy_connection() should also release all memory associated with a amqp_connection_state_t object</div><div><br></div><div>If the above is not helpful, could you post the minimum code required to reproduce the memory leaks you're seeing.</div>
<span class="HOEnZb"><font color="#888888">
<div><br></div></font></span><div><span class="HOEnZb"><font color="#888888">-Alan<br><br></font></span><div class="gmail_quote"><div class="im">On Fri, May 11, 2012 at 8:51 AM, Rakesh <span dir="ltr"><<a href="mailto:rmadhwan@gmail.com" target="_blank">rmadhwan@gmail.com</a>></span> wrote:<br>
</div><div><div class="h5"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
We are using RabbitMQ in our project and while running PurifyPlus on<br>
the application, I found memory leaks in librabbitmq.<br>
How do I submit the fixes for this?<br>
<br>
<br>
MLK: 47579136 bytes leaked in 363 blocks<br>
* This memory was allocated from:<br>
calloc [rtlib.o]<br>
amqp_pool_alloc [amqp_mem.c:140]<br>
amqp_handle_input [amqp_connection.c:197]<br>
wait_frame_inner [amqp_socket.c:168]<br>
amqp_simple_rpc [amqp_socket.c:286]<br>
amqp_simple_rpc_decoded [amqp_socket.c:353]<br>
amqp_basic_qos [amqp_framing.c:2006]<br>
CRabbitQueueReader::readMessage(int&) [RabbitQueueReader.cpp:204]<br>
* Block of 131072 bytes (363 times); last block at 0x18269dc8<br>
<br>
MLK: 262144 bytes leaked in 2 blocks<br>
* This memory was allocated from:<br>
calloc [rtlib.o]<br>
amqp_pool_alloc [amqp_mem.c:140]<br>
amqp_decode_method [amqp_framing.c:187]<br>
amqp_handle_input [amqp_connection.c:272]<br>
wait_frame_inner [amqp_socket.c:168]<br>
amqp_simple_wait_method [amqp_socket.c:218]<br>
amqp_login [amqp_socket.c:383]<br>
CRabbitQueueWriter::openConnection() [RabbitQueueWriter.cpp:78]<br>
* Block of 131072 bytes (2 times); last block at 0xa135df8<br>
_______________________________________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com" target="_blank">rabbitmq-discuss@lists.rabbitmq.com</a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
</blockquote></div></div></div><br></div>
</div><br>