解决:阿里云ECS上启动tomcat后,第一次访问时间特别长

Re在ECS上启动tomcat后,第一次访问时间特别长
 
 
 
2017-04-25 10:16:04 INFO com.world.socket.ServerSocketListener  
25-Apr-2017 10:18:48.171 INFO [localhost-startStop-1] org.apache.catalina.util.SessionIdGeneratorBase.createSecureRandom CreaecureRandom instance for session ID generation using [SHA1PRNG] took [163,521] milliseconds. 
 
 
这个session ID引起的   
 
 
解决办法:在JVM环境中解决 
打开$JAVA_PATH/jre/lib/security/java.security这个文件,找到下面的内容:securerandom.source=file:/dev/urandom 
替换成securerandom.source=file:/dev/./urandom

posted on 2018-03-14 22:04  大地上的乌龟  阅读(222)  评论(0编辑  收藏  举报

导航