目录

大橙子

VX:ZzzChChen
Phone:13403656751
Email:zxydczzs@gmail.com

Tomcat启动时Creation of SecureRandom instance for session ID 缓慢

一、查找java.security文件所在位置

[root@ecs-s6-xlarge-2-linux-20191210145334 shanhe]# find / -name java.security
/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.252.b09-2.el6_10.x86_64-debug/jre/lib/security/java.security
/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.252.b09-2.el6_10.x86_64/jre/lib/security/java.security

二、打开java.security文件

[root@ecs-s6-xlarge-2-linux-20191210145334 shanhe]# vi /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.252.b09-2.el6_10.x86_64/jre/lib/security/java.security

image.png

三、修改“securerandom.source=file:/dev/random”为“securerandom.source=file:/dev/./urandom”

#securerandom.source=file:/dev/random
#
#ZHANGXIAOYU---------------------------------------------------
#
securerandom.source=file:/dev/./urandom


标题:Tomcat启动时Creation of SecureRandom instance for session ID 缓慢
作者:zzzzchen
地址:https://www.dczzs.com/articles/2021/08/10/1628591532388.html