Solve the problem of slow startup of Tomcat7+ under linux


Modifying catalina.sh of tomcat is useless, you

need to modify java.security in jdk

Open the file $JAVA_PATH/jre/lib/security/java.security and find the following:

securerandom.source=file:/dev/random替换成securerandom.source=file:/dev/./urandom




 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326487138&siteId=291194637
Recommended