Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [32,176] milliseco

Posted T

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [32,176] milliseco相关的知识,希望对你有一定的参考价值。

有一次,我启动tomcat时,居然花费了33秒。我不理解为什么一个新的tomcat,需要这么久,

网上查找后,找到了一个解决方法。

# vim /usr/local/tomcat/bin/catalina.sh
---------------------------------------------------
JAVA_OPTS="-Djava.security.egd=file:/dev/./urandom"
---------------------------------------------------

重新启动,发现时间变成1秒。

以上是关于Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [32,176] milliseco的主要内容,如果未能解决你的问题,请参考以下文章

重启tomcat后,访问登陆接口响应慢--Creation of SecureRandom instance for session ID generation using [SHA1PRNG] to

Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [32,176] milliseco

tomcat启动慢,Creation of SecureRandom instance for session ID generation using [SHA1PRNG]took [xx] ms

tomcat启动慢,Creation of SecureRandom instance for session ID generation using [SHA1PRNG]took [xx] ms

tomcat启动慢,Creation of SecureRandom instance for session ID generation using [SHA1PRNG]took [xx] ms(代

解决Linux Tomcat启动慢--Creation of SecureRandom instance for session ID generation using [SHA1PRNG] to(代