Saturday, February 28, 2015

JRocket Upgrade


The Oracle JRockit JVM is the industry's highest performing Java Virtual Machine now built into Oracle Fusion Middleware. It brings industry leading real time infrastructure capabilities with JRockit Real Time and unparallelled JVM diagnostics with JRockit Mission Control.

Below are the steps for upgrading the Jrocket from R28.1.4-7-144370  to  R28.2.3-4.1.0

[ajithpathiyil1::applmgr]> java –version
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Oracle JRockit(R) (build R28.1.4-7-144370-1.6.0_26-20110617-2130-linux-x86_64, compiled mode)
[ajithpathiyil1::applmgr]>

[ajithpathiyil1::applmgr]>  pwd
/dbscratch/install/Fusion_Middleware_11g/JDK
[ajithpathiyil1::applmgr]>  ls -lrt
total 121916
-rwxr-xr-x 1 oracle oinstall 124711715 Sep 26 02:11 jrockit-jdk1.6.0_31-R28.2.3-4.1.0-linux-x64.bin
[ajithpathiyil1::applmgr]>  DIST_TOP=/dbscratch/install/Fusion_Middleware_11g/JDK
[ajithpathiyil1::applmgr]>  JAVA_BASE=/u01/app/oracle/fusion/mw_1/java
[ajithpathiyil1::applmgr]>  $DIST_TOP/jrockit-jdk1.6.0_31-R28.2.3-4.1.0-linux-x64.bin
Extracting 0%....................................................................................................100%
Unable to instantiate GUI, defaulting to console mode.





<------------------------------------ -----------------------------------="" -="" 4.1="" 6="" for="" installer="" java="" jdk="" jrmc="" jrockit="" oracle="" r28.2.3="" se="" with="">

Welcome:
--------

This installer will guide you through the installation of Oracle JRockit JDK R28.2.3 for Java SE 6 with JRMC 4.1. Type "Next" or enter to proceed to the
next prompt.  If you want to change data entered previously, type "Previous".  You may quit the installer at any time by typing "Exit".




Enter [Exit][Next]> Next





<------------------------------------ -----------------------------------="" -="" 4.1="" 6="" for="" installer="" java="" jdk="" jrmc="" jrockit="" oracle="" r28.2.3="" se="" with="">

Choose Product Installation Directory:
--------------------------------------

    "Product Installation Directory" = [Enter new value or use default "/home/oracle/jrockit-jdk1.6.0_31-R28.2.3-4.1.0"]




Enter new Product Installation Directory OR [Exit][Previous][Next]> /u01/app/oracle/fusion/mw_1/java/jrockit-jdk1.6.0_31-R28.2.3-4.1.0





<------------------------------------ -----------------------------------="" -="" 4.1="" 6="" for="" installer="" java="" jdk="" jrmc="" jrockit="" oracle="" r28.2.3="" se="" with="">

Choose Product Installation Directory:
--------------------------------------

    "Product Installation Directory" = [/u01/app/oracle/fusion/mw_1/java/jrockit-jdk1.6.0_31-R28.2.3-4.1.0]

Use above value or select another option:
    1 - Enter new Product Installation Directory
    2 - Change to default [/home/oracle/jrockit-jdk1.6.0_31-R28.2.3-4.1.0]




Enter option number to select OR [Exit][Previous][Next]>





<------------------------------------ -----------------------------------="" -="" 4.1="" 6="" for="" installer="" java="" jdk="" jrmc="" jrockit="" oracle="" r28.2.3="" se="" with="">

Optional Components 1


Do you want to install Demos and Samples?

    1 - Yes, install Demos and Samples.
  ->2 - No, do not install.



Enter a number or [Exit][Previous][Next]>





<------------------------------------ -----------------------------------="" -="" 4.1="" 6="" for="" installer="" java="" jdk="" jrmc="" jrockit="" oracle="" r28.2.3="" se="" with="">

Optional Components 2


Do you want to install Source Code?

    1 - Yes, install Source Code.
  ->2 - No, do not install.



Enter a number or [Exit][Previous][Next]>





<------------------------------------ -----------------------------------="" -="" 4.1="" 6="" for="" installer="" java="" jdk="" jrmc="" jrockit="" oracle="" r28.2.3="" se="" with="">

Installing JDK to /u01/app/oracle/fusion/mw_1/java/jrockit-jdk1.6.0_31-R28.2.3-4.1.0...

0%          25%          50%          75%          100%
[------------|------------|------------|------------]
[***************************************************]




<------------------------------------ -----------------------------------="" -="" 4.1="" 6="" for="" installer="" java="" jdk="" jrmc="" jrockit="" oracle="" r28.2.3="" se="" with="">

Installing JRE to /u01/app/oracle/fusion/mw_1/java/jrockit-jdk1.6.0_31-R28.2.3-4.1.0/jre...

0%          25%          50%          75%          100%
[------------|------------|------------|------------]
[***************************************************]




<------------------------------------ -----------------------------------="" -="" 4.1="" 6="" for="" installer="" java="" jdk="" jrmc="" jrockit="" oracle="" r28.2.3="" se="" with="">

Installation Complete


Congratulations! Oracle JRockit JDK R28.2.3 for Java SE 6 with JRMC 4.1 has been successfully installed to /u01/app/oracle/fusion/mw_1/java/jrockit-jdk1.6.0_31-R28.2.3-4.1.0.


Press [Enter] to continue or type [Exit]>





<------------------------------------ -----------------------------------="" -="" 4.1="" 6="" for="" installer="" java="" jdk="" jrmc="" jrockit="" oracle="" r28.2.3="" se="" with="">

Clean up process in progress ...
[ajithpathiyil1::applmgr]> 


[ajithpathiyil1::applmgr] > $JAVA_HOME/bin/java -version
java version "1.6.0_31"
Java(TM) SE Runtime Environment (build 1.6.0_31-b05)
Oracle JRockit(R) (build R28.2.3-13-149708-1.6.0_31-20120327-1523-linux-x86_64, compiled mode)
[ajithpathiyil1::applmgr] >



HAPPY LEARNING!

Monitoring Weblogic Datastore Connectivity

If weblogic application deployed seems to have intermittent issue of datastore errors, We can monitor the datastore ping to find the reason for database connectivity failure using below sample script that I used to monitor my database connectivity from the weblogic server.every 5 mins



.  /home/oracle/init_AJITH_wl.sh
while true()
do
java -classpath $WL_HOME/server/lib/weblogic.jar utils.dbping ORACLE_THIN apps ******* ajithpathiyil1.lab.com:1521:ajithpathiyil1 > /tmp/chknet.out
java -classpath $WL_HOME/server/lib/weblogic.jar utils.dbping ORACLE_THIN apps ******* ajithpathiyil1.lab.com:1521:ajithpathiyil1 >> /tmp/chknet.out
grep "**** Success!!! ****" /tmp/chknet.out
if [ $? -ne 0 ] then
cat /tmp/chknet.out | /bin/mail -s "Erec:Issue" ajithpathiyil@gmail.com
fi
sleep 300
done

HAPPY LEARNING!