I\'ve installed weblogic 10.3.3, configured simple domain with default configuration. And after starting weblogic I cannot use it via admin console because it is starting to
Without looking at the startup logs we could only speculate. Weblogic typically is a beast. It typically takes anywhere fromo 6-8 minutes to start up for me on my development machines, but that seems like a nice server for it to take 10 minutes for you.
The Admin Console should not be this slow, nor should it take 6-8 minute to start a server or deploy the Admin Console. The deployment of the admin console on my machine takes less than 30 seconds, and startup is under 60 seconds. Startup time for WebLogic is a common complaint, but chances are that something is misconfigured if there is a very long startup or admin console deployment time.
Turns out weblogic uses random number generator during startup. Because of the bug in java it reads random bits from /dev/random
. There are almost no problems with /dev/random
except that it is extremely slow. It takes sometimes 10 minutes or more to generate one number. Simple solution exists – using /dev/urandom
instead. It is not that good as /dev/random
, but at least it is instant.
Java somehow maps /dev/urandom
file to /dev/random
. That’s why default settings in $JAVA_HOME/jre/lib/security/java.security
are useless, they just do not make any sense.
Problem fix is very simple – adding string export JAVA_OPTIONS="-Djava.security.egd=file:/dev/./urandom"
to the /etc/bash.bashrc
file. Usage of /dev/./urandom
instead of simple /dev/urandom
is another hack. JVM does not understand the option value otherwise.
Be aware of this problem if you try to setup weblogic under UNIX-based OS.