Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [271] milliseconds.

翻译过来是:使用[SHA1PRNG]创建用于会话ID生成的SecureRandom实例花费了[271]毫秒。

1/[SHA1PRNG] java的一个基于SHA-1算法实现且保密性较强的伪随机数生成器,详见java.security.SecureRandom()

找到两种解决办法/https://blog.csdn.net/u011627980/article/details/54024974:

1)在Tomcat环境中解决

可以通过配置JRE使用非阻塞的Entropy Source。

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

加入后再启动Tomcat,整个启动耗时下降到Server startup in 2912 ms。

2)在JVM环境中解决

打开$JAVA_PATH/jre/lib/security/java.security这个文件,找到下面的内容:

securerandom.source=file:/dev/urandom

替换成

securerandom.source=file:/dev/./urandom

但是都不奏效,后来发现本地环境jdk是1.8,jre是1.7全部卸载后安装同一版本。最后work...

原文地址:https://www.cnblogs.com/jiml/p/9356874.html

时间: 2024-11-13 11:13:38

Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [271] milliseconds.的相关文章

【解决】Linux Tomcat启动慢--Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [236,325] milliseconds

一.背景 今天部署项目到tomcat,执行./startup.sh命令之后,访问项目迟迟加载不出来,查看日志又没报错(其实是我粗心了,当时tomcat日志还没打印完),一开始怀疑是阿里云主机出现问题,访问ip:80发现nginx运行正常.在我百思不得其解时,项目访问正常了,查看启动日志,发现如下: 15-Mar-2018 16:41:02.302 WARNING [main] org.apache.catalina.util.SessionIdGeneratorBase.createSecure

Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [32,176] milliseco

有一次,我启动tomcat时,居然花费了33秒.我不理解为什么一个新的tomcat,需要这么久, 网上查找后,找到了一个解决方法. # vim /usr/local/tomcat/bin/catalina.sh --------------------------------------------------- JAVA_OPTS="-Djava.security.egd=file:/dev/./urandom" -----------------------------------

Tomcat启动时Creation of SecureRandom instance for session ID很慢

启动tomcat很慢,检查后发现:[localhost-startStop-1] org.apache.catalina.util.SessionIdGeneratorBase.createSecureRandom Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [131,830] milliseconds. 主要时间都花在Creation of SecureRandom inst

open数据库报错ERROR at line 1: ORA-03113: end-of-file on communication channel Process ID: 3880 Session ID: 125 Serial number: 3

1.今天打开数据时,失败,报错 ERROR at line 1:ORA-03113: end-of-file on communication channelProcess ID: 3880Session ID: 125 Serial number: 3 2.想看下数据库的状态,发现提示:not connected to ORACLE[email protected]> select status,instance_name from v$instance;ERROR:ORA-03114: no

使用 AFNetworking的时候,如何管理 session ID

问: As the title implies, I am using AFNetworking in an iOS project in which the application talks to a server. When the user signs in, the server responds by sending back a success flag and the response headers contain the session ID. I am wondering

php中session_id()函数详细介绍,会话id生成过程及session id长度

php中session_id()函数原型及说明session_id()函数说明:stringsession_id([string$id])session_id() 可以用来获取/设置 当前会话 ID.为了能够将会话 ID 很方便的附加到 URL 之后, 你可以使用常量 SID 获取以字符串格... php中session_id()函数原型及说明 session_id()函数说明: ? 1 string session_id ([ string $id ] ) session_id() 可以用来获

cookie禁用后session id传值的问题

上一篇说道session和cookie的关系,一般情况下session是借助于cookie传值的,那么cookie被禁用了,session怎么传id的值,下面介绍两种方法 经常被使用的一种技术叫做URL重写,就是把session id直接附加在URL路径的后面. 附加的方式也有两种,一种是作为URL路径的附加信息,另一种是作为查询字符串附加在URL后面.网络在整个交互过程中始终保持状态,就必须在每个客户端可能请求的路径后面都包含这个session id. 当客户端浏览器中禁止 Cookie,Se

【翻译自mos文章】得到正在运行job的 session id

得到正在运行job的 session id 参考原文: How to get the session Id of the Running Job (Doc ID 1604966.1) 适用于: Oracle Database - Enterprise Edition - Version 9.2.0.8 and later Information in this document applies to any platform. 目标: 怎么得到正在运行job的session id --->注意:

Infinite loop when using cookieless session ID on Azure

If you use cookieless session ID and deploy them on Azure, you might get infinite loop when you query your web site, and browser would down. In this scenario, you need to overwrite ASP.NET default ISessionIDManager. In method GetSessionID, your could