首页 > 其他 > 详细

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

时间:2018-11-20 12:28:43      阅读:562      评论:0      收藏:0      [点我收藏+]

启动tomcat很慢,检查后发现:
[localhost-startStop-1]
org.apache.catalina.util.SessionIdGeneratorBase.createSecureRandom Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [131,830] milliseconds。

主要时间都花在Creation of SecureRandom instance上了

解决办法:

先检查$JAVA_HOME/jre/lib/security/java.security中用的file:/dev/./random!是否前面少了个u!!如果是,改成file:/dev/urandom后,重启tomcat,sucess。

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

原文:https://www.cnblogs.com/YouBoWen/p/9988063.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!