Sun Java Enterprise System 5 Monitoring Guide

Chapter 1 Overview of Java ES Monitoring

This book describes the Monitoring Framework 2.0 and Monitoring Console 1.0 components of the Sun JavaTM Enterprise System (Java ES). Together, these components implement the new monitoring feature introduced in release 5.

The procedures in this guide show you how to enable the Monitoring Framework for each of your installed components, then how to view all monitored data in the Monitoring Console. This guide does not document log files, error messages, nor other monitoring mechanisms that individual components may implement outside the framework. Neither the Monitoring Framework nor the Monitoring Console provide management or administration capabilities for monitored components. For information about the administration of a component, see that product's own documentation.

This chapter introduces monitoring concepts and presents the architecture of the Monitoring Framework.

This chapter contains the following sections:

The Monitoring Framework and the Monitoring Console Components

The Sun Java System Monitoring Framework provides the infrastructure to instrument components and expose their attributes for observation. It defines a hierarchy of monitored objects called the Common Monitoring Model (CMM), based on the industry standard Common Information Model (CIM) specification. Each product component exposes the objects that represent its observable attributes, and the node agent aggregates a view of multiple components on one host. The Monitoring Framework also provides the mechanism to gather operational statistics and define alarms based on user-defined thresholds.

The Sun Java System Monitoring Console is the graphical interface for monitoring Java ES components. It includes a master agent that connects to all node agents in a Java ES deployment. The Monitoring Console is a web-based application that relies on the Sun Java SystemWeb Console to be accessible anywhere through HTTP. On the main screen, it provides a summary status of all enabled components, including any alarms that were triggered. You can then access the hierarchy of monitored objects in each component and see the detailed status and the real-time values of all monitored attributes. The Monitoring Console interface allows you to display the details of any alarm, acknowledge it, or create new monitoring rules based on any attribute.

How Java ES Monitoring Works

Monitoring is the entire process of gathering runtime data, exposing it, and computing quality of service criteria so that the system administrator can assess performance and be notified of alarms During runtime operation, administrators only need to interact with the Monitoring Console to view performance statistics, create rules to monitor automatically, and acknowledge alarms. However, for configuration, troubleshooting and advanced monitoring, it helps to understand the architecture of theMonitoring Framework and how it connects to the Monitoring Console.

Monitoring in Java ES is based on the following concepts:

The following sections explain each of these concepts of the monitoring architecture in more detail.

The Common Monitoring Model (CMM)

The basis of a standardized monitoring mechanism is the definition of what objects are monitored and the adoption of these objects across all monitored components. To this end, the monitoring architecture defines the Common Monitoring Model (CMM) as an extension of the Common Information Model (CIM) maintained by the Distributed Management Task Force (DMTF). CMM is both an information model specifying monitored objects such as computer, application, and so on, and a data model specifying uniform values such as the operational status values. As part of the information model, CMM also defines the attributes of an object, for example the number of requests handled by a service, and relations between objects, such as the fact that a service is hosted on a certain computer.

Thanks to CMM, concepts such as applications, services, points of access, and so on are the same for all product components, even if the underlying implementation is different. For example, Web Server might expose a service that handles HTTP requests while Directory Server might expose a service that handles LDAP requests. However the standard object will capture what is common to these two functions, for example the ability to measure the number of requests handled, the average time to respond to a request over a given time period, and so on.

Furthermore, certain data values are standardized so that their meaning is uniform across the entire system. For example, the operational status DEGRADED always means that a service is still available but performance has dropped significantly, no matter which product component is being monitored.

The CMM specification is embodied in the Java interfaces and classes used for the instrumentation, which are described in Appendix A, CMM Object Reference.

CMM Instrumentation

In the Monitoring Framework, the instrumentation is a set of Java interfaces and classes that implement the CMM definitions. For the new monitoring functionality in Java ES, the product components have instrumented their code to instantiate the CMM objects and expose run-time values through the attributes of the monitored objects. The CMM objects that are implemented by each component determines what can be monitored, and for this reason, some components expose less attributes than others. The list of objects and attributes that are exposed for monitoring by each product component is given in Appendix B, Monitored Objects Exposed by Each Component.

Node Agents

In monitoring terminology, a node is a single logical host identified by a unique fully qualified domain name or IP address. A node can be either an entire system or a Solaris zone configured as a virtual system. The node agent communicates with all instrumented components on that host and exposes all of their monitored objects. The node agent also manages all of the logic to collect performance statistics, monitor thresholds defined in rules, and generate alarms for the monitored objects it contains.

The following diagram represents the contents of a node agent on a single host that has instances of three Java ES product components. It also shows how the instrumentation is instantiated in the node agent to expose values provided by the product components.

Figure 1–1 Diagram of a Node Agent

Inside the node agent, there are objects representing
instrumented attributes and monitoring rules such as watching for threshold
alarms.

The node agent is implemented as a module loaded into the Common Agent Container , which is itself a Java Virtual Machine. The implementation of the node agent is based on the Java Management Extensions (JMX), the standard Java extension for monitoring and remote management. Any JMX-enabled monitoring application that understands CMM can access the monitored objects in the node agent. Using JMX functionality, the node agent can also expose certain monitored objects through the Simple Network Monitoring Protocol (SNMP).

The Master Agent

The master agent is deployed on a separate machine as part of the Monitoring Console installation. The master agent is configured with the name or address of all nodes so that it can aggregate the monitored objects from all of the node agents. The master agent is also based on JMX, which it uses to communicate with the node agents, and is also loaded into its local Common Agent Container.

The following diagram represents a master agent connected to two nodes. The Monitoring Console connects to the master agent to monitor the three components on each node. If you wish to use SNMP for monitoring, you must connect to each node separately, because the master agent does not aggregate SNMP attributes. The master agent is designed for use with the Monitoring Console only and cannot be accessed by other monitoring applications.

Figure 1–2 Diagram of the Overall Monitoring Architecture

The master agent connects to several JMX node agents
and exposes all monitored objects for the Monitoring Console.

Suggested Installation Sequence

If you choose to evaluate or deploy the monitoring feature of Java ES, it is easiest to perform the installation in the following order:

  1. Install and configure all of the components in your deployment according to the recommendations and instructions in the Sun Java Enterprise System 5 Installation Guide for UNIX.

  2. Enable and configure the Monitoring Framework for all of your monitored components, as described in Chapter 2, Enabling and Configuring the Monitoring Framework.

  3. Install the Monitoring Console on a separate host, start the master agent, and then start the web server, as described in Chapter 3, Installing and Using Monitoring Console. All of your monitored components should then be visible and actively monitored in the Monitoring Console.


Note –

Due to an incompatibility of the node agent and master agent in this release, the Monitoring Console must be installed on a host that does not contain any other Java ES components. See Troubleshooting the Monitoring Console for more details.


Whenever you modify your deployed components after enabling monitoring, you will need to restart the container for the master agent and the web server for the Monitoring Console as described in Troubleshooting the Monitoring Framework.