IllegalStateException Error while generating node info files

风流意气都作罢 提交于 2019-12-05 20:52:35

As suggested by Cais and Stefano below is the answer to above question.

Use these steps to configure the JVM to use /dev/urandom :-

  1. Open the $JAVA_HOME/jre/lib/security/java.security file in a text editor.

    on my machine it's /usr/lib/jvm/java-8-oracle/jre/lib/security/java.security

  2. Change the line “securerandom.source=file:/dev/random

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

  3. Save your change and exit the text editor.

And because there’s a bug in JDK when you use /dev/urandom you have to set it up as /dev/./urandom

Alternatively you can use :-

You can also set up system property “java.security.egd” which will override the securerandom.source setting. -Djava.security.egd=file:/dev/./urandom

on the command line when you run the bootstrapper pass: -Djava.security.egd=file:/dev/./urandom

Check below URL for more info.

http://ruleoftech.com/2016/avoiding-jvm-delays-caused-by-random-number-generation

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!