[rabbitmq-discuss] BasicPublish() from .NET client hangs after upgrading server to 1.7.1

Gustavo Aquino aquino.gustavo at gmail.com
Thu Jan 28 15:07:21 GMT 2010


Glenn,

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 ?

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.

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.

Regards.



On Thu, Jan 28, 2010 at 11:32 AM, Ergeerts Glenn
<glenn.ergeerts at artesis.be>wrote:

> I have 4GB of RAM.
> I tried running the command however it failed with
> ** exception error: undefined function vm_memory_monitor:get_total_memory/0
>
> I'm new to rabbitMQ/erlang so I'm probably doing something wrong here.
> (I set the environment variable, ran rabbitmq-server.bat, opened the erlang
> emulator and typed in the command.)
>
> -----Oorspronkelijk bericht-----
> Van: majek04 [mailto:majek04 at gmail.com]
> Verzonden: donderdag 28 januari 2010 14:14
> Aan: Ergeerts Glenn
> CC: Matthias Radestock; rabbitmq-discuss at lists.rabbitmq.com
> Onderwerp: Re: [rabbitmq-discuss] BasicPublish() from .NET client hangs
> after upgrading server to 1.7.1
>
> Sorry for that, my gmail decided to send email before I was done.
>
> So, I would be also interested in the output of
> vm_memory_monitor:get_total_memory()
> on your macine. Can I ask you to open erlang shell and type this command?
>  (rabbit at debian)2> vm_memory_monitor:get_total_memory().
>
>
> > As a temporary workaround I can suggest setting
> 'vm_memory_high_watermark' to 0,
> > which will effectively disable memory based flow control. You can do
> > it by adding
> > this line to erl parameters in rabbitmq-server:
> >    -rabbit vm_memory_high_watermark 0 \
> >
> > Alternatively you can set that variable in rabbitmq.config. There's an
> > example in docs:
> >  http://www.rabbitmq.com/extensions.html#memsup
> >
> >
> >
> > On Thu, Jan 28, 2010 at 12:53, Ergeerts Glenn <glenn.ergeerts at artesis.be>
> wrote:
> >> It Looks like there is a problem indeed.. This is in rabbit.log after
> starting:
> >>
> >> =INFO REPORT==== 28-Jan-2010::13:46:39 ===
> >> Memory limit set to 0MB.
> >>
> >> =INFO REPORT==== 28-Jan-2010::13:46:39 ===
> >> vm_memory_high_watermark set. Memory used:5285360 allowed:-663552
> >>
> >> =INFO REPORT==== 28-Jan-2010::13:46:39 ===
> >>    alarm_handler: {set,{vm_memory_high_watermark,[]}}
> >>
> >>
> >> I tried manually setting the memory limit using the config file and the
> link you provided (I was using an empty config before),
> >> but it doesn't seem to change anything, still the same output. I'm
> probably doing something wrong here..
> >>
> >> About the startup script: it is the 1.7.1 script indeed. The error i get
> is:
> >> \RabbitMQ\rabbitmq_server-1.7.1\sbin\..\ebin\rabbit was unexpected at
> this time.
> >>
> >> I'm running on windows 7 64bit.
> >>
> >> Regards,
> >> Glenn
> >>
> >> -----Oorspronkelijk bericht-----
> >> Van: Matthias Radestock [mailto:matthias at lshift.net]
> >> Verzonden: donderdag 28 januari 2010 12:40
> >> Aan: Ergeerts Glenn
> >> CC: rabbitmq-discuss at lists.rabbitmq.com
> >> Onderwerp: Re: [rabbitmq-discuss] BasicPublish() from .NET client hangs
> after upgrading server to 1.7.1
> >>
> >> Glenn,
> >>
> >> glenner wrote:
> >>> After upgrading the server to 1.7.1 my client hangs forever on the
> >>> BasicPublish() line using the following code.
> >>
> >> That's probably due to the improved memory monitoring telling the
> >> producers to pause in order to prevent the server from running out of
> >> memory. Do you see any alarms in the rabbit.log?
> >>
> >> See http://www.rabbitmq.com/extensions.html#memsup for instructions on
> >> how to adjust the memory limits.
> >>
> >>> Another unrelated issue: i had to add quotes to the following line in
> >>> rabbitmq-server.bat to get the script running:
> >>>     set RABBITMQ_BOOT_FILE=%RABBITMQ_EBIN_ROOT%\rabbit
> >>>
> >>> changed to :    set RABBITMQ_BOOT_FILE="%RABBITMQ_EBIN_ROOT%\rabbit"
> >>
> >> Really? Even in the 1.7.1 script? What error do you get?
> >>
> >>
> >> Regards,
> >>
> >> Matthias.
> >>
> >> _______________________________________________
> >> rabbitmq-discuss mailing list
> >> rabbitmq-discuss at lists.rabbitmq.com
> >> http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
> >>
> >
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20100128/86e1dffe/attachment.htm 


More information about the rabbitmq-discuss mailing list