`
GodJohnny
  • 浏览: 92258 次
  • 性别: Icon_minigender_1
  • 来自: 南京
社区版块
存档分类
最新评论

Spring boot 启动时间非常长的问题

 
阅读更多
    一次项目实施过程中,发现线上的Spring boot在启动时,耗时非常长。在日志中发现这样的情况:
o.a.c.util.SessionIdGeneratorBase        : Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [170,241] milliseconds.

    查找相关资料,发现是随机数生成器的问题。需要在启动命令里加上
 
 -Djava.security.egd=file:/dev/./urandom

   
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics