[rabbitmq-discuss] Garbage Collection Problem in Consumer
seemasbiradar at gmail.com
Tue Feb 2 05:48:23 GMT 2010
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
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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rabbitmq-discuss