ADMIN SERVER, MANAGED SERVER ARE TAKING LONG TIME TO START IN WEBLOGIC SERVER INSTANCE
ISSUE:
Admin Server and Managed server are taking too long to start than usual and Weblogic Administration console is taking time to respond when services are started
CAUSE:
Random Number Generator May Be Slow on Machines With Inadequate Entropy. This issue generally occurs for a period after startup.
SOLUTION:
Shut down all services in Weblogic Instance.
Navigate to $DOMAIN_HOME/bin
edit startWeblogic.sh file
Note : Before editing startWeblogic.sh file take the backup.
Add the following line to the JAVA_OPTIONS
-Djava.security.egd=file:/dev/./urandom
[appoim@oim bin]$ diff startWebLogic.sh_orig startWebLogic.sh
28c28
< JAVA_OPTIONS="${JAVA_OPTIONS} -Dlaunch.main.class=${SERVER_CLASS} -Dlaunch.class.path="${CLASSPATH}" -Dlaunch.complete=weblogic.store.internal.LockManagerImpl -cp ${WL_HOME}/server/lib/pcl2.jar"
---
> JAVA_OPTIONS="${JAVA_OPTIONS} -Dlaunch.main.class=${SERVER_CLASS} -Dlaunch.class.path="${CLASSPATH}" -Dlaunch.complete=weblogic.store.internal.LockManagerImpl -Djava.security.egd=file:/dev/./urandom -cp ${WL_HOME}/server/lib/pcl2.jar"
[appoim@oim bin]$
Set Environmental variable(setDomainEnv.sh).
Navigate to $JAVA_HOME/jre/lib/security
Edit java.security file
Note: Before editing java.security file take the backup.
Add following line to java.security file.
securerandom.source=file:/dev/./urandom
[appoim@oim security]$ diff java.security_orig java.security
117c117
< securerandom.source=file:/dev/random
---
> #securerandom.source=file:/dev/random
118a119
> securerandom.source=file:/dev/./urandom
[appoim@oim security]$
Start all services in weblogic Instance.
Note: Applies to Oracle WebLogic Server – Version 8.1 and later
Linux x86
Linux x86-64