Springboot在linux系统中,首次request.getSession()速度慢问题

tomcat启动成功后,第一次调用request.getSession()返回速度慢

解决办法:

1:修改文件:$JAVA_PATH/jre/lib/security/java.security 中securerandom.source=file:/dev/random 改为securerandom.source=file:/dev/urandom

2:在catalina.sh中加入这么一行:-Djava.security.egd=file:/dev/./urandom 即可

转自 https://blog.csdn.net/lsm135/article/details/77801052

猜你喜欢

转载自blog.csdn.net/qq_33820379/article/details/84560886
今日推荐