4 Replies Latest reply on May 23, 2017 9:04 AM by allvan

    how to stop jboss instance gracefully


      How to stop jboss instance gracefully ?

        • 1. Re: how to stop jboss instance gracefully
          peterj

          ctrl-c works. JBoss registers a signal handler that recognizes the INT signal (produced by ctrl-c) and shuts the server down gracefully.

          You could also use the shutdown.bat/sh script. It invokes a method on an mbean to do the shutdown.

          • 2. Re: how to stop jboss instance gracefully
            cronydude

            Peter,

            The command 'shutdown.sh -S' shuts down the server. This will work perfectly when you have one server instance running. How do I shutdown a particular server instance for example if I have a server named 'myserver'.

            Appreciate your time and help.

            • 3. Re: how to stop jboss instance gracefully
              peterj

              Try: shutdown -s hostname:9999 -S

              where 'hostname' is the ip address or host name of the system running the app server, and 9999 is the JNDI port.

              For example, these two command are equivalent:

              shutdown -S
              shutdown -s localhost:1099 -S

              • 4. Re: how to stop jboss instance gracefully
                allvan

                Hi, I need some help please. What if the graceful shutdown option when invoking the shutdown.bay file is not working.

                Shutdown.bat invokes the jboss-cli.bat file and it's currently none responsive.

                We are running JBoss on Windows server.

                Another question, how dangerous is it to just do a <CNTRL>+C to initiate a shutdown?

                Thank you for the help