Slow startup on Tomcat 7.0.57 because of SecureRandom

前端 未结 6 1682
囚心锁ツ
囚心锁ツ 2020-12-03 00:41

I\'m using Tomcat 7.0.57 on CentOS 6.6 32 bit and openJDK7. When I start 14 different instances of Tomcat on my server(production environment), many of them take too much ti

6条回答
  •  一向
    一向 (楼主)
    2020-12-03 01:35

    The secure random calls may be blocking as there is not enough entropy to feed them in /dev/random.

    If you have the line

    securerandom.source=file:/dev/random
    

    in /jre/lib/security/java.security, changing this to urandom may improve things (although this is probably already the default).

    Alternatively there are some suggestions on how to feed the pool here

    https://security.stackexchange.com/questions/89/feeding-dev-random-entropy-pool

提交回复
热议问题