Keep Openfire Windows Service running 24/7

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

Automatically restart Openfire if it stops for any reason. Guard against memory leaks, crashes, hang-ups with the web interface and more


Last Updated on November 17, 2026

Openfire is an open-source real-time collaboration server enabling instant messaging and group chat. It's best installed as a Windows Service, to ensure that messaging can start as soon as the server boots:


To manage the Openfire Windows Service 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. You will be on the General tab. In the Service to protect field, choose the Openfire Windows Service.

    A green circle will be on the left if the Openfire service is already running, as was the case on our server:

    Choose the Openfire Windows Service

  5. Switch over to the Monitor tab. If you find that Openfire accumulates memory or 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:

    1. Check the At the following times box.

    2. Click the Add button.

    3. Specify the day and time to restart the service. We have chosen every day at 3 AM. Note that you can choose to reboot the server at that time if you like.

    4. Click the OK button to record the time.

    Restart the Openfire Windows Service every night

  6. And if you find that the Openfire Windows Service occasionally gets stuck in the "Stopping" or "Starting" state, click over to the Extras tab and check the corresponding options:

    Restart the Openfire Windows Service if it gets stuck

  7. We're done adding the service so click the Save button. In a second or two, an entry for Openfire will show up in the main window.

    Service Protector is already monitoring Openfire:

    Openfire Windows Service: Protected

  8. That's it! Next time your computer boots, Openfire will start and Service Protector will begin watching the service to quickly restart it if it fails.

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

    For example, send email alerts when the service fails, add a health check to detect failures of the web interface, and much more.


Trouble protecting the Openfire Windows Service?

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

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

  • Contact us and we will be happy to help!