問題
使用Tomcat部署war包時,有時出現(xiàn)啟動速度十分緩慢的情況。
解決方案
應(yīng)將 $JAVA_HOME/jre/lib/security/java.security 中的
securerandom.source=file:/dev/random
或者
securerandom.source=file:/dev/urandom
改為
securerandom.source=file:/dev/./urandom
使用Tomcat部署war包時,有時出現(xiàn)啟動速度十分緩慢的情況。
應(yīng)將 $JAVA_HOME/jre/lib/security/java.security 中的
securerandom.source=file:/dev/random
或者
securerandom.source=file:/dev/urandom
改為
securerandom.source=file:/dev/./urandom