1. lzy.sh http://lzy.sh/o racle-co herence-mo nito ring-using-enterprise-manager-12cr2/
Oracle Coherence Monitoring using Enterprise Manager 12cR2
Using EM 12CR2, coherence cluster,nodes and caches can be managed and monitored.
Oracle Coherence Monitoring using Enterprise Manager 12cR2 on a high level: below steps are involved in
hooking up coherence cluster to EM12CR2.
Setup standalone JMX management node
Update the classpath,Server Start Arguments of the coherence & WLS JVM members
Add Coherence cluster to EM12CR2
Ensure “Management Pack for Coherence” is checked on EM12CR2
Install the JMX Management node on the same host where OEM agent is installed.
You also should install OEM agent on all the coherence nodes if EM is used to stop / start the nodes.
T he f ollowing properties should be present in the script which is used to start the JMX management Node.
2. JVMD_HOST=myEMhost .myDomain.com
JVMD_PORT=3800
JVMD_POOL=mycacheclust er
JAM_PARAMS="jamagent .jamrun jamconshost =$JVMD_HOST jamconsport =$JVMD_PORT
jampool=$JVMD_POOL" ORACLE_HOME="/pat h/t o/oracle_common"
COHERENCE_HOME="pat h/t o/coherence_inst all_folder"
PLUGIN_HOME="/opt /oracle/oem/plugins/oracle.sysman.emas.agent .plugin_12.1.0.3.0/archives/coherence
LOG_HOME="pat h/t o/log_folder"
JAVA_HOME="pat h/t o/java_inst all_folder"
DOMAIN_HOME="pat h/t o/WLS_Domain"
MEMORY=512m
JMXPROPERTIES="-Dcom.sun.management .jmxremot e -Dt angosol.coherence.management =all -
Dt angosol.coherence.management .remot e=t rue -Dcom.sun.management .jmxremot e.ssl=false -
Dcom.sun.management .jmxremot e.aut hent icat e=false -Dcom.sun.management .jmxremot e.port =3000"
JAVA_OPTS="-Xms$MEMORY -Xmx$MEMORY $JMXPROPERTIES"
CLASSPATH=$COHERENCE_HOME/lib/coherence.jar
CLASSPATH=$COHERENCE_HOME/jamagent .war:$PLUGIN_HOME/coherenceEMInt g.jar:/$PLUGIN_HOME/bulkoperat ionsmbean.jar
$JAVA_HOME/bin/java -cp $CLASSPATH $JAVA_OPTS $JAM_PARAMS jamjvmid=mycacheclust er/EM_Node1 -
Dt angosol.coherence.mode=prod -Dt angosol.coherence.member=EM_Node1 -
Doracle.coherence.jamjvmid=mycacheclust er/EM_Node1 -Dt angosol.coherence.clust er=mycacheclust er -
Dt angosol.coherence.machine=myTest Machine01.myDomain.com -
Doracle.coherence.machine=myTest Machine01.myDomain.com -
Dt angosol.coherence.override=$DOMAIN_HOME/coherence/my_cache_clust er/t angosol-coherence-override.xml -
Dt angosol.coherence.dist ribut ed.localst orage=false oracle.sysman.int egrat ion.coherence.EMInt egrat ionServer >>
$LOG_HOME/mgmt node.log 2>&1 &
(We have turned of f SSL & authentication on JMX and will cover these topics in f uture)
Download jamagent.war f rom the EM server.
Select Setup –> Application Perf ormance Management
Highlight JVM Diagnostics Engine and select Conf igure
JVMs and Pools –> Downloads.
Select the JVMD Component as JVMD agent and click OK
3. On the below screen, Click on Download and save the jamagent.war.
Copy the f ile to the JMX management
Node. On my test server, the f ile is copied
over to $COHERENCE_HOME.
Start the JMX management Node by
creating a script using the above properties.
We can verif y if the Management Node is
started as below,
$ ps -ef|grep EMInt egrat ionServer
Login to Oracle Enterprise Manager 12cR2
console to add the coherence cluster as a
target.
Setup –> Add Target –> Add Targets
Manually
Select option 2 f rom below and Oracle
Coherence Cluster Discovery f rom the
Target Types drop down menu.
4. On the next screen below, enter,
Management Node Host : MyTestMachine01.myDomain.com (This can be any server, in my case, it is same as
the AdminServer of the weblogic Domain)
JMX Port : 3000 (def ault port)
Select def ault options on next two screens and you will be able to see all the targets discovered successf ully.
Click close to f inish.
On this screen below you will see the summary of Oracle Coherence targets successf ully added in Enterprise
Manager. Click Ok.
We can now f ind the Oracle Coherence Cluster and associated JVM Pool as Middleware Targets. T hese
targets can be conf igured with various metrics f or real time monitoring and Cache Data Management. However,
since, I have created the Coherence cluster within Weblogic domain, it would have been nicer to see this
Coherence cluster hooked up to the Weblogic domain.
5. Here is a sample Oracle Coherence cache perf ormance view.