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