tomcat启动慢

tomcat启动时候发现很慢,其中有如下日志,消耗了大部分的时间 org.apache.catalina.util.SessionIdGeneratorBase.createSecureRandom Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [108,623] milliseconds.

修改配置文件bin/catalina.sh

里面找到JAVA_OPTS="$JAVA_OPTS $JSSE_OPTS"加入-Djava.security.egd=file:/dev/./urandom即可

修改完如下格式:

JAVA_OPTS="$JAVA_OPTS $JSSE_OPTS -Djava.security.egd=file:/dev/./urandom"

原文

评论

h
hw_7864

⭐️ Admin快速开发: https://show.cool-admin.com/

赞 0
h
hw_7864

⭐️ 官方文档: https://cool-js.com

赞 0
h
hw_7864

⭐️ chatgpt在线体验: https://cool-js.com/ai/chat-vip/index.html?r=helloworld

赞 0