Friday, July 25, 2014

OIM, OAM performance monitroing and matrics Java Flight Recorder

In this post I will cover the steps that are required to monitor and record a running jvm process using java flight recorder.

The flight recorder can be used to monitor the running jvm processes and giving us the statistics on cpu utilization, ram usage etc for the its running duration.


here are the commands

step 1 list java processes



ps -ef | grep java



user 23639 23615   3   Jul 24 ?        12083:48 /app/oracle/fusionV11gR2/jdk1.7.0_40/bin/sparcv9/java -server -Xms256m -Xmx512m
user 23614 23590   3   Jul 24 ?        9422:12 /app/oracle/fusionV11gR2/jdk1.7.0_40/bin/sparcv9/java -server -Xms256m -Xmx512m
user 23664 23640   4   Jul 24 ?        4463:27 /app/oracle/fusionV11gR2/jdk1.7.0_40/bin/sparcv9/java -server -Xms256m -Xmx512m

step 2 confirm the java processes with jcmd command



cd /app/oracle/fusionV11gR2/jdk1.7.0_40/bin/sparcv9
./jcmd

23614 weblogic.Server
23664 weblogic.Server
23639 weblogic.Server


Step 3 record the running process performance for time duration that you wish to analyze later


./jcmd 23614 JFR.start name=23614 duration=900s filename=/tmp/23614.jfr settings=default




So above command will monitor the existing java processes with PID=23614 for 15 minutes and then stop.

.jfr can be opened with out-of-the-box java mission control tool to analyze the process statistics during that process run.



Friday, July 18, 2014

OVD 11.1.1.7.0 Add Instance

In this post, I will cover the steps required to add an instance of OVD to an existing OVD installation home.

This kind of configuration is specially helpful in scenario where you want to add instances for load balancing or to create an instance for testing etc.

My existing OVD setup was 11.1.1.7.0.

ORACLE_HOME=C:\Oracle\Middleware\Oracle_IDM2
ORACLE_INSTANCE=C:\Oracle\Middleware\asinst_2

set of existing running processes

                                                                                                                                              

we will have to use the opmnctl command inside ORACLE_INSTANCE. Also weblogic admin server must be running prior to adding an instance as the command connects to weblogic server to register the component.



opmnctl.bat createcomponent  -componentName ovd2 -componentType OVD -admin cn=orcladmin -isAdminSSL true -ovdAdminPort 8900   -namespace dc=mydomain,dc=com -ldapPort 6502 -ldapSport 7502



Command requires login to weblogic admin server (Deepak-PC.mydomain.com):
  Username: weblogic
  Password:

Creating empty component directories...Done
Provisioning OVD files for ovd2
  OVD creation in progress
  Creating OVD specific directories
  Copying Configuration Files
  Registering OVD Ports
  Updating OVD Admin Password
OVD Admin Password:
  Setting CSF values
  Updating Configuration Files
  Adding opmn Snippet
  Setting proxy mbean information
Registering ovd2 component
Command succeeded.


                                                                                                                                                                                                    


Also while starting the processes i found out that my computer has changed the timezone.

commands to fix that error

C:\Oracle\Middleware\asinst_2\EMAGENT\EMAGENT\bin>emctl resetTZ agent
Oracle Enterprise Manager 10g Release 5 Grid Control 10.2.0.5.0.
Copyright (c) 1996, 2009 Oracle Corporation.  All rights reserved.
Updating C:\Oracle\Middleware\asinst_2\EMAGENT\EMAGENT/sysman/config/emd.properties...
Successfully updated C:\Oracle\Middleware\asinst_2\EMAGENT\EMAGENT/sysman/config/emd.properties.
Login as the em repository user and run the  script:
exec mgmt_target.set_agent_tzrgn('Deepak-PC.mydomain.com:5162','Australia/Sydney')
and commit the changes
This can be done for example by logging into sqlplus and doing
SQL> exec mgmt_target.set_agent_tzrgn('Deepak-PC.mydomain.com:5162','Australia/Sydney')
SQL> commit


                                                                                                                                                                                             
                                                                                                                                                                                               

Start all the opmn processes now



You can use ODSM to login to OVD now


















                                                                                                                                                                                   
                                                                                                                                                                                  

Weblogic em console view