|
Oracle Coherence Monitor
User Guide |
|
Configuring a JMX Connection
This section provides step-by-step instructions for configuring a JMX connection to acquire data from the cluster. NOTE: To configure the OC Monitor for multiple Coherence clusters a JMX connection method is required.
If you have an existing management node in your cluster, choose the JMX connection variant that applies. If you do not have an existing management node in your cluster, see the following guidelines.
Also see Appendix A - JMX Connection Choices for further details about JMX connection options.
The JMX connection method options are:
|
Named JMX
Connection
This section describes how to create an RTView JMX connection in the
rtview.properties file using a text
editor and the encode_string utility. These instructions assume you have
a project directory, as described in OCM Setup. The
rtview.properties file is located in your
project directory.
1. Open the rtview.properties file in a text editor and add the following line (below the Collector named JMX Connections JMX connections comment) to set the value for the maincollector.sl.rtview.jmx.jmxconn property:
#
maincollector.sl.rtview.jmx.jmxconn=<conn_name> <host> <port> URL:- - -
'false' maincollector.sl.rtview.jmx.jmxconn=<conn_name> <host> <port> URL:- - - 'false' |
|
Where: | |
<conn_name> is the name of the connection | |
<host> is the hostname of the machine with the Coherence management node | |
<port> is the port number used by the management node | |
(specified by -Dcom.sun.management.jmxremote.port=xxxx, as described above) | |
For example: | |
maincollector.sl.rtview.jmx.jmxconn=MyCluster localhost 9971 URL:- - - 'false' |
2. Set the <username> and <password> as desired for the connection.
For example, when no username or password are required: | |
maincollector.sl.rtview.jmx.jmxconn=MyCluster localhost 9971 URL:- - - 'false' | |
For example, when a username and password are required: | |
maincollector.sl.rtview.jmx.jmxconn=MyCluster localhost 9971 URL:- myusername mypassword 'false' |
3. Specify the name of the JMX connection you just created by setting the sl.rtvapm.ocmon.jmxconn property value as follows:
# - use a named jmx connection | |
sl.rtvapm.ocmon.jmxconn=<conn_name> | |
Where: | |
<conn_name> is the name of the connection you created |
4. Specify to not connect as a node (so we can use JMX) by setting the sl.rtvapm.ocmon.node property value to false:
# Specify whether OCM should connect as a node or not | |
sl.rtvapm.ocmon.node=false |
5. Verify that all other JMX connection properties are
comments:
# sl.rtvapm.ocmon.jmxhost
# sl.rtvapm.ocmon.jmxport
# sl.rtvapm.ocmon.jmxurl
6. Save the rtview.properties file and exit the text editor.
Proceed to Password Encryption, next.
Password Encryption
If you create a JMX connection by editing
the rtview.properties file in a text
editor, the connection password will be in plain text. To encrypt the password
perform the following steps:
1. In the
initialized command window,
and in the ocmon/projects/sample directory, type:
encode_string jmx <password>
where <password> is your password to be encrypted.
For example:
encode_string jmx newpassword
The encrypted value, a series of numbers, is returned.
2. Copy and paste the encrypted value into the <password> field of
the JMX connection definition in the
rtview.properties file. For example:
maincollector.sl.rtview.jmx.jmxconn=MyCluster localhost 9971 URL:- myusername 01343013550134601331013490134901353013450134801334 'false' |
3. Edit the rtview.properties file as needed for authentication:
Proceed to Starting OCM.
Multi-Cluster Configuration
This section describes how to configure
the OCM to monitor multiple Coherence clusters. To configure the OC Monitor for
multiple Coherence clusters JMX connections are required (a direct connection is
not compatible, since there can only be a direct connection to a single
cluster). These instructions assume you have a project directory, as described
in OCM Setup. The
rtview.properties file is located in your
project directory.
NOTE: Multi-cluster monitoring requires sufficient resources to monitor all the clusters you intend to monitor. Verify that you have sufficient resources for the clusters you intend to monitor.
To configure the OC Monitor for multiple
Coherence clusters:
1. Configure named JMX connections as described in
Named JMX
Connection.
2. Verify that you can connect to each cluster you wish to monitor using an explicit named JMX connection.
3. Ensure that the following property values are set in the rtview.properties file that are used for multi-cluster monitoring:
NOTE: The ocmon command line scripts use rtview.properties as the default .properties file. Other <user>.properties files can be named explicitly as a command line argument to the ocmon Scripts. For example, you can use a properties file named MultiCluster.properties for monitoring multiple clusters, and use it to configure the OCM processes. For example: start_rtv default all -properties:MultiCluster.
Also, a multi-cluster .properties file can refer to more than one cluster. Therefore the name of the file should describe the group of clusters monitored (for example, DemoClusters, DevClusters). For a sample rtview.properties file, see OCM Properties.
4. Open the rtview.properties file and ensure that all clusters you intend to monitor have correct, unique and meaningfully named JMX connection definitions. Edit as needed. The cluster name should be descriptive as it is used in OCM displays and alert messages. For example, DEV1 and SALES1. For a sample rtview.properties file, see OCM Properties.
5. If additional clusters need to be monitored that are not specified as a named connection in the rtview.properties file, add an entry for the cluster (using unique and meaningfully named JMX connection definitions).
6. Save the file.
7. Restart the Data Server.
RTView contains components licensed under the Apache
License Version 2.0. |
Treemap Algorithms v1.0 is used without
modifications and licensed by MPL Version 1.1. Copyright © 2001 University of
Maryland, College Park, MD |
Datejs is licensed under MIT. Copyright © Coolite Inc. |
jQuery is
licensed under MIT. Copyright © John Resig, |
JCalendar 1.3.2 is licensed under LGPL.
Copyright © Kai Toedter. |
jQuery is licensed under MIT. Copyright (c) 2009 John
Resig, http://jquery.com/ JCalendar 1.3.2 is licensed under LGPL.
Copyright © Kai Toedter. |
JMS, JMX and Java are trademarks or registered trademarks
of Sun Microsystems, Inc. in the United States and other countries. They are
mentioned in this document for identification purposes only. |
SL, SL-GMS, GMS, RTView, SL Corporation, and
the SL logo are trademarks or registered trademarks of Sherrill-Lubinski
Corporation in the United States and other countries. Copyright © 1998-2013
Sherrill-Lubinski Corporation. All Rights Reserved. |