linux下tomcat启动慢

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

解决:

/jre/lib/security/java.security下

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

  

posted @ 2021-10-21 09:20  margin_gu  阅读(78)  评论(0编辑  收藏  举报