[rabbitmq-discuss] Garbage Collection Problem in Consumer

Seema Biradar seemasbiradar at gmail.com
Tue Feb 2 05:48:23 GMT 2010

Hi All,

i tried the rabbit MQ with Producer and Consumer Program.

in Consumer side i am getting the all the Message, but the following objects


are created for each message and not garbage collected immediately after

*in Producer.java
used basic publish as shown below.

channel.basicPublish(exchangeName, routingKey, true, false,
MessageProperties.PERSISTENT_TEXT_PLAIN, bao.toByteArray()) ;

channel.basicConsume(queueName, true, consumer);

with no-acknowledgement *true*.

Please let me know, how to make the above object eligible for garbage
collection immediately after consuming.
for Consumer program The Heap Memory allocated is more , as this is
performace issue

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20100202/263d463c/attachment.htm 

More information about the rabbitmq-discuss mailing list