[rabbitmq-discuss] RabbitMQ memory limit and shutting down

Nikita Trophimov nikita.trophimov at gmail.com
Mon Aug 12 10:06:57 BST 2013




> You should see the broker blocking connections instead of a broker
> shutdown. The broker is still running and further messages will be
> accepted as soon as some memory has been cleared by flushing messages
> from RAM to disk.

No, I'm pretty sure it is turned off, because I waited almost a day. 
Moreover, rabbitmq process disappeared from task manager.

To be more precise, I tried to create a lot of exchanges.

Here is the code I used:

using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RabbitMQ_helper
{
     class Program
     {
         static void Main(string[] args)
         {
             ConnectionFactory factory = new ConnectionFactory();
             factory.UserName = "admin";
             factory.Password = "password";
             factory.HostName = "127.0.0.1";

             IConnection conn = factory.CreateConnection();

             IModel channel = conn.CreateModel();
             for (int i = 0; i < 1000000; ++i)
             {
                 channel.ExchangeDeclare("C#_" + i, ExchangeType.Direct);
             }
         }
     }
}




More information about the rabbitmq-discuss mailing list