Tomcat启动时间很久

来源:互联网 发布:oracle sql连接字符串 编辑:程序博客网 时间:2024/06/05 17:40

启动Tomcat时需要时间很长,且报错:

INFO: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [12,367] milliseconds. 

或者:

[localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory xxx

有可能是JRE的一个Bug引起的,改一下JRE的 java.security

位置/jre/lib/security/java.security
securerandom.source=file:/dev/urandom替换成securerandom.source=file:/dev/./urandom

参考Stackoverflow此问题

0 0
原创粉丝点击