situation:从Apache 官网新下载的 Tomcat ,解压到Linux 服务器 ,然后启动服务器,速度很慢。看到日志如下图:

Tomcat 启动过慢 原因为:Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [304,298] milliseconds.

创建 随机数实例太耗时,是因为没有足够的熵。

解决方案如下:

centos

1、检测熵值

cat /proc/sys/kernel/random/entropy_avail

2.安装haveged
step1. 加入epel源(实际就是添加yum源配置)

yum install epel-release -y

step2. 安装haveged

yum install haveged -y

step3. 启动haveged

systemctl start haveged #启动

systemctl enable haveged #开机启动

参考网址:

https://www.jianshu.com/p/8ffc521fc3ed

相关文章:

  • 2021-08-03
  • 2022-12-23
  • 2021-12-05
  • 2021-05-30
  • 2021-07-27
  • 2022-01-12
  • 2021-09-20
  • 2021-10-20
猜你喜欢
  • 2021-05-28
  • 2021-07-17
  • 2021-07-28
  • 2021-04-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案