Keep WildFly Windows Service running 24/7

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

Automatically restart WildFly if it crashes or gets stuck. Achieve 100% uptime for your web applications today


Last Updated on November 13, 2026

WildFly is a powerful, flexible runtime environment for your Java applications. It can be installed as a Windows Service, to start promptly at boot:


To monitor and protect the WildFly Windows Service:

  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 WildFly Windows Service. There will be a green circle on the left if WildFly is already running, as was the case on our server:

    Select the WildFly Windows Service

  5. Are you worried about WildFly getting stuck in the "Stopping" state? To have Service Protector automatically restart WildFly when that happens, click over to the Extras tab and check the corresponding option. We suggest leaving the timeout at the default of 60 seconds, but you can reduce that value if your situation warrants a more aggressive stance:

    Automatically restart WildFly if it gets stuck stopping

  6. We're done configuring the basics so click the Save button. In a couple of seconds, an entry for WildFly will show up in the main window. Service Protector is already hard at work babysitting it:

    WildFly Windows Service: Protected

  7. That's it! Next time your computer boots, WildFly will start and Service Protector will begin monitoring the service to promptly restart it if it fails or stops for any reason.

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

    For example, send an email if the service fails, restart WildFly nightly to cure annoying memory leaks, and much more.


Trouble protecting the WildFly Windows Service?

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

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

  • Contact us and we will be happy to help!