Random Stuff About Stuff

Really slow wlst and adminserver start on weblogic

March 12, 2014

As an alternative to my post here instead of feeding /dev/random with data from /dev/urandom you can switch the weblogic components only.

Modify wlsh.sh
Look for the line

JVM_ARGS="-Dprod.props.file='${WL_HOME}'/.product.properties ${WLST_PROPERTIES} ${JVM_D64} ${UTILS_MEM_ARGS} ${SECURITY_JVM_ARGS} ${CONFIG_JVM_ARGS}"  

and add

-Djava.security.egd=file:///dev/urandom  

to the end of it
or

-Djava.security.egd=file:///dev/./urandom  

Java has a nice crusty bug
https://bugs.java.com/bugdatabase/viewbug.do?bugid=6202721

Which they don’t class as a bug for some reason, it doesn’t do what you ask… yep that’s by design and won’t be fixed!  Use the hack to confuse it, lovely.


Written by David Kerwick who lives and works Dublin as a Java Technical Lead.