启动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