<!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;">
    JBM clients hangs when creating connections/sessions
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/danezu">Daniel Dumitrescu</a> in <i>JBoss Messaging</i> - <a href="http://community.jboss.org/message/644597#644597">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>Hello guys</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>We're facing a problem with JMS remote clients hanging like forever when trying to&#160; create connections/sessions on a JBoss Messaging 1.4.5.SP1 on JBoss 4.2.3 GA</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>The setup is the following:</p><p>- JBoss Servers: </p><p># 3 JBoss 4.2.3 GA set up in cluster, with the same multi-cast IP address and partition name</p><p># JBoss Messaging 1.4.5 SP1 installed on each one of them, with one queue and 5 topics, all clustered and with durable subscriptions</p><p># MySQL 5.5.9 as persistence layer for JBM</p><p># persisten messages needed, no message should be ever lost</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>- remote clients</p><p># simple clients that looks up for {code}XAConnectionFactory{code}, and send every 30 secs more than one message, every time with JNDI lookup, create connection &amp; session (all are closed in the finally clause). One addition: on the client side is made XA resource enlisting with the remote target queue and the transaction is managed by hand on both client and JBM side.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>The load from the client side to the server is not so high, like 10,000 - 20,000 messages per day, but after 8-10 days the cluster gets unresponsive to new JMS remote connections, and the clinet threads are hanging. The local message processing, i.e. on each node on the topics works, which led me to the fact that can be a problem with JBoss Remoting</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>The client threads are locking in this point:</p><p>{code}</p><p>Thread: JMS SessionPool Worker-0 : priority:5, demon:true, threadId:228, threadState:RUNNABLE, lockName:null</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160;&#160;&#160; java.net.SocketInputStream.socketRead0(Native Method)</p><p>&#160;&#160;&#160; java.net.SocketInputStream.read(SocketInputStream.java:129)</p><p>&#160;&#160;&#160; java.io.BufferedInputStream.fill(BufferedInputStream.java:218)</p><p>&#160;&#160;&#160; java.io.BufferedInputStream.read(BufferedInputStream.java:237)</p><p>&#160;&#160;&#160; java.io.FilterInputStream.read(FilterInputStream.java:66)</p><p>&#160;&#160;&#160; org.jboss.remoting.transport.socket.MicroSocketClientInvoker.readVersion(MicroSocketClientInvoker.java:1077)</p><p>&#160;&#160;&#160; org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:682)</p><p>&#160;&#160;&#160; org.jboss.remoting.transport.bisocket.BisocketClientInvoker.transport(BisocketClientInvoker.java:458)</p><p>&#160;&#160;&#160; org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:141)</p><p>&#160;&#160;&#160; org.jboss.remoting.Client.invoke(Client.java:1925)</p><p>&#160;&#160;&#160; org.jboss.remoting.Client.invoke(Client.java:786)</p><p>&#160;&#160;&#160; org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.org$jboss$jms$client$delegate$ClientConnectionFactoryDelegate$createConnectionDelegate$aop(ClientConnectionFactoryDelegate.java:178)</p><p>&#160;&#160;&#160; org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.invokeNext(ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.java)</p><p>&#160;&#160;&#160; org.jboss.jms.client.container.StateCreationAspect.handleCreateConnectionDelegate(StateCreationAspect.java:80)</p><p>&#160;&#160;&#160; org.jboss.aop.advice.org.jboss.jms.client.container.StateCreationAspect0.invoke(StateCreationAspect0.java)</p><p>&#160;&#160;&#160; org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.invokeNext(ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.java)</p><p>&#160;&#160;&#160; org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.createConnectionDelegate(ClientConnectionFactoryDelegate.java)</p><p>&#160;&#160;&#160; org.jboss.jms.client.JBossConnectionFactory.createConnectionInternal(JBossConnectionFactory.java:205)</p><p>&#160;&#160;&#160; org.jboss.jms.client.JBossConnectionFactory.createXAQueueConnection(JBossConnectionFactory.java:142)</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>{code}</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Have anyone encountered this behavior?</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Regards,</p><p>Daniel</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/644597#644597">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss Messaging at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2042">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


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

</div>

</body>
</html>