4 Replies Latest reply on Feb 14, 2012 12:14 AM by jaikiran

    more than one standalone running in the same machine problem

    morphy

      Hi,

       

      i've started a standalone instance (ha-full) binding to 192.168.1.99, i fail to start another instance binding to 192.168.1.98, they refer to 2 different jboss base paths (and different configuration paths)

       

      the second instance fails to bind the following service:

       

      • jboss.remoting.server.remoting-connector (tries /127.0.0.1:4447)
      • http (tries localhost/127.0.0.1:8080)
      • jacorb.orb.iiop ( could not create server socket port: 3528 host: localhost/127.0.0.1: java.net.BindException: Address already in use)
      • jboss.jacorb.poa-service.rootpoa:

       

      i've tried the following (in reverse order... ):

       

      • -bpublic=<ip> -bmanagement=<ip>
      • -b <ip> -bmanagement=<ip>
      • -b <ip>

       

      any clue? thnx and bye

        • 1. Re: more than one standalone running in the same machine problem
          morphy

          -Djboss.socket.binding.port-offset=xxx works and both instances start

           

          bye

          • 2. Re: more than one standalone running in the same machine problem
            jbertram

            Are both 192.168.1.99 and 192.168.1.98 real interfaces (e.g. they show up when you run ifconfig)?

            • 3. Re: more than one standalone running in the same machine problem
              morphy

              Mmmmm no, they are 2 ip on the same interface:

               

              ifconfig

               

              ....

               

              wlan0     Link encap:Ethernet  HWaddr 00:08:54:AC:49:D5 

                        inet addr:192.168.1.99  Bcast:192.168.1.255  Mask:255.255.255.0

                        UP BROADCAST RUNNING ALLMULTI MULTICAST  MTU:1500  Metric:1

                        RX packets:321745 errors:0 dropped:0 overruns:0 frame:0

                        TX packets:508057 errors:0 dropped:0 overruns:0 carrier:0

                        collisions:0 txqueuelen:1000

                        RX bytes:53407155 (50.9 Mb)  TX bytes:279990492 (267.0 Mb)

               

               

              wlan0:me2 Link encap:Ethernet  HWaddr 00:08:54:AC:49:D5 

                        inet addr:192.168.1.98  Bcast:192.168.1.255  Mask:255.255.255.0

                        UP BROADCAST RUNNING ALLMULTI MULTICAST  MTU:1500  Metric:1

               

              but... i was used to use this workaround, in the past...

              • 4. Re: more than one standalone running in the same machine problem
                jaikiran

                Riccardo Pasquini wrote:

                 

                -Djboss.socket.binding.port-offset=xxx works and both instances start

                 

                bye

                That is the right solution. Starting multiple instance bound to the same IP means you have to take care of port conflicts by setting that offset.