Glenn,<div><br></div><div>Are you sending a lot of messages ?, this source code that you post here are in one class that are created all time that you send a new message ?</div><div><br></div><div>Because a lot of memory will be consumed if all the time you create connection and forgot it there like you show your source, if it is your case just open one connection and reuse the Rabbit Object connection, doing it you will use a little memory and will increase performance of your application.</div>
<div><br></div><div>If you get the example source�coming�with RabbitMQ.Net and just put one loop to send a lot of messages you will get the same error reported.</div><div><br></div><div>Regards.</div><div><br></div><div><br>
<br><div class="gmail_quote">On Thu, Jan 28, 2010 at 11:32 AM, Ergeerts Glenn <span dir="ltr">&lt;<a href="mailto:glenn.ergeerts@artesis.be">glenn.ergeerts@artesis.be</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I have 4GB of RAM.<br>
I tried running the command however it failed with<br>
** exception error: undefined function vm_memory_monitor:get_total_memory/0<br>
<br>
I&#39;m new to rabbitMQ/erlang so I&#39;m probably doing something wrong here.<br>
(I set the environment variable, ran rabbitmq-server.bat, opened the erlang emulator and typed in the command.)<br>
<br>
-----Oorspronkelijk bericht-----<br>
Van: majek04 [mailto:<a href="mailto:majek04@gmail.com">majek04@gmail.com</a>]<br>
Verzonden: donderdag 28 januari 2010 14:14<br>
Aan: Ergeerts Glenn<br>
CC: Matthias Radestock; <a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br>
<div><div></div><div class="h5">Onderwerp: Re: [rabbitmq-discuss] BasicPublish() from .NET client hangs after upgrading server to 1.7.1<br>
<br>
Sorry for that, my gmail decided to send email before I was done.<br>
<br>
So, I would be also interested in the output of<br>
vm_memory_monitor:get_total_memory()<br>
on your macine. Can I ask you to open erlang shell and type this command?<br>
�(rabbit@debian)2&gt; vm_memory_monitor:get_total_memory().<br>
<br>
<br>
&gt; As a temporary workaround I can suggest setting &#39;vm_memory_high_watermark&#39; to 0,<br>
&gt; which will effectively disable memory based flow control. You can do<br>
&gt; it by adding<br>
&gt; this line to erl parameters in rabbitmq-server:<br>
&gt; � �-rabbit vm_memory_high_watermark 0 \<br>
&gt;<br>
&gt; Alternatively you can set that variable in rabbitmq.config. There&#39;s an<br>
&gt; example in docs:<br>
&gt; �<a href="http://www.rabbitmq.com/extensions.html#memsup" target="_blank">http://www.rabbitmq.com/extensions.html#memsup</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Thu, Jan 28, 2010 at 12:53, Ergeerts Glenn &lt;<a href="mailto:glenn.ergeerts@artesis.be">glenn.ergeerts@artesis.be</a>&gt; wrote:<br>
&gt;&gt; It Looks like there is a problem indeed.. This is in rabbit.log after starting:<br>
&gt;&gt;<br>
&gt;&gt; =INFO REPORT==== 28-Jan-2010::13:46:39 ===<br>
&gt;&gt; Memory limit set to 0MB.<br>
&gt;&gt;<br>
&gt;&gt; =INFO REPORT==== 28-Jan-2010::13:46:39 ===<br>
&gt;&gt; vm_memory_high_watermark set. Memory used:5285360 allowed:-663552<br>
&gt;&gt;<br>
&gt;&gt; =INFO REPORT==== 28-Jan-2010::13:46:39 ===<br>
&gt;&gt; � �alarm_handler: {set,{vm_memory_high_watermark,[]}}<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; I tried manually setting the memory limit using the config file and the link you provided (I was using an empty config before),<br>
&gt;&gt; but it doesn&#39;t seem to change anything, still the same output. I&#39;m probably doing something wrong here..<br>
&gt;&gt;<br>
&gt;&gt; About the startup script: it is the 1.7.1 script indeed. The error i get is:<br>
&gt;&gt; \RabbitMQ\rabbitmq_server-1.7.1\sbin\..\ebin\rabbit was unexpected at this time.<br>
&gt;&gt;<br>
&gt;&gt; I&#39;m running on windows 7 64bit.<br>
&gt;&gt;<br>
&gt;&gt; Regards,<br>
&gt;&gt; Glenn<br>
&gt;&gt;<br>
&gt;&gt; -----Oorspronkelijk bericht-----<br>
&gt;&gt; Van: Matthias Radestock [mailto:<a href="mailto:matthias@lshift.net">matthias@lshift.net</a>]<br>
&gt;&gt; Verzonden: donderdag 28 januari 2010 12:40<br>
&gt;&gt; Aan: Ergeerts Glenn<br>
&gt;&gt; CC: <a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br>
&gt;&gt; Onderwerp: Re: [rabbitmq-discuss] BasicPublish() from .NET client hangs after upgrading server to 1.7.1<br>
&gt;&gt;<br>
&gt;&gt; Glenn,<br>
&gt;&gt;<br>
&gt;&gt; glenner wrote:<br>
&gt;&gt;&gt; After upgrading the server to 1.7.1 my client hangs forever on the<br>
&gt;&gt;&gt; BasicPublish() line using the following code.<br>
&gt;&gt;<br>
&gt;&gt; That&#39;s probably due to the improved memory monitoring telling the<br>
&gt;&gt; producers to pause in order to prevent the server from running out of<br>
&gt;&gt; memory. Do you see any alarms in the rabbit.log?<br>
&gt;&gt;<br>
&gt;&gt; See <a href="http://www.rabbitmq.com/extensions.html#memsup" target="_blank">http://www.rabbitmq.com/extensions.html#memsup</a> for instructions on<br>
&gt;&gt; how to adjust the memory limits.<br>
&gt;&gt;<br>
&gt;&gt;&gt; Another unrelated issue: i had to add quotes to the following line in<br>
&gt;&gt;&gt; rabbitmq-server.bat to get the script running:<br>
&gt;&gt;&gt; � � set RABBITMQ_BOOT_FILE=%RABBITMQ_EBIN_ROOT%\rabbit<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; changed to : � �set RABBITMQ_BOOT_FILE=&quot;%RABBITMQ_EBIN_ROOT%\rabbit&quot;<br>
&gt;&gt;<br>
&gt;&gt; Really? Even in the 1.7.1 script? What error do you get?<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Regards,<br>
&gt;&gt;<br>
&gt;&gt; Matthias.<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; rabbitmq-discuss mailing list<br>
&gt;&gt; <a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br>
&gt;&gt; <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>
&gt;&gt;<br>
&gt;<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>
</div></div></blockquote></div><br></div>