[jboss-user] [JBoss Remoting] - Re: Remote Client.addCallbackListener hang

david malechek do-not-reply at jboss.com
Thu Apr 28 16:32:20 EDT 2011


david malechek [http://community.jboss.org/people/dmalechek] created the discussion

"Re: Remote Client.addCallbackListener hang"

To view the discussion, visit: http://community.jboss.org/message/602613#602613

--------------------------------------------------------------
Ron,
Unfortunately we had an incident with the 2.2.4 jar that locked up all remote client activity.
I tried my hand at analyzing the thread dump, let me know if you think I'm wrong.  I think it may be related to JBREM-1242 but too involved for me to figure out.
Assuming that Object at 383d87 is connectionValidatorLock and Object at 8ecb42 is clientLeaseLock, the threads below show that Timer-9954 and Thread-390047 block each other.  Which would only be slightly bad, but then Timer-2 blocks and then all the WorkerThreads like WorkerThread#1664 is blocked since handleClientFailure is synchronized.  There was actually a thread Timer-9953 exactly like Timer-9954 as well.


Thread: Timer-9954 : priority:5, demon:true, threadId:782301, threadState:BLOCKED, lockName:java.lang.Object at 383d87
    org.jboss.remoting.Client.notifyListeners(Client.java:1781) 
    ...

Thread: Thread-390047 : priority:5, demon:true, threadId:778140, threadState:BLOCKED, lockName:java.lang.Object at 8ecb42
    org.jboss.remoting.MicroRemoteClientInvoker.establishLease(MicroRemoteClientInvoker.java:458)
    ...

Thread: Timer-2 : priority:5, demon:true, threadId:39, threadState:BLOCKED, lockName:java.lang.Object at 383d87
    org.jboss.remoting.Client.disconnect(Client.java:735)
    org.jboss.remoting.callback.ServerInvokerCallbackHandler.destroy(ServerInvokerCallbackHandler.java:1016)
    org.jboss.remoting.callback.ServerInvokerCallbackHandler.shutdown(ServerInvokerCallbackHandler.java:1028)
    org.jboss.jms.server.endpoint.ServerConnectionEndpoint.closeCallbackClient(ServerConnectionEndpoint.java:474)
    org.jboss.jms.server.connectionmanager.SimpleConnectionManager.cleanupForSessionID(SimpleConnectionManager.java:468)
    org.jboss.jms.server.connectionmanager.SimpleConnectionManager.handleClientFailure(SimpleConnectionManager.java:201)
    org.jboss.jms.server.connectionmanager.SimpleConnectionManager.handleConnectionException(SimpleConnectionManager.java:241)
    ...

Thread: WorkerThread#1664[10.48.16.175:56059] : priority:5, demon:false, threadId:786648, threadState:BLOCKED, lockName:org.jboss.jms.server.connectionmanager.SimpleConnectionManager at 2cf63
    org.jboss.jms.server.connectionmanager.SimpleConnectionManager.handleClientFailure(SimpleConnectionManager.java:201)
    ...

Thanks,
David
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/602613#602613]

Start a new discussion in JBoss Remoting at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2050]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110428/2bf52e64/attachment.html 


More information about the jboss-user mailing list