Holger-Benz opened a new issue, #485: URL: https://github.com/apache/mina-sshd/issues/485
### Version 2.12.1 ### Bug description Dear apache support team, we are switching our communication software from the JSCHED sftp library to the apache-mina library. We realized that the apache mina library does not reach the performance of the JSCHED library. I have written a small program to send a 700 MB file using the SFTP protocol. This file transfer is about 6 times slower than a file transfer with the JSCHED library. How can we increase the transfer speed? Are we not using the apache-mina library correctly? public static void sendFile() throws IOException { SshClient client = SshClient.setUpDefaultClient(); client.start(); try (ClientSession session = client.connect("user", "host", 1022).verify().getClientSession();) { session.addPasswordIdentity("password"); session.auth().verify(); SftpClient sftpClient = SftpClientFactory.instance().createSftpClient(session); String largeFile = "c:/temp/largeFile"; long length = new File(largeFile).length(); try (FileChannel writeableChannel = sftpClient.openRemoteFileChannel("largeFile", SftpClient.OpenMode.Create, SftpClient.OpenMode.Truncate, SftpClient.OpenMode.Write); FileChannel readableChannel = FileChannel.open(new File(largeFile).toPath(), StandardOpenOption.READ)) { readableChannel.transferTo(0, length, writeableChannel); } } } ### Actual behavior The apache mina library does not reach the performance of other sftp-libraries ### Expected behavior Is it possible to increase the perfomance? ### 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