<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    Failure while joining jboss cache group/cluster
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/rajsjha">raj jha</a> in <i>JBoss Cache</i> - <a href="http://community.jboss.org/message/564567#564567">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>Hi,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Am using jboss cache in clustered way to be used accross the applications deployed on same or deiiferent jboss AS.</p><p>Same multicast ip address is being used to connect to the group (cluster for caching service). This connection to the jboss caching service happens while application bootstraps.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>The problem occurs when one of the node (application/jboss AS) is restarted and it tries to join the group again for caching service. It hangs at this point and application does not come up. I could see the jboss AS pinging again and again to get the access to the group but fails.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Following is the configuration with which all application starts up and forms a cluster with given multicast IP address.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&lt;attribute name="ClusterConfig"&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;config&gt;<br/><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;!-- Transport protocol: </span><a class="jive-link-external-small" href="http://wiki.jboss.org/wiki/JGroupsUDP" target="_blank">http://wiki.jboss.org/wiki/JGroupsUDP</a><span> --&gt;</span><br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;UDP mcast_addr="239.xxx.xxx.x" mcast_port="9011" ip_ttl="1" ip_mcast="true" mcast_send_buf_size="150000"<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; mcast_recv_buf_size="80000" ucast_send_buf_size="150000" ucast_recv_buf_size="80000" loopback="false" /&gt;<br/><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;!-- Discovery protocols: </span><a class="jive-link-external-small" href="http://wiki.jboss.org/wiki/JGroupsPING" target="_blank">http://wiki.jboss.org/wiki/JGroupsPING</a><span> --&gt;</span><br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;PING timeout="2000" num_initial_members="3" up_thread="false" down_thread="false" /&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;!--&#160; Merging Protocols: </span><a class="jive-link-external-small" href="http://wiki.jboss.org/wiki/JGroupsMERGE2" target="_blank">http://wiki.jboss.org/wiki/JGroupsMERGE2</a><span>&#160; --&gt;</span><br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;MERGE2 min_interval="10000" max_interval="20000" /&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;!-- Failure Detection Protocols: </span><a class="jive-link-external-small" href="http://wiki.jboss.org/wiki/JGroupsFD_SOCK" target="_blank">http://wiki.jboss.org/wiki/JGroupsFD_SOCK</a><span> --&gt;</span><br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;FD_SOCK /&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;!-- Failure Detection Protocols: </span><a class="jive-link-external-small" href="http://wiki.jboss.org/wiki/JGroupsVERIFY_SUSPECT" target="_blank">http://wiki.jboss.org/wiki/JGroupsVERIFY_SUSPECT</a><span> --&gt;</span><br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;VERIFY_SUSPECT timeout="1500" up_thread="false" down_thread="false" /&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;!-- Reliable Message Transmission Protocols: </span><a class="jive-link-external-small" href="http://wiki.jboss.org/wiki/JGroupsPbcastNAKACK" target="_blank">http://wiki.jboss.org/wiki/JGroupsPbcastNAKACK</a><span> --&gt;</span><br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;pbcast.NAKACK gc_lag="50" retransmit_timeout="600,1200,2400,4800" max_xmit_size="8192" up_thread="false"<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; down_thread="false" /&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;!-- Reliable Message Transmission Protocols: </span><a class="jive-link-external-small" href="http://wiki.jboss.org/wiki/JGroupsUNICAST--" target="_blank">http://wiki.jboss.org/wiki/JGroupsUNICAST--</a><span>&gt;</span><br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;UNICAST timeout="600,1200,2400" window_size="100" min_threshold="10" down_thread="false" /&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;!-- Reliable Message Transmission Protocols: </span><a class="jive-link-external-small" href="http://wiki.jboss.org/wiki/JGroupsPbcastSTABLE" target="_blank">http://wiki.jboss.org/wiki/JGroupsPbcastSTABLE</a><span> --&gt;</span><br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;pbcast.STABLE desired_avg_gossip="20000" up_thread="false" down_thread="false" /&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;!-- Group membership protocol: </span><a class="jive-link-external-small" href="http://wiki.jboss.org/wiki/JGroupsPbcastGMS" target="_blank">http://wiki.jboss.org/wiki/JGroupsPbcastGMS</a><span> --&gt;</span><br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;pbcast.GMS join_timeout="5000" join_retry_timeout="2000" shun="true" print_local_addr="true" /&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;!-- Fragmentation protocol: </span><a class="jive-link-external-small" href="http://wiki.jboss.org/wiki/JGroupsFRAG" target="_blank">http://wiki.jboss.org/wiki/JGroupsFRAG</a><span> --&gt;</span><br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;FRAG frag_size="8192" down_thread="false" up_thread="true" /&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;!-- State tranfer protocol: </span><a class="jive-link-external-small" href="http://wiki.jboss.org/wiki/JGroupsPbcastSTATE_TRANSFER" target="_blank">http://wiki.jboss.org/wiki/JGroupsPbcastSTATE_TRANSFER</a><span> --&gt;</span><br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;pbcast.STATE_TRANSFER up_thread="true" down_thread="true" /&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/config&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/attribute&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Below is what i could see in logs:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p class="MsoPlainText">"ScannerThread" daemon prio=1 tid=0x0000002afedfe570 nid=0x48aa in Object.wait() [0x000000004175f000..0x0000000041766b30]</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p class="MsoPlainText"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>at java.lang.Object.wait(Native Method)</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p class="MsoPlainText"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>- waiting on &lt;0x0000002aa809b708&gt; (a org.jgroups.util.Promise)</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p class="MsoPlainText"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>at java.lang.Object.wait(Object.java:474)</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p class="MsoPlainText"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>at org.jgroups.util.Promise.doWait(Promise.java:100)</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p class="MsoPlainText"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>at org.jgroups.util.Promise._getResultWithTimeout(Promise.java:52)</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p class="MsoPlainText"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>at org.jgroups.util.Promise.getResultWithTimeout(Promise.java:28)</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p class="MsoPlainText"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>- locked &lt;0x0000002aa809b708&gt; (a org.jgroups.util.Promise)</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p class="MsoPlainText"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>at org.jgroups.util.Promise.getResult(Promise.java:77)</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p class="MsoPlainText"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>at org.jgroups.JChannel.connect(JChannel.java:420)</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p class="MsoPlainText"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>- locked &lt;0x0000002aa6952538&gt; (a org.jgroups.JChannel)</p><p><span style="font-size: 11pt; font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;;"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>at org.jboss.cache.TreeCache.startService(TreeCache.java:1482)</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span style="font-size: 11pt; font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;;">Please suggest if am doing something problmatic.<br/></span></p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/564567#564567">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss Cache at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2052">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>