linux下tomcat启动慢

原因:大概的原因就是urandom的安全性没random高,但是random需要花费时间去生成随机数

解决:

/jre/lib/security/java.security下

将securerandom.source=file:/dev/random修改为securerandom.source=file:/dev/./urandom

  

原文地址:https://www.cnblogs.com/margin-gu/p/15431813.html