zhangbing created SSHD-1294:
-------------------------------
Summary: Default SshClient FD leak because Selector not closed
Key: SSHD-1294
URL: https://issues.apache.org/jira/browse/SSHD-1294
Project: MINA SSHD
Issue Type: Bug
Affects Versions: 2.8.0
Reporter: zhangbing
Attachments: image-2022-09-07-09-52-41-327.png,
image-2022-09-07-10-06-03-182.png, image-2022-09-07-10-24-00-969.png,
image-2022-09-07-10-24-35-550.png, image-2022-09-07-10-25-14-435.png,
image-2022-09-07-10-30-41-233.png, image-2022-09-07-10-42-15-818.png,
image-2022-09-07-11-21-33-635.png
The default SshClient SshClient.setUpDefaultClient() using
MinaServiceFactory.The NioProcessor is created and open the Selector. The
Selector.close() is called in doDispose().
!image-2022-09-07-09-52-41-327.png!
!image-2022-09-07-10-06-03-182.png!
!image-2022-09-07-10-42-15-818.png!
When creating NioSocketConnector,the field createdProcessor is always false.
!image-2022-09-07-10-24-00-969.png!
!image-2022-09-07-10-24-35-550.png!
!image-2022-09-07-10-25-14-435.png!
Because createdProcessor is always false, processor.dispose() is never executed.
!image-2022-09-07-10-30-41-233.png!
The dispose() in SimpleIoProcessorPool will not be executed. So,the dispose()
and doDisopose in NioProcessor is nerver executed. The Selector in NioProcessor
is not closed.
FD leak information with the losf command:
!image-2022-09-07-11-21-33-635.png!
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]