tomcat启动时session ID创建花了很长时间

tomcat启动巨慢,一直卡在localhost-startstop-1这一步,百度之后解决了问题,做一下笔记

localhost-startstop-1 启动warning        花了264秒

tomcat启动时session ID创建花了很长时间

解决方法:在jre文件下面的lib/security的java.security文件,找到securerandom.source参数,我的是file:/dev/random,修改为file:/dev/./urandom就好了