1.问题定位
12-Jun-2017 15:04:12.221 INFO [localhost-startStop-1] org.apache.catalina.util.SessionIdGeneratorBase.createSecureRandom Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [134,646] milliseconds.
2.解决方法
vi {tomcat}/bin/setclasspath.sh 增加一条配置: JAVA_OPTS="-Djava.security.egd=file:/dev/./urandom"
3.验证
重启之后发现tomcat启动正常
时间: 2024-11-13 04:14:31