找到$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/