日常问题(二)——Linux系统部署的tomcat启动时间过长

时间:2022-09-16 22:06:04

找到$JAVA_HOME/jre/lib/security/java.security:

(如果是使用yum默认路径安装的JDK,则/usr/lib/jvm/java-1.8.0/jre/lib/security/java.security

securerandom.source = file:/dev/random或者securerandom.source = file:/dev/urandom

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


原理解释:

http://hongjiang.info/jvm-random-and-entropy-source/