2 Replies Latest reply on Apr 5, 2005 3:44 AM by debarcar

    jgroup connection unstable

    debarcar

      Dear All,

      In my environment: 2 win2000, JBoss 3.2.3, when I start in ?all? mode, sometimes the cluster has 2 nodes, sometimes just 1 each other.

      I check the code and found it is a JGroup connection issue. And I write the follow code to test:

      public class JGroupConnectionTest {
      private static String jgPropsUDP =
      "UDP(bind_port=44448;ip_mcast=true;ip_ttl=64;loopback=true;mcast_addr=228.1.2.3;mcast_port=45566;mcast_recv_buf_size=80000;mcast_send_buf_size=150000;ucast_recv_buf_size=80000;ucast_send_buf_size=150000)"
      + ":"
      + "PING(down_thread=true;num_initial_members=3;timeout=2000;up_thread=true)"
      + ":"
      + "MERGE2(max_interval=10000;min_interval=5000)"
      + ":"
      + "FD(down_thread=true;max_tries=5;shun=true;timeout=2500;up_thread=true)"
      + ":"
      + "VERIFY_SUSPECT(down_thread=true;num_msgs=3;timeout=3000;up_thread=true)"
      + ":"
      + "pbcast.NAKACK(down_thread=true;gc_lag=50;retransmit_timeout=300,600,1200,2400,4800;up_thread=true)"
      + ":"
      + "pbcast.STABLE(desired_avg_gossip=20000;down_thread=true;up_thread=true)"
      + ":"
      + "UNICAST(down_thread=true;min_threshold=10;timeout=5000;window_size=100)"
      + ":"
      + "FRAG(down_thread=true;frag_size=8192;up_thread=true)"
      + ":"
      + "pbcast.GMS(join_retry_timeout=2000;join_timeout=5000;print_local_addr=true;shun=true)"
      + ":" + "pbcast.STATE_TRANSFER(down_thread=true;up_thread=true)";
      public static void main(String[] args) throws Exception {
      Trace.setDefaultOutput(Trace.DEBUG, System.out);
      Channel channel = new JChannel(jgPropsUDP);
      channel.connect("TestPartition");
      while (true) {
      Thread.sleep(5000);
      System.out.println("the size of members is: "
      + channel.getView().getMembers().size());
      }
      }
      }

      Sometimes it printout ?the size of members is : 2?, and sometimes 1.

      Check the system out I found one server can not receive the ?PING.up(): received GET_MBRS_REQ? from the other server.

      Any one has any suggestion?

      Best regards!

      debarcar

        • 1. Re: jgroup connection unstable
          belaban

          Could be a lot of things. I suggest you test JGroups standalone first (so we can exclude a JBoss problem).
          Take 2.2.7 (or 2.2.8 from the CVS) and run the same test.

          • 2. Re: jgroup connection unstable
            debarcar

            I also tested it in the 2.2.7. And the result is same.

            I use a new hardisk to install a new system and it is stable now. But the issue was not soluted in the old hardisk :(.

            Any method for the checking?

            Thanks and best regards!