1.linux下,tomcat7启动超慢,如下日志:
INFO: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [145,456] milliseconds.
解决:
在catalina.sh中配置 JAVA_OPTS="$JAVA_OPTS -Djava.security.egd=file:/dev/./urandom"
本文介绍了解决Linux环境下Tomcat7启动速度过慢的问题。通过修改catalina.sh文件中的JAVA_OPTS参数来减少SecureRandom实例创建所需的时间。
1.linux下,tomcat7启动超慢,如下日志:
INFO: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [145,456] milliseconds.
解决:
在catalina.sh中配置 JAVA_OPTS="$JAVA_OPTS -Djava.security.egd=file:/dev/./urandom"
448

被折叠的 条评论
为什么被折叠?