Keep RabbitMQ Windows Service Running

How to Keep RabbitMQ Server Running 24/7 with Service Protector

Automatically restart the RabbitMQ Windows Service if it crashes or stops listening for messages. Guard against interruptions, memory leaks, CPU hogging and much more


Last Updated on October 5, 2026

RabbitMQ provides robust asynchronous messaging for complex applications. It runs as a Windows Service with the Erlang service wrapper, as shown here in Services.msc:


To monitor and protect RabbitMQ with Service Protector:

  1. Download and install Service Protector, if necessary.

  2. Start Service Protector.

  3. Select Protector > Add to open the Add Protector window:

    Add Protector

  4. On the General tab, in the Service to protect dropdown, choose the RabbitMQ service, named RabbitMQ.

    You'll notice a green circle on the left if the service is already running:

    Choose the RabbitMQ Windows Service

  5. If you're interested in monitoring RabbitMQ and restarting it when it stops listening on its network port, move to the Monitor tab. We'll set up a health check to tell Service Protector when RabbitMQ has failed.

    1. Switch to the Monitor tab. Check the Whenever it fails a periodic sanity check box and click the Set button:

      Apache Windows Service: Add a sanity check

    2. In the Add Sanity Check window, select the Check that your service has open network connections option and click Next to proceed:

      Add a network connections sanity check

    3. Since RabbitMQ should always be listening for requests, check the Require at least one listening/server connection box.

      And because the TCP/IP connections will be held by a sub-process of the Erlang service wrapper, activate the Also check sub-processes option:

      Setup the check for a listening network connection

      Click Next to continue.

    4. On this page, tell Service Protector how often to check RabbitMQ for the listening connection. The default of every 5 minutes should be fine but you can check more often if you prefer.

      After you're done, click Next to move on:

      How often should Service Protector check RabbitMQ?

    5. And finally, confirm your settings:

      Confirm your sanity check settings

      If everything looks good, click Add to record your new sanity check and return to the Monitor tab.

  6. Click the Save button. In a couple of seconds, an entry for RabbitMQ will show up in the Service Protector window.

    The green shield icon indicates that RabbitMQ is already protected by Service Protector:

    The RabbitMQ Windows Service is protected

  7. That's it! Next time your computer boots, RabbitMQ will start as normal and Service Protector will begin monitoring RabbitMQ to promptly restart it if it fails.

    We encourage you to edit RabbitMQ in Service Protector and check out the many other settings that may be appropriate for your environment.

    For example, send an email when the service fails, restart the server weekly to defang memory leaks, and much more.


Trouble protecting the RabbitMQ Windows Service?

  • From Service Protector, select Protector > Report Activity > Today to bring up an HTML report detailing the interaction between Service Protector and RabbitMQ.

  • Browse the Service Protector FAQ for answers to commonly asked questions and troubleshooting tips.

  • Contact us and we will be happy to help!