<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.E-mailStijl17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=NL-BE link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>No, i am only sending 1 message<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>
<p class=MsoNormal><b><span lang=NL style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>Van:</span></b><span
lang=NL style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Gustavo
Aquino [mailto:aquino.gustavo@gmail.com] <br>
<b>Verzonden:</b> donderdag 28 januari 2010 16:07<br>
<b>Aan:</b> Ergeerts Glenn<br>
<b>CC:</b> majek04; rabbitmq-discuss@lists.rabbitmq.com<br>
<b>Onderwerp:</b> Re: [rabbitmq-discuss] BasicPublish() from .NET client hangs
after upgrading server to 1.7.1<o:p></o:p></span></p>
</div>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Glenn,<o:p></o:p></p>
<div>
<p class=MsoNormal><o:p> </o:p></p>
</div>
<div>
<p class=MsoNormal>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 ?<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><o:p> </o:p></p>
</div>
<div>
<p class=MsoNormal>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.<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><o:p> </o:p></p>
</div>
<div>
<p class=MsoNormal>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.<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><o:p> </o:p></p>
</div>
<div>
<p class=MsoNormal>Regards.<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><o:p> </o:p></p>
</div>
<div>
<p class=MsoNormal style='margin-bottom:12.0pt'><o:p> </o:p></p>
<div>
<p class=MsoNormal>On Thu, Jan 28, 2010 at 11:32 AM, Ergeerts Glenn <<a
href="mailto:glenn.ergeerts@artesis.be">glenn.ergeerts@artesis.be</a>>
wrote:<o:p></o:p></p>
<p class=MsoNormal>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'm new to rabbitMQ/erlang so I'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><o:p></o:p></p>
<div>
<div>
<p class=MsoNormal>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> vm_memory_monitor:get_total_memory().<br>
<br>
<br>
> As a temporary workaround I can suggest setting 'vm_memory_high_watermark'
to 0,<br>
> which will effectively disable memory based flow control. You can do<br>
> it by adding<br>
> this line to erl parameters in rabbitmq-server:<br>
> -rabbit vm_memory_high_watermark 0 \<br>
><br>
> Alternatively you can set that variable in rabbitmq.config. There's an<br>
> example in docs:<br>
> <a href="http://www.rabbitmq.com/extensions.html#memsup"
target="_blank">http://www.rabbitmq.com/extensions.html#memsup</a><br>
><br>
><br>
><br>
> On Thu, Jan 28, 2010 at 12:53, Ergeerts Glenn <<a
href="mailto:glenn.ergeerts@artesis.be">glenn.ergeerts@artesis.be</a>>
wrote:<br>
>> It Looks like there is a problem indeed.. This is in rabbit.log after
starting:<br>
>><br>
>> =INFO REPORT==== 28-Jan-2010::13:46:39 ===<br>
>> Memory limit set to 0MB.<br>
>><br>
>> =INFO REPORT==== 28-Jan-2010::13:46:39 ===<br>
>> vm_memory_high_watermark set. Memory used:5285360 allowed:-663552<br>
>><br>
>> =INFO REPORT==== 28-Jan-2010::13:46:39 ===<br>
>> alarm_handler: {set,{vm_memory_high_watermark,[]}}<br>
>><br>
>><br>
>> I tried manually setting the memory limit using the config file and
the link you provided (I was using an empty config before),<br>
>> but it doesn't seem to change anything, still the same output. I'm
probably doing something wrong here..<br>
>><br>
>> About the startup script: it is the 1.7.1 script indeed. The error i
get is:<br>
>> \RabbitMQ\rabbitmq_server-1.7.1\sbin\..\ebin\rabbit was unexpected at
this time.<br>
>><br>
>> I'm running on windows 7 64bit.<br>
>><br>
>> Regards,<br>
>> Glenn<br>
>><br>
>> -----Oorspronkelijk bericht-----<br>
>> Van: Matthias Radestock [mailto:<a href="mailto:matthias@lshift.net">matthias@lshift.net</a>]<br>
>> Verzonden: donderdag 28 januari 2010 12:40<br>
>> Aan: Ergeerts Glenn<br>
>> CC: <a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br>
>> Onderwerp: Re: [rabbitmq-discuss] BasicPublish() from .NET client
hangs after upgrading server to 1.7.1<br>
>><br>
>> Glenn,<br>
>><br>
>> glenner wrote:<br>
>>> After upgrading the server to 1.7.1 my client hangs forever on the<br>
>>> BasicPublish() line using the following code.<br>
>><br>
>> That's probably due to the improved memory monitoring telling the<br>
>> producers to pause in order to prevent the server from running out of<br>
>> memory. Do you see any alarms in the rabbit.log?<br>
>><br>
>> See <a href="http://www.rabbitmq.com/extensions.html#memsup"
target="_blank">http://www.rabbitmq.com/extensions.html#memsup</a> for
instructions on<br>
>> how to adjust the memory limits.<br>
>><br>
>>> Another unrelated issue: i had to add quotes to the following line
in<br>
>>> rabbitmq-server.bat to get the script running:<br>
>>> set RABBITMQ_BOOT_FILE=%RABBITMQ_EBIN_ROOT%\rabbit<br>
>>><br>
>>> changed to : set
RABBITMQ_BOOT_FILE="%RABBITMQ_EBIN_ROOT%\rabbit"<br>
>><br>
>> Really? Even in the 1.7.1 script? What error do you get?<br>
>><br>
>><br>
>> Regards,<br>
>><br>
>> Matthias.<br>
>><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>
><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><o:p></o:p></p>
</div>
</div>
</div>
<p class=MsoNormal><o:p> </o:p></p>
</div>
</div>
</body>
</html>