hierynomus / sshj

ssh, scp and sftp for java

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SFTP file transfer taking longer than usual

DileepMK7 opened this issue · comments

SFTP File transfer is taking longer than usual time.

In some cases the SFTP file transfer took 35 min for 5MB of file transfer.

After checking the logs I could see that the sshj library is using the BouncyCastleRandom class to generate the random seed, and it took approximately 2154399 milliseconds (or around 35 minutes)

2023-07-07-T08:03:09.506+0200 | xxxx| | pool-flow.seda.xxx-xx-xx-thread-142339 | INFO | net.schmizz.sshj.transport.random.BouncyCastleRandom | Generating random seed from SecureRandom. 2023-07-07-T08:39:03.906+0200 | xxxx| | pool-flow.seda.xxx-xx-xx-thread-142339 | DEBUG | net.schmizz.sshj.transport.random.BouncyCastleRandom | Creating random seed took 2154399 ms

We have checked the system CPU and memory usage and they were within limit.