Keep JBoss Application Server Windows Service running 24/7 with Service Protector

How to Keep the JBoss Application Server Windows Service Running 24/7 with Service Protector

Automatically restart JBoss when it crashes or gets stuck. Achieve 100% uptime for your Java web applications today!

The JBoss Application Server is a widely used platform supporting Java Enterprise Edition applications.

To protect JBoss with Service Protector:

  1. Download, install and configure the JBoss application server package and the native connectors to create a JBoss Service, 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 JBoss windows service. This will probably be named JBoss Application Server X.Y, where X.Y represents the software's version number. Since we have installed JBoss version 7.1, our service is named JBoss Application Server 7.1

      You will notice a green circle on the left if the JBoss service is already running, as was the case on our server:

    JBoss Windows Service: General Tab

  6. One of our customers has a problem where JBoss occasionally gets stuck in the "Stopping" state. To have JBoss automatically restarted when that happens, click over to the Extras tab and check the corresponding option. We suggest leaving the timeout at the default 60 seconds, but you can reduce that if you wish to be more aggressive.

    JBoss Windows Service: Extras Tab

  7. Click the Save button. In a couple of seconds, an entry for JBoss will show up in the Service Protector window. The JBoss service is probably already running but it is not yet being protected by Service Protector (as evidenced by the red shield below).

    JBoss Windows Service: Created

  8. To start protection, choose Protector > Start "JBoss Application Server 7.1". The shield icon will go to green to indicate that JBoss is being protected:

    JBoss Windows Service: Running

  9. That's it! Next time your computer boots, JBoss will start and Service Protector will begin monitoring the service to promptly restart it if it fails.

    We encourage you to edit JBoss 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 JBoss nightly, and much more.

Trouble protecting the JBoss Windows Service?