3 Replies Latest reply on Mar 12, 2010 12:47 AM by Rasa Here

    shutdown is not working for one instance

    Rasa Here Novice

      Hi,

       

      I am using jboss 4.2.3 GA , i have two jboss instances in one machine and it is started using different ip address and the jnp port is 1099. I have configured it as service. In both case i am able to start jboss. But in the case of second instance i am not able to stop, i have tried the command from bin directory.

       

       

      ./shutdown.sh -s 211.1.1.160:1099 &
      [1] 4078
      [jboss@appserver bin]$ Shutdown message has been posted to the server.
      Server shutdown may take a while - check logfiles for completion

      [1]+  Done                    ./shutdown.sh -s 211.1.1.160:1099

      But still the process is running, ican see it through ps command. So how can i trace this issue. Now it is clear that it is not an issue of service.

       

      Thanks and Regards

      Rasa

        • 1. Re: shutdown is not working for one instance
          Peter Johnson Master

          Look in the server.log file, there should be an entry that the server received the shutdown request. Something like this:

           

          2010-03-09 13:57:45,040 INFO  [org.jboss.bootstrap.microcontainer.ServerImpl] (JBoss Shutdown Hook) Runtime shutdown hook called, forceHalt: true

           

          If you see that and the app server is still running, then a thread dump might help determine which thread is holding up the process.

           

          If you do not see that message, you need to double-check the IP address in the shutdown command.

          1 of 1 people found this helpful
          • 2. Re: shutdown is not working for one instance
            Rasa Here Novice

            Hi Peter,

             

            It shows

             

            2010-03-12 10:30:32,383 DEBUG [org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread] Notified to shutdown
            2010-03-12 10:30:32,383 INFO  [org.jboss.system.server.Server] Runtime shutdown hook called, forceHalt: true
            2010-03-12 10:30:32,383 INFO  [org.jboss.system.server.Server] JBoss SHUTDOWN: Undeploying all packages
            2010-03-12 10:30:32,384 DEBUG [org.jboss.deployment.MainDeployer] Undeploying file:/usr1/jboss2/jboss-4.2.3.GA/server/default/deploy/jmx-console.war/, isShutdown=true
            2010-03-12 10:30:32,384 DEBUG [org.jboss.system.ServiceController] stopping service: jboss.web.deployment:war=jmx-console.war,id=-532546317
            2010-03-12 10:30:32,384 DEBUG [org.jboss.system.ServiceController] stopping dependent services for: jboss.web.deployment:war=jmx-console.war,id=-532546317 dependent services are: []

            Let me check the thread dump now.

            • 3. Re: shutdown is not working for one instance
              Rasa Here Novice
              Thanks peter as you said some thread holds the process.