[
https://issues.apache.org/jira/browse/SSHD-911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16821745#comment-16821745
]
Roberto Deandrea commented on SSHD-911:
---------------------------------------
Hi,
More info for troubleshooting...
The problem happens when the SSH client is disconnecting from the SSH server
and a quite large number of client data connections (i.e 20/30 connections) are
flowing to target servers...
Description of the DEADLOCK attached to this issue:
Thread #1328 name: sshd-SshClient[6fd5a3a4]-nio2-thread-8
org.apache.sshd.client.channel.ClientChannelPendingMessagesQueue.clearPendingQueue(ClientChannelPendingMessagesQueue.java:247)
WAITLOCK pendingQueue
......................
---
org.apache.sshd.common.session.helpers.AbstractSession.doWritePacket(AbstractSession.java:766)
LOCKED encodeLock
......................
Thread #1320 name: sshd-SshClient[6fd5a3a4]-nio2-thread-1
org.apache.sshd.common.session.helpers.AbstractSession.doWritePacket(AbstractSession.java:759)
WAITLOCK encodeLock
............................................
org.apache.sshd.client.channel.ClientChannelPendingMessagesQueue.handleIncomingMessage(ClientChannelPendingMessagesQueue.java:152)
LOCKED
pendingQueue
Let me know if you need further info.
Kind regards
Roberto Deandrea
> Deadlock in Apache SshClient used for local port forwarding
> -----------------------------------------------------------
>
> Key: SSHD-911
> URL: https://issues.apache.org/jira/browse/SSHD-911
> Project: MINA SSHD
> Issue Type: Bug
> Affects Versions: 2.2.0
> Reporter: Roberto Deandrea
> Assignee: Goldstein Lyor
> Priority: Major
> Attachments: [email protected]
>
>
> Hi Lyor,
> We have an Apache SSHD 2.2.0 client and server SSH pair used for local port
> forwarding of different protocols.
> In our lab environment we found that sometimes when the SSH client for any
> reason is disconnecting from the SSH server, a DEADLOCK happens on the
> sshClient regarding the threads in the thread pool.
> We are using builtin nio2 implementation for our SshClient.
> The deadlock is regarding the ClientChannelPendingMessagesQueue class added
> to fix routing problems for local port forwarding in the past.
> Attached you can find the thread dump taken after the deadlock happend.
>
> Can you please troubleshoot this problem ?
> [^[email protected]]
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)