刚部署的tomcat,却启动很慢,可能是由于jdk引起的:
找到jdk的安装目录,找到 /jre/lib/security/java.security 文件:
原配置:securerandom.source=file:/dev/random
修改为:securerandom.source=file:/dev/./urandom
然后重启tomcat既可
tomcat启动慢的原因之一
最新推荐文章于 2022-06-13 13:49:56 发布
刚部署的tomcat,却启动很慢,可能是由于jdk引起的:
找到jdk的安装目录,找到 /jre/lib/security/java.security 文件:
原配置:securerandom.source=file:/dev/random
修改为:securerandom.source=file:/dev/./urandom
然后重启tomcat既可