3 Replies Latest reply on May 28, 2003 7:09 AM by Juha Lindfors

    Check if server is running correctly

    Julia Winkler Newbie

      Hello!

      I'm not sure if this is the correct forum to post my question .. but anyway.

      I'm using jboss 3.0.6 with jetty wen engine.

      I'm looking for a possibility to check from a shell script whether my server is running correctly or not. I mean also if it is hung in an exception or something ... The shell scripts return code then should indicate the state.

      Thanks, Julia.

        • 1. Re: Check if server is running correctly
          Juha Lindfors Master

          you could always write a simple piece of code that attempts to ping a well known service running on your JBoss instance (such as a servlet on 8080). This however only determines that the specific service is running (no exceptions) or that the entire JVM hasn't crashed. Trying to figure out if any of the services are throwing an exception is a bit trickier, I guess you could try and parse the server.log every now and then and see if there are any problems there.

          • 2. Re: Check if server is running correctly
            Julia Winkler Newbie

            Hallo!

            The ping idea is okay but not the all in one approach i would prefer.

            parsing the logfile is not what I wanted.

            I thought about something like "java -jar somejar.jar someoption" that indicates wheter the server is running or not. somethings that comes along with the server itself.

            is there anything?

            Thanks, Julia.

            • 3. Re: Check if server is running correctly
              Juha Lindfors Master

              How would the server know what all services you've deployed and then how to determine all your individual services are actually running correctly?

              I cannot see an obvious way to do this since each and every service you deploy works differently, so any detection needs to be service specific, not an all-in-one solution.

              Maybe you have a more specific problem you'd like to solve?