美文网首页
解决tomcat启动慢

解决tomcat启动慢

作者: liurongming | 来源:发表于2017-04-03 18:02 被阅读0次

1.在Tomcat环境中解决

可以通过配置JRE使用非阻塞的Entropy Source。

在catalina.sh中加入这么一行:-Djava.security.egd=file:/dev/./urandom 即可。

2.在JVM环境中解决(*实测,真实好使)

打开$JAVA_PATH/jre/lib/security/java.security这个文件,找到下面的内容:

securerandom.source=file:/dev/urandom
替换成

securerandom.source=file:/dev/./urandom

相关文章

网友评论

      本文标题:解决tomcat启动慢

      本文链接:https://www.haomeiwen.com/subject/eudoottx.html