Tomcat 启动花费很长时间的解决方案

王朝学院·作者佚名  2016-05-28
窄屏简体版  字體: 小  |  中  |  大  |  超大  

Tomcat 启动花费很长时间的解决方案 Posted on 2014-12-15 11:00 WebClerk 阅读(...) 评论(...) 编辑 收藏原始解决方案链接

将

$java_PATH/jre/lib/security/java.security

中的

securerandom.source=file:/dev/urandom

替换为

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

根本原因

In this implementation, the generator keeps an estimate of the number of bits of noise in the entropy pool. From this entropy pool random numbers are created. When read, the /dev/random device will only return random bytes within the estimated number of bits of noise in the entropy pool. /dev/random should be suitable for uses that need very high quality randomness such as one-time pad or key generation.

When the entropy pool is empty, reads from /dev/random will block until additional environmental noise is gathered. The intent is to serve as a cryptographically secure pseudorandom number generator, delivering output with entropy as large as possible. This is suggested for use in generating cryptographic keys for high-value or long-term PRotection. http://en.wikipedia.org/wiki//dev/random#linux

 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
© 2005- 王朝網路 版權所有 導航