-
Download and
install
Service Protector, if necessary.
-
Start Service Protector.
-
Select Protector > Add to open the Add Protector window:
-
On the General tab, in the Service to protect field, select the Confluence windows service. It will be called Atlassian Confluence.
You will notice a green circle beside the name if the service is already running (as was the case on our PC).
-
If you find that Confluence occasionally crashes or hangs,
click over to the Monitor tab where we will set up a failure detection script to tell Service Protector when it should restart Confluence.
-
Follow these instructions to create the failure detection BAT file.
We have called ours check-confluence.bat and placed it in the Confluence installation folder (C:\Program Files\Atlassian\Confluence\bin).
-
Check the Whenever it fails a "sanity check" box. Click the ... button and specify the full path to the batch file you created.
-
Specify how often to check. We recommend every 5 minutes, but you can check more or less frequently depending on your situation (and how much downtime you can afford).
And if you find that Confluence accumulates memory and gets slower over time,
we recommend that you periodically restart the service at a time when no one is likely to be using the server. To do so:
Check the At the following times box.
Click the Add button.
Specify the day and time to restart the service. We have chosen every day at 2 AM. Note that you can choose to reboot the server at that time if you like.
Click the OK button to record the time.
-
Click the Save button. In a few seconds, an entry for Atlassian Confluence will show up in the Service Protector window.
The Confluence windows service is probably already running but it is not yet being protected by Service Protector.
Click on the green circle to see details of the Confluence service. (It sure uses a lot of memory!)
-
To start monitoring Confluence, choose Protector > Start "Atlassian Confluence".
In a couple of seconds the shield icon in the Protected column will go to green to indicate that Confluence is being managed by Service Protector:
-
That's it! Next time your computer boots, Confluence will start up automatically (as normal) and Service Protector will start monitoring the service to quickly restart it if it stops for any reason.
We encourage you to edit the Confluence entry in Service Protector and check out the many other settings that may be beneficial to your environment.
For example, send an email when the service fails, watch out for the service getting stuck starting or stopping, and much more.