Tomcat starts a solution that takes a long time

Source: Internet
Author: User
Tags cryptographically secure

Original Solution Link

$JAVA _path/jre/lib/security/java.security

In the

securerandom.source=file:/dev/urandom

Replaced by

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

Root cause

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

When the entropy pool is empty, reads From/dev/random would block until additional environmental noise is GAT Hered. The intent is to serve as a cryptographically secure pseudorandom number generator, delivering output with entropy as Larg e as possible. This was suggested for use with generating cryptographic keys for high-value or long-term protection. Http://en.wikipedia.org/wiki//dev/random#Linux

Tomcat starts a solution that takes a long time

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.