[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

com.rabbitmq.client.QueueingConsumer.Delivery
com.rabbitmq.client.Envelop
com.rabbitmq.client.AMQP.BasicProperties

are created for each message and not garbage collected immediately after
consuming.

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

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


*Consumer.java
*
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


Thanks,
Seema
-------------- 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