4 Replies Latest reply on Aug 22, 2007 3:59 AM by gasper_k

    How to run multiple JBoss Server instances on one machine?

    brucespringfield

      What do I need to change in the config to run mulitple Server instances on one machine?

        • 1. Re: How to run multiple JBoss Server instances on one machin
          gasper_k

          You have to run on a different server path and different IP address:

          bin/run.sh -c server1 --host=ip1
          bin/run.sh -c server2 --host=ip2

          If you're trying to run a cluster, just copy one server directory to a new one and use it for the second instance.

          A simple trick to add a new ip address in linux is (run as su):
          # ifconfig eth0:1 your_new_ip up

          • 2. Re: How to run multiple JBoss Server instances on one machin
            brucespringfield

             

            "gasper_k" wrote:

            If you're trying to run a cluster, just copy one server directory to a new one and use it for the second instance.


            JBoss knows they are clustered? Is this also true for Windows?



            • 3. Re: How to run multiple JBoss Server instances on one machin
              ctomc

              Hello,

              but to make sure that server folder that you are copying is the one that was derived from all configuration otherwise it does not have support for clustering.
              Ga?per one way is to have machine with more ip's or you can configure jboss that uses different ports.

              All about running more nodes on one machine you can read here: http://wiki.jboss.org/wiki/Wiki.jsp?page=ConfiguringMultipleJBossInstancesOnOneMachine

              • 4. Re: How to run multiple JBoss Server instances on one machin
                gasper_k

                 

                "ctomc" wrote:
                but to make sure that server folder that you are copying is the one that was derived from all configuration otherwise it does not have support for clustering.

                Yes, forgot to mention that. Either derive your server configuration from all or you'll have to configure the whole thing yourself (not easy).

                If the server is set up properly, the servers will automatically detect each other, to answer your question, Bruce.

                "ctomc" wrote:
                Ga?per one way is to have machine with more ip's or you can configure jboss that uses different ports.

                It's possible, but it can be annoying, since you'd have to change ports for all services running within the server, like messaging and JNDI.

                On the link you posted it's stated that changing ports is easier, but I can't understand why. Provided you're a sysadmin (which you probably are on your development computer), adding another IP is a piece of cake and it only takes one more parameter for startup. Can't get any easier, and it has no side effects.

                br