`

Tomcat启动时Creation of SecureRandom instance for session ID很慢

 
阅读更多
java8+tomcat8默认启动很慢,原因是Tomcat 7/8都使用org.apache.catalina.util.SessionIdGeneratorBase.createSecureRandom类产生安全随机类SecureRandom的实例作为会话ID。

打开$JAVA_PATH/jre/lib/security/java.security这个文件,找到下面的内容:
securerandom.source=file:/dev/urandom
替换成
securerandom.source=file:/dev/./urandom

参考:http://blog.csdn.net/chszs/article/details/49494701
分享到:
评论

相关推荐

    Tomcat 启动时 SecureRandom 非常慢解决办法

    Tomcat 启动时 SecureRandom 非常慢解决办法 最近使用阿里云的 Ubuntu 16.04 ESC 服务器运行 Tomcat 时发现,Tomcat 启动的特别慢,通过查看日志,发现时间主要花在...SecureRandom instance for session ID generat

    Tomcat 78熵池阻塞变慢详解

    29-Oct-2015 15:52:53.587 INFO [localhost-startStop-1] org.apache.catalina.util.SessionIdGeneratorBase.createSecureRandom Creation of SecureRandom instance for session ID generation using [SHA1PRNG] ...

    Linux系统下Tomcat8启动速度很慢的解决方法

    27-Aug-2017 15:52:53.587 INFO [localhost-startStop-1] org.apache.catalina.util.SessionIdGeneratorBase.createSecureRandom Creation of SecureRandom instance for session ID generation using [SHA1PRNG] ...

    第14章:网络编程(day20).zip

    03-Jul-2018 08:58:22.411 INFO [localhost-startStop-1] org.apache.catalina.util.SessionIdGeneratorBase.createSecureRandom Creation of SecureRandom instance for session ID generation using [SHA1PRNG] ...

    搭建JavaWeb服务器步骤详解

    INFO: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [5172] milliseconds. 关于这个问题,Tomcat 7+版本中使用SecureRandom类来生成随机数,用于会话ID生成和其他地方。...

Global site tag (gtag.js) - Google Analytics