cwrc / NERVE

Named Entity Recognition Vetting Environment
GNU General Public License v2.0
3 stars 3 forks source link

Docker container slow startup #91

Open jefferya opened 4 years ago

jefferya commented 4 years ago

Intermittently, the nerve docker container requires lengthy startup times. If continues, investigate the following.

The log contains the following:

org.apache.catalina.util.SessionIdGenerator createSecureRandom
INFO: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [199,620] milliseconds.

Reference:

Thaerious commented 4 years ago

I had to mount urandom to random when running tomcat on the SHARCNET cloud. docker run -v /dev/urandom:/dev/random -it --rm -p 8080:8080 tomcat:9.0

I believe Tomcat waits for sufficient randomness to run https, and cloud images can be lacking randomness.