2 Replies Latest reply on Jul 25, 2011 5:48 AM by chengwen

    Can I Open Multiple JBoss Instances On One Machine Like This?

    chengwen

      Hello, all.

       

      I am using JBOSS 6.0.0.0 Final to configure multiple jboss instances on one machine.

       

      I found it very simple after I followed:

      http://community.jboss.org/wiki/ConfiguringMultipleJBossInstancesOnOneMachine

       

      Here is my directory tree:

       

      • $JBOSS_HOME
        • server
          • node1
          • node2
          • node3
          • nodeX

       

      I run :

       

        run.bat -c node1  -b 0.0.0.0 -Djboss.service.binding.set=ports-01
        run.bat -c node2  -b 0.0.0.0 -Djboss.service.binding.set=ports-02 
        run.bat -c node3  -b 0.0.0.0 -Djboss.service.binding.set=ports-03
      

       

      And then it is OK.

       

       

      Now, my question is:

      Since there is no difference between the content of "node1" and "node2", can I just keep only "node1" in "$JBOSS_HOME/server" and run multiple instance like this:

       

      • $JBOSS_HOME
        • server
          • node1

       

        run.bat -c node1  -b 0.0.0.0 -Djboss.service.binding.set=ports-01 
        run.bat -c node1  -b 0.0.0.0 -Djboss.service.binding.set=ports-02 
        run.bat -c node1  -b 0.0.0.0 -Djboss.service.binding.set=ports-03
      

       

       

      I tried it and it looks like working fine. But I am not sure about it.

       

      Can I do this? Or did I ignore something that should be noticed ?

       

      Thanks in advance.

        • 1. Re: Can I Open Multiple JBoss Instances On One Machine Like This?
          jaikiran

          Wen Cheng wrote:

           

           

           

          Now, my question is:

          Since there is no difference between the content of "node1" and "node2", can I just keep only "node1" in "$JBOSS_HOME/server" and run multiple instance like this:

           

          • $JBOSS_HOME
            • server
              • node1

           

            run.bat -c node1  -b 0.0.0.0 -Djboss.service.binding.set=ports-01 
            run.bat -c node1  -b 0.0.0.0 -Djboss.service.binding.set=ports-02 
            run.bat -c node1  -b 0.0.0.0 -Djboss.service.binding.set=ports-03
          

           

           

          I tried it and it looks like working fine. But I am not sure about it.

           

          Can I do this? Or did I ignore something that should be noticed ?

           

          Thanks in advance.

          You'll end up sharing the log, data and tmp directories between multiple JVM instances, which isn't a good thing. You can however specify different log, data and tmp directory for each of these instances by passing the appropriate system properties.  Furthermore, you even will end up deploying the same application (from node1/deploy folder) into multiple JVMs. Is that what you want?

          1 of 1 people found this helpful
          • 2. Re: Can I Open Multiple JBoss Instances On One Machine Like This?
            chengwen

            Ok, I know it's not a good idea to do that.

            I will go back to the "standard“ way.

             

            Thank you, Jaikiran.