3 Replies Latest reply on Mar 23, 2006 10:02 AM by plutus

    How to shutdown the 2nd instance of JBoss.

    gshekar

      Hi,

      I am able to start 2nd instance of jboss using ServiceBindingManger, also I have set JAVA_OPTS="-server -Xms128m -Xmx128m -Djboss.server.ports=ports-01" .

      I am unable to shutdown this instance using ./shutdown -S command. Please suggest.

      Thanks & Regards,
      -GnanaShekar-

        • 1. Re: How to shutdown the 2nd instance of JBoss.
          mathewa

          firstly you want a lower-case -s, and you need to specify the jndi url of the server your trying to shutdown.

          ===============================================
          [bin]$ ./shutdown.sh
          A JMX client to shutdown (exit or halt) a remote JBoss server.

          usage: shutdown [options]

          options:
          -h, --help Show this help message
          -D[=] Set a system property
          -- Stop processing options
          -s, --server= Specify the JNDI URL of the remote server
          -n, --serverName= Specify the JMX name of the ServerImpl
          -a, --adapter= Specify JNDI name of the RMI adapter to use
          -u, --user= Specify the username for authentication[not implemented yet]
          -p, --password= Specify the password for authentication[not implemented yet]

          operations:
          -S, --shutdown Shutdown the server (default)
          -e, --exit= Force the VM to exit with a status code
          -H, --halt= Force the VM to halt with a status code
          ===============================================

          above clipping was taken from ... http://docs.jboss.org/jbossas/jboss4guide/r1/html/ch01.html#d0e1391

          • 2. Re: How to shutdown the 2nd instance of JBoss.

            Hello,

            I have the same issue. I am able to start the second instance by executing "home_dir/bin/run.sh -c 2_instance_name".

            The problem is how to stop the 2nd instance. The command i tried are "home_dir/bin/shutdown.sh -s jnp://hostname:port"

            but the above command fails and does not stop anything.

            Pls. if someone can take an example and explain how to stop it?

            Thanks.

            • 3. Re: How to shutdown the 2nd instance of JBoss.

              Hi,
              with 3.2.5 I am successfully using:

              bin/shutdown.sh -S -s jnp://localhost:1099