Seema,<div><br></div><div>You can&#39;t control when your GC will run, if you declare this objects into loop and don&#39;t are using�hash tables�or maps to reutilize it, so it will be�eligible�to GC�automatically, because your life cycle over in next loop.</div>
<div><br></div><div>Today I have a consumer in Java�consuming�about 1.000 m/s and never used more than 15Mb and this objects never go throw eden memory, if you don&#39;t forward this objects created inside consumer loop, this objects will be automatic�eligible�for GC but GC don&#39;t run�immediately you need to wait.</div>
<div><br></div><div>Can you post your consumer code ?</div><div><br></div><div><br><br><div class="gmail_quote">On Tue, Feb 2, 2010 at 3:48 AM, Seema Biradar <span dir="ltr">&lt;<a href="mailto:seemasbiradar@gmail.com">seemasbiradar@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div>Hi All,<br><br>i tried the rabbit MQ with Producer and Consumer Program.<br><br>in Consumer side i am getting the all the Message, but the following objects<br>
<br>com.rabbitmq.client.QueueingConsumer.Delivery<br>com.rabbitmq.client.Envelop<br>
com.rabbitmq.client.AMQP.BasicProperties<br><br>are�created for each message and not garbage collected immediately after consuming.<br><br><strong>in Producer.java<br></strong><br>used basic publish as shown below.<br><br>

channel.basicPublish(exchangeName, routingKey, true, false, MessageProperties.PERSISTENT_TEXT_PLAIN, bao.toByteArray()) ;<br><br><br><strong>Consumer.java<br></strong><br>channel.basicConsume(queueName, true, consumer);<br>

<br>with no-acknowledgement <strong>true</strong>.<br><br>Please let me know, how to make the above object eligible for garbage collection immediately after consuming.</div>
<div>for Consumer program The Heap Memory allocated is more , as this is performace issue</div>
<div>�</div>
<div>�</div>
<div>Thanks,</div>
<div>Seema</div>
<br>_______________________________________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br>
<a href="http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
<br></blockquote></div><br></div>