4 Replies Latest reply on Nov 7, 2008 2:56 AM by jaikiran

    Server restarted unexpectedly

    x.incarnate

      We use jboss-4.0.3SP1 with java 1.5.0_11 on CentOS release 5 (2.6.18-8.el5).

      Yesterday the jboss suddenly stopped responding to all HTTP request. Console logs implied that the container had automatically restarted (undeployed all webapps and then initialized the container).

      It is unknown why the container should restart automatically. Preceeding this event there were several UnknownHostExceptions from one of the deployed webapps. Can this cause the container to restart automatically?

      Are there any other reasons that can cause the container to restart automatically?

      Appreciate your help.

      Thanks,
      Santosh.

        • 2. Re: Server restarted unexpectedly
          x.incarnate

          Thanks for the reply.

          I am sorry. I should have searched the forums throughly first.

          I went throught the threads. Majority of the cases were because the JBoss wsn't being started in a daemon styled manner. Whenever the user logs out or closes the shell the JBoss got stopped.

          In one case the user was experiencing automatic JBoss restarts, something similar to the current problem. I could not find any answer there either.

          In the current case JBoss is running standalone. As I already mentioned, we observed tons of exception before the jboss restarted. We had seen same behavior few days back. I will perform some tests and see if this happens again. Till then I just want to ask if something like this is possible?

          Thanks,
          Santosh.

          • 3. Re: Server restarted unexpectedly
            x.incarnate

            I forgot to mention how I start JBoss. I execute a command similar to the one mentioned below.

            $> /opt/jboss/bin/run.sh > /tmp/jboss-out-logs &

            The '&' clause sends it in the background and once we exit the shell properly the jboss works as a like a daemon.

            Thanks,
            Santosh.

            • 4. Re: Server restarted unexpectedly
              jaikiran

               

              "x.incarnate" wrote:
              As I already mentioned, we observed tons of exception before the jboss restarted. We had seen same behavior few days back. I will perform some tests and see if this happens again. Till then I just want to ask if something like this is possible?



              One possibility might be that the JVM iteslf is crashing causing the server to crash. However it looks a little strange that the server "restarts". What kind of exceptions are you seeing. Can you post it (not the entire logs, if its too huge)?

              While posting the logs or xml content or code, remember to wrap it in a code block using the Code button in the message editor window and please hit the Preview button to make sure your post is correctly formatted