<!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;">
Messaging server lock up issues
</h3>
<span style="margin-bottom: 10px;">
created by <a href="http://community.jboss.org/people/vbs_jboss_accnt">vidhya Baskaran</a> in <i>JBoss Remoting</i> - <a href="http://community.jboss.org/message/624162#624162">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>We are having issues with a JBOSS Application server running with the following versions </p><p>jboss messaging 1.4.6</p><p>jboss remoting 2.5.2</p><p>primarily being used for messaging purposes.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>The server often locks up  and the only way to get the clients to connect again is to restart the server.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Looking at the stack trace ,multiple workerthreads are waiting on this following lock</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>- waiting on <0x1990f6eb> (a EDU.oswego.cs.dl.util.concurrent.WriterPreferenceReadWriteLock$ReaderLock)</p><p>java.lang.Object.wait(Native Method)</p><p>java.lang.Object.wait(Object.java:485)</p><p>EDU.oswego.cs.dl.util.concurrent.WriterPreferenceReadWriteLock$ReaderLock.acquire(WriterPreferenceReadWriteLock.java:163)</p><p>org.jboss.messaging.core.impl.postoffice.MessagingPostOffice.routeInternal(MessagingPostOffice.java:2210)</p><p>org.jboss.messaging.core.impl.postoffice.MessagingPostOffice.route(MessagingPostOffice.java:515)</p><p>org.jboss.jms.server.endpoint.ServerConnectionEndpoint.sendMessage(ServerConnectionEndpoint.java:777)</p><p>org.jboss.jms.server.endpoint.ServerSessionEndpoint.send(ServerSessionEndpoint.java:399)</p><p>org.jboss.jms.server.endpoint.advised.SessionAdvised.org$jboss$jms$server$endpoint$advised$SessionAdvised$send$aop(SessionAdvised.java:87)</p><p>org.jboss.jms.server.endpoint.advised.SessionAdvised$send_7280680627620114891.invokeNext(SessionAdvised$send_7280680627620114891.java)</p><p>org.jboss.jms.server.container.SecurityAspect.handleSend(SecurityAspect.java:157)</p><p>sun.reflect.GeneratedMethodAccessor233.invoke(Unknown Source)</p><p>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)</p><p>java.lang.reflect.Method.invoke(Method.java:597)</p><p>org.jboss.aop.advice.PerInstanceAdvice.invoke(PerInstanceAdvice.java:122)</p><p>org.jboss.jms.server.endpoint.advised.SessionAdvised$send_7280680627620114891.invokeNext(SessionAdvised$send_7280680627620114891.java)</p><p>org.jboss.jms.server.endpoint.advised.SessionAdvised.send(SessionAdvised.java)</p><p>org.jboss.jms.wireformat.SessionSendRequest.serverInvoke(SessionSendRequest.java:95)</p><p>org.jboss.jms.server.remoting.JMSServerInvocationHandler.invoke(JMSServerInvocationHandler.java:157)</p><p>org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:897)</p><p>org.jboss.remoting.transport.socket.ServerThread.completeInvocation(ServerThread.java:768)</p><p>- locked <0x69b3f1c0> (a org.jboss.remoting.transport.socket.ServerThread)</p><p>org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:721)</p><p>org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:548)</p><p>org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:234)</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Attached is the settings from the remoting-bisocket-service.xml file</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>               <!--               </p><p>               <attribute name="writeTimeout" isParam="true">30000</attribute></p><p>               --></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>               <!-- End immutable parameters --></p><p>               </p><p>               <attribute name="stopLeaseOnFailure" isParam="true">true</attribute></p><p>               </p><p>               <!-- Periodicity of client pings. Server window by default is twice this figure -->                               </p><p>               <attribute name="clientLeasePeriod" isParam="true">10000</attribute></p><p>               <attribute name="validatorPingPeriod" isParam="true">10000</attribute></p><p>               <attribute name="validatorPingTimeout" isParam="true">5000</attribute></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>               <attribute name="failureDisconnectTimeout" isParam="true">0</attribute></p><p>               <attribute name="callbackErrorsAllowed">1</attribute></p><p>               <attribute name="registerCallbackListener">false</attribute></p><p>               <attribute name="useClientConnectionIdentity" isParam="true">true</attribute></p><p>                      </p><p>                <attribute name="timeout" isParam="true">0</attribute></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>               <!-- Max Number of connections in client pool. This should be significantly higher than</p><p>                    the max number of sessions/consumers you expect --></p><p>               <attribute name="JBM_clientMaxPoolSize" isParam="true">1000</attribute></p><p>               </p><p>               <!-- The maximum time to wait before timing out on trying to write a message to socket for delivery --></p><p>               <attribute name="callbackTimeout">10000</attribute> </p><p>               </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>I am trying to find out if its a configuration issue or a code issue on our side ? </p><p>Is it possible that one particular client is having problems and that in turn causes the server to lock up ?</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Please help.</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/624162#624162">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss Remoting at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2050">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>