miércoles, 4 de noviembre de 2015

WCP 12.2.1: Installation II (Oracle JDK 8)

Finally Java JDK 8 is supported by WebLogic and it means happiness for all Java lovers!.

Download the latest Oracle JDK 8 from: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

Unzip it in /oracle/java folder using the oracle user

Java unziped in /oracle/java folder
Register the new Java in your Oracle Linux 7 using the following commands (as root)

Add your JDK as an alternative for the O.S:

update-alternatives --install "/usr/bin/java" "java" "/oracle/java/jdk1.8.0_65/bin/java" 1
update-alternatives --install "/usr/bin/javac" "javac" "/oracle/java/jdk1.8.0_65/bin/javac" 1

update-alternatives --install "/usr/bin/javaws" "javaws" "/oracle/java/jdk1.8.0_65/bin/javaws" 1

Configure your JDK to be the default:

update-alternatives --config java

The new JDK configured as default
Test it using java -version

java -version output

Tunning the Oracle JDK 8 for WebLogic Server

Now tune the Oracle JDK 8 in order to generate an entropy_val higher. It helps the Managed Servers to start / stop quicker! If you entropy numbers are below of <2500 then the performance may be affected

Go and edit the java.security file in /oracle/java/jdk1.8.0_65/jre/lib/security folder
Change securerandom.source property to the value file:/dev/./urandom

Change of java.security for better entropy

Test your entropy using the following command

Entropy testing. High value means better performance in communications

Alternatively you can improve your entropy installing the rng-tools
  • Install rng-tools (it should be installed by default)

    yum install rng-tools 

  • Modify /etc/sysconfig/rngd file adding

    EXTRAOPTIONS="-i -o /dev/random -r /dev/urandom -t 10 -W 2048"

  • Make rngd start when booting the O.S

    sudo chkconfig rngd on

  • Restart the service

    sudo service rngd restart
Note: If rngd does not start or you are getting a low entropy then execute the following command:

rngd -r /dev/urandom -o /dev/random -b

Now monitor the entropy value using

Make sure your entropy is > 2000 :)
If you are still having problems to get > 2000 then ask me or check: http://www.certdepot.net/rhel7-get-started-random-number-generator/

Now our JDK 8 is installed, tuned and prepared for the next steps!.

Time for installing the Oracle Database!

Next step: WCP 12.2.1: Installation III (Oracle Database

No hay comentarios:

Publicar un comentario