Tomcat启动时Creation of SecureRandom instance for session ID 缓慢
一、查找 java.security 文件所在位置
1[root@ecs-s6-xlarge-2-linux-20191210145334 shanhe]# find / -name java.security
2/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.252.b09-2.el6_10.x86_64-debug/jre/lib/security/java.security
3/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 文件
1[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
三、修改“securerandom.source=file:/dev/random”为“securerandom.source=file:/dev/./urandom”
1#securerandom.source=file:/dev/random
2#
3#ZHANGXIAOYU---------------------------------------------------
4#
5securerandom.source=file:/dev/./urandom
6
标题:Tomcat启动时Creation of SecureRandom instance for session ID 缓慢
作者:zzzzchen
地址:https://www.dczzs.com/articles/2021/08/10/1628591532388.html