sparkchans opened a new issue, #294:
URL: https://github.com/apache/mina-sshd/issues/294

   ### Version
   
   master
   
   ### Bug description
   
   The newInputStream and newOutputStream methods of SftpFileSystemProvider 
call the SftpFileSystem#getClient() method without call the close() method:
   
![image](https://user-images.githubusercontent.com/43289294/208292345-c36f3ebd-2a29-47b8-841a-29ad6a5cc719.png)
   
   
   
   ### Actual behavior
   
   I have a thread that uploads a file to the server every 10 seconds, as time 
goes by, the heap memory will get bigger and bigger, and eventually the heap 
memory will occur out of memory:
   
![image](https://user-images.githubusercontent.com/43289294/208297098-b6810933-2bd0-42fb-9d87-9ec647873ef2.png)
   
   
   When I exported the heap memory, I found that there are a lot of objects of 
org.apache.sshd.sftp.client.fs.SftpFileSystem$Wrapper
   
![image](https://user-images.githubusercontent.com/43289294/208296946-ce5be3c5-be88-4a55-ac68-e57ca63618ec.png)
   
   
   ### Expected behavior
   
   When the program is running normally, the heap memory will not overflow
   
   ### Relevant log output
   
   _No response_
   
   ### Other information
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org
For additional commands, e-mail: dev-h...@mina.apache.org

Reply via email to