7 Replies Latest reply on Oct 24, 2008 1:15 PM by peterj

    JBoss process suddenly terminates from time to time

    nulldevice


      Hello,

      Im running Jboss 4.2.2 GA on a Debian Etch machine.
      The process from time to time (quite rarely though) terminates without any reasonable log entry. The java/jboss process suddenly is just not there anymore if i do "ps aux".

      I looked into /var/log/messages and into /opt/jboss4/server/default/log/server.log
      But nothing gave me any hint what it could be.

      Any suggestions?

      Regards, Thx in advance
      NDev

        • 1. Re: JBoss process suddenly terminates from time to time
          zhulin

          Are you running on a hosted machined? I know some hosting services don't allow long-running processes. The process simple dies after a period of time.

          Lin

          • 2. Re: JBoss process suddenly terminates from time to time
            nulldevice


            Yes im using a rootserver from http://www.synserver.de/
            But i didn't notice that with other permanently running processes there yet. And also they don't say anything like that in their contract.

            Possibly i should mail them and ask them to make it sure... hmm

            • 3. Re: JBoss process suddenly terminates from time to time
              nulldevice


              Ok i just talked to them - nope they are not doing that on that server.

              Any other suggestions what it could be? Or where should i start to search for the problem.

              • 4. Re: JBoss process suddenly terminates from time to time
                zhulin

                You can use process monitoring tools such as monit or ps-watcher to restart jboss when the process dies, at least until you find out the cause of the process to terminate.

                • 5. Re: JBoss process suddenly terminates from time to time
                  peterj

                  In the server.log file, was there a shutdown message like the following:

                  2008-10-22 11:27:18,253 INFO [org.jboss.system.server.Server] Shutting down the server, blockingShutdown: false
                  2008-10-22 11:27:18,269 INFO [org.jboss.system.server.Server] Server exit(0) called
                  2008-10-22 11:27:18,269 INFO [org.jboss.system.server.Server] Runtime shutdown hook called, forceHalt: true
                  2008-10-22 11:27:18,269 INFO [org.jboss.system.server.Server] JBoss SHUTDOWN: Undeploying all packages

                  If there was, then something is signaling the app server to shut down. If not, then either the JVM is crashing or something else in the operating system is forcefully terminating the process.

                  How is the app server being started? Others have started using a remote shell and have had the app server terminate when closing the shell.

                  • 6. Re: JBoss process suddenly terminates from time to time
                    nulldevice

                     

                    "PeterJ" wrote:
                    In the server.log file, was there a shutdown message like the following...


                    Nope, there was not. These lines never showed up there. So i guess our JVM crashes from time to time maybe. I can't imagine what processes should be there trying to kill/quit it, none i think.


                    How is the app server being started? Others have started using a remote shell and have had the app server terminate when closing the shell.

                    Its started by remote shell, but detached from it with "&" .

                    Regards,
                    NDev

                    • 7. Re: JBoss process suddenly terminates from time to time
                      peterj

                      Try starting it with nohup and see if that helps. I think that the '&' just runs the process in the background, but that process is still a child of the shell process.