Keep MSMQ Windows Service running 24/7 with Service Protector

How to Keep the Microsoft Message Queue (MSMQ) Windows Service Running 24/7 with Service Protector

Automatically restart MSMQ when it stops for any reason. Prevent accidental shutdowns and get to 100% uptime today!

The Microsoft Message Queue (MSMQ) is a Windows component that enables applications to communicate in a reliable, fail-safe manner.

To protect the MSMQ Windows Service with Service Protector:

  1. Install MSMQ and configure it for your purposes, if necessary.

  2. Download and install Service Protector, if necessary.

  3. Start Service Protector.

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

    Add Protector

  5. On the General tab, in the Service to protect field, choose the MSMQ windows service, called Message Queuing. You will notice a green circle on the left if the MSMQ service is already running, as was the case on our PC.

    MSMQ Windows Service: General Tab

  6. Click the Save button. In a few seconds, an entry for MSMQ will show up in the Service Protector window. MSMQ is probably already running but it is not yet being protected by Service Protector (as shown below).

    MSMQ Windows Service: Created

  7. To start protection, choose Protector > Start "Message Queuing". In a couple of seconds the shield icon on the right will go to green to indicate that MSMQ is being monitored by Service Protector:

    MSMQ Windows Service: Protected

  8. That's it! Next time your computer boots, the Microsoft Message Queue will start automatically and Service Protector will watch the service to promptly restart it if it stops for any reason.

    We encourage you to edit MSMQ 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 queue at a safe time every day, run a script to clear stale messages prior to restarting the service, and much more.



Trouble protecting the MSMQ Windows Service?