Hi, Vijay:<br><br>You may want to upgrade from 2.7.1. The 2.7.1 Java client had a known and now fixed memory leak that might account for what you're seeing:<br><br><a href="https://bugzilla.rabbitmq.com/show_bug.cgi?id=24723">https://bugzilla.rabbitmq.com/show_bug.cgi?id=24723</a><br>
<br>Best regards,<br>Jerry<br><br><div class="gmail_quote">On Sat, Jul 14, 2012 at 7:35 AM, Vijay Lakshmi <span dir="ltr"><<a href="mailto:vijjivinay@gmail.com" target="_blank">vijjivinay@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<div><br></div><div>We are using RabbitMQ 2.7.1 Java Client and Server 2.7.1.</div><div>While we were running load tests using our clients we observed that our memory has reached to 2GB.</div>
<div><br></div><div>Below is the snapshot of heap analysis.</div>
<div><br></div><div>We are closing the channels properly using channel.close().</div><div>Could someone suggest what could be the problem for this memory leak. Do the later versions of RabbitMQ solve this problem?</div><div>
<br></div><div><br></div><div><h1 style="margin-right:0in;margin-left:0in;font-size:24pt;font-family:'Times New Roman',serif;text-align:center" align="center"><span style="font-family:Times,serif">Instance Counts for All Classes (excluding platform)</span></h1>
<p class="MsoNormal" style="margin-top:0in;margin-bottom:0.0001pt;margin-right:0in;margin-left:0in;font-size:11pt;font-family:Calibri,sans-serif"><span><span style="font-size:13.5pt;font-family:Times,serif">311681<a href="http://redir.aspx?C=dba9a335a30e4feb822ceaa30de7f654&URL=http%3a%2f%2flocalhost%3a7000%2finstances%2f0x77c6f06a0" style="color:blue;text-decoration:underline" target="_blank"> instances</a> of <a href="http://redir.aspx?C=dba9a335a30e4feb822ceaa30de7f654&URL=http%3a%2f%2flocalhost%3a7000%2fclass%2f0x77c6f06a0" style="color:blue;text-decoration:underline" target="_blank">class com.rabbitmq.client.impl.AMQCommand</a> </span></span><span style="font-size:13.5pt;font-family:Times,serif"><br>
<span>311681<a href="http://redir.aspx?C=dba9a335a30e4feb822ceaa30de7f654&URL=http%3a%2f%2flocalhost%3a7000%2finstances%2f0x77c6f3228" style="color:blue;text-decoration:underline" target="_blank"> instances</a> of <a href="http://redir.aspx?C=dba9a335a30e4feb822ceaa30de7f654&URL=http%3a%2f%2flocalhost%3a7000%2fclass%2f0x77c6f3228" style="color:blue;text-decoration:underline" target="_blank">class com.rabbitmq.client.impl.CommandAssembler</a> </span><br>
<span>295730<a href="http://redir.aspx?C=dba9a335a30e4feb822ceaa30de7f654&URL=http%3a%2f%2flocalhost%3a7000%2finstances%2f0x77d438380" style="color:blue;text-decoration:underline" target="_blank"> instances</a> of <a href="http://redir.aspx?C=dba9a335a30e4feb822ceaa30de7f654&URL=http%3a%2f%2flocalhost%3a7000%2fclass%2f0x77d438380" style="color:blue;text-decoration:underline" target="_blank">class com.rabbitmq.client.impl.ChannelN</a> </span><br>
<span>295730<a href="http://redir.aspx?C=dba9a335a30e4feb822ceaa30de7f654&URL=http%3a%2f%2flocalhost%3a7000%2finstances%2f0x77d43ff30" style="color:blue;text-decoration:underline" target="_blank"> instances</a> of <a href="http://redir.aspx?C=dba9a335a30e4feb822ceaa30de7f654&URL=http%3a%2f%2flocalhost%3a7000%2fclass%2f0x77d43ff30" style="color:blue;text-decoration:underline" target="_blank">class com.rabbitmq.client.impl.ConsumerDispatcher</a> </span><br>
<span>295715<a href="http://redir.aspx?C=dba9a335a30e4feb822ceaa30de7f654&URL=http%3a%2f%2flocalhost%3a7000%2finstances%2f0x77c60b280" style="color:blue;text-decoration:underline" target="_blank"> instances</a> of <a href="http://redir.aspx?C=dba9a335a30e4feb822ceaa30de7f654&URL=http%3a%2f%2flocalhost%3a7000%2fclass%2f0x77c60b280" style="color:blue;text-decoration:underline" target="_blank">class com.rabbitmq.client.ShutdownSignalException</a> </span><br>
<span>295703<a href="http://redir.aspx?C=dba9a335a30e4feb822ceaa30de7f654&URL=http%3a%2f%2flocalhost%3a7000%2finstances%2f0x77c75a540" style="color:blue;text-decoration:underline" target="_blank"> instances</a> of <a href="http://redir.aspx?C=dba9a335a30e4feb822ceaa30de7f654&URL=http%3a%2f%2flocalhost%3a7000%2fclass%2f0x77c75a540" style="color:blue;text-decoration:underline" target="_blank">class com.rabbitmq.client.impl.AMQImpl$Channel$Close</a> </span><br>
<span>271315<a href="http://redir.aspx?C=dba9a335a30e4feb822ceaa30de7f654&URL=http%3a%2f%2flocalhost%3a7000%2finstances%2f0x77d4d5590" style="color:blue;text-decoration:underline" target="_blank"> instances</a> of <a href="http://redir.aspx?C=dba9a335a30e4feb822ceaa30de7f654&URL=http%3a%2f%2flocalhost%3a7000%2fclass%2f0x77d4d5590" style="color:blue;text-decoration:underline" target="_blank">class com.rabbitmq.client.QueueingConsumer</a> </span><br>
<span>60523<a href="http://redir.aspx?C=dba9a335a30e4feb822ceaa30de7f654&URL=http%3a%2f%2flocalhost%3a7000%2finstances%2f0x77cea18a0" style="color:blue;text-decoration:underline" target="_blank"> instances</a> of <a href="http://redir.aspx?C=dba9a335a30e4feb822ceaa30de7f654&URL=http%3a%2f%2flocalhost%3a7000%2fclass%2f0x77cea18a0" style="color:blue;text-decoration:underline" target="_blank">class org.json.simple.parser.Yytoken</a> </span><br>
<span>31600<a href="http://redir.aspx?C=dba9a335a30e4feb822ceaa30de7f654&URL=http%3a%2f%2flocalhost%3a7000%2finstances%2f0x77c73fa58" style="color:blue;text-decoration:underline" target="_blank"> instances</a> of <a href="http://redir.aspx?C=dba9a335a30e4feb822ceaa30de7f654&URL=http%3a%2f%2flocalhost%3a7000%2fclass%2f0x77c73fa58" style="color:blue;text-decoration:underline" target="_blank">class com.rabbitmq.client.AMQP$BasicProperties</a> </span><br>
<span>31210<a href="http://redir.aspx?C=dba9a335a30e4feb822ceaa30de7f654&URL=http%3a%2f%2flocalhost%3a7000%2finstances%2f0x77d4d7358" style="color:blue;text-decoration:underline" target="_blank"> instances</a> of <a href="http://redir.aspx?C=dba9a335a30e4feb822ceaa30de7f654&URL=http%3a%2f%2flocalhost%3a7000%2fclass%2f0x77d4d7358" style="color:blue;text-decoration:underline" target="_blank">class com.rabbitmq.client.QueueingConsumer$Delivery</a> </span><br>
<span>31209<a href="http://redir.aspx?C=dba9a335a30e4feb822ceaa30de7f654&URL=http%3a%2f%2flocalhost%3a7000%2finstances%2f0x77d4dc1d0" style="color:blue;text-decoration:underline" target="_blank"> instances</a> of <a href="http://redir.aspx?C=dba9a335a30e4feb822ceaa30de7f654&URL=http%3a%2f%2flocalhost%3a7000%2fclass%2f0x77d4dc1d0" style="color:blue;text-decoration:underline" target="_blank">class com.rabbitmq.client.Envelope</a> </span></span></p>
<p class="MsoNormal" style="margin-top:0in;margin-bottom:0.0001pt;margin-right:0in;margin-left:0in;font-size:11pt;font-family:Calibri,sans-serif"><span style="font-size:13.5pt;font-family:Times,serif"><span><br>
</span></span></p><p class="MsoNormal" style="margin-top:0in;margin-bottom:0.0001pt;margin-right:0in;margin-left:0in"><font face="Times, serif" size="4"><br></font></p></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="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
<br></blockquote></div><br>