Keep the SonarQube Windows Service Running 24/7

How to Keep the SonarQube Windows Service Running 24/7 with Service Protector

Automatically restart SonarQube if it stops for any reason. Ensure that your code quality engine achieves 100% uptime today


Last Updated on October 6, 2026

SonarQube, is an open source platform for continuous inspection of code quality. It can be installed as a windows service to start automatically whenever your server boots:


To monitor the SonarQube Windows Service and have Service Protector automatically restart it if it stops for any reason:

  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 field, choose the SonarQube windows service:

    Select the SonarQube Windows Service

  5. Switch to the Extras tab. To ensure that SonarQube is promptly restarted if the service takes too long to launch, check the Starting, for longer than box mid-way down the window. A couple of minutes should be fine:

    Restart the SonarQube Windows Service if it gets stuck

  6. While there are many more settings to help you monitor and protect the SonarQube service, we're done setting up the basics. Click the Save button to record your settings. In a few seconds, an entry for SonarQube will show up in the Service Protector window.

    Service Protector is now monitoring your SonarQube service:

    SonarQube Windows Service: Protected

  7. That's it! Next time your computer boots, the SonarQube windows service will start as normal and Service Protector will monitor it to quickly restart it if it stops for any reason.

    And now that you have configured the basics, please feel free to edit the SonarQube entry in Service Protector and check out the many other settings that may help SonarQube to operate smoothly.

    For example, send an email when the service fails, check for the service using too much CPU or RAM, restart it regularly, and much more.


Trouble protecting the SonarQube Windows Service?

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

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

  • Contact us and we will be happy to help!