hierynomus / hierynomus/sshj

SFTP file transfer taking longer than usual

Open
#884 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
2.7k
Forks
620
Avg merge
3d 23h
Merged PRs (30d)
11

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.