标题web项目部署到服务器之后第一次访问进行登录的时候,慢的解决方式
在日志里面可以看到这样的一条记录
Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [12,779] milliseconds
意思是 为会话ID生成创建SecureRandom实例所花费的时间
解决办法 编辑 /usr/local/jdk1.8.0_171/jre/lib/security/下的java.security 文件
securerandom.source=file:/dev/random
改为
securerandom.source=file:/dev/./random
这样就是一个非租塞