This post covers performance issue (Admin Console taking ages while accessing) and is must read if you are running WebLogic Server on Linux.
We encountered this issue while managing Fusion Middleware (with WebLogic) for one of our customer where accessing Admin Console was very Slow and there were no errors in log (memory and CPU were just fine).
A Brief decsription about Entropy on linux Platform:
An Operating System performs cryptographic operations at every time (on ssh challenges, https connections, etc.) .
Linux has two devices to provide random data at any time: /dev/random and /dev/urandom so the /dev/random pool gets consumed quite fast with the cryptographic operations. This pool also gets consumed while performing I/O operations, mouse,keyboard etc. and since, the Java uses /dev/random by default as entropy generator device that runs out of random bits and Therefore, makes us waiting for more time.
To learn about issues like this Join our Oracle Weblogic Administration Training (next batch starts on 12th December 2015) where we also cover Oracle Certification for WebLogic Administrators 1Z0-133.
Cause:
After starting the WebLogic server instance the available Entropy on the system was substantially decreasing.
Check the default system entropy using the command below:
# cat /proc/sys/kernel/random/poolsize
4096
Check the available entropy using th command below:
# cat /proc/sys/kernel/random/entropy_avail
125
Solution:
1. Temporary Fix:
a. Override the JAVA_OPTIONS environment variable before starting WebLogic Server via shell scripts (./startWeblogic.sh)
export JAVA_OPTIONS=”${JAVA_OPTIONS} -Djava.security.egd=file:/dev/./urandom”
b. Start Weblogic server instance
./startWeblogic.sh
2. Permanent Fix:
a. Edit the Java Security Properties file located in $JAVA_HOME/jre/lib/security/java.security and change the securerandom.source property which points to /dev/random (by default). set it as:
securerandom.source=file:/dev/./urandom
b. Save the changes and Start WebLogic server
If you want to learn more issues like above or wish to discuss challenges you are hitting in Oracle Weblogic Server, register for our Oracle Weblogic Administration Training.
We are so confident on quality and value of our training that We provide 100% Money back guarantee so in unlikely case of you being not happy after 2 sessions, just drop us a mail before third session and We’ll refund FULL money.
Did you subscribe to our YouTube Channel (435 already subscribed) and Private FaceBook Group (666 Members) ?
Get 100 USD OFF + 100% Money Back Guarantee