java8+tomcat8默认启动很慢,原因是Tomcat 7/8都使用org.apache.catalina.util.SessionIdGeneratorBase.createSecureRandom类产生安全随机类SecureRandom的实例作为会话ID。
打开$JAVA_PATH/jre/lib/security/java.security这个文件,找到下面的内容:
securerandom.source=file:/dev/urandom
替换成
securerandom.source=file:/dev/./urandom
参考:http://blog.csdn.net/chszs/article/details/49494701
Tomcat启动时Creation of SecureRandom instance for session ID很慢
猜你喜欢
转载自sensejw.iteye.com/blog/2351448
今日推荐
周排行