We faced slow startup of Domain Creation, slow startup of Domain and resolved using proper Entropy settings:
You should be able to select the faster-but-slightly-less-secure /dev/urandom on Linux using:
Default /dev/urandom is configured, but as mentioned this is ignored by Java.
-Djava.security.egd=file:/dev/urandom
However, this doesn’t work with Java 5 and later (Java Bug 6202721). The suggested work-around is to use:
-Djava.security.egd=file:/dev/./urandom(note the extra ‘/./’)
You can also set in your environment like below in setDomainEnv.sh
References:
http://theheat.dk/blog/?p=1539
http://stackoverflow.com/questions/137212/how-to-solve-performance-problem-with-java-securerandom
You should be able to select the faster-but-slightly-less-secure /dev/urandom on Linux using:
$JAVA_HOME
/jre/lib/security/java
.security
Default /dev/urandom is configured, but as mentioned this is ignored by Java.
-Djava.security.egd=file:/dev/urandom
However, this doesn’t work with Java 5 and later (Java Bug 6202721). The suggested work-around is to use:
-Djava.security.egd=file:/dev/./urandom(note the extra ‘/./’)
You can also set in your environment like below in setDomainEnv.sh
if
[
"${USER_MEM_ARGS}"
!=
""
] ;
then
MEM_ARGS="${USER_MEM_ARGS}
export
MEM_ARGS
fi
MEM_ARGS=
"${MEM_ARGS} -Djava.security.egd=file:/dev/./urandom"
Or at runtime:
export
CONFIG_JVM_ARGS=
"-Djava.security.egd=file:/dev/./urandom"
/u01/app/oracle/product/fmw/wlserver_12
.1
/common/bin/config
.sh
References:
http://theheat.dk/blog/?p=1539
http://stackoverflow.com/questions/137212/how-to-solve-performance-problem-with-java-securerandom
No comments:
Post a Comment