JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Monitoring Java EE Components in Oracle Java CAPS     Java CAPS Documentation
search filter icon
search icon

Document Information

Monitoring Java EE Components

Enterprise Manager Basics

Starting the Enterprise Manager Server

To Start the Enterprise Manager Server

Logging In to Enterprise Manager

To Log In to Enterprise Manager

Adding an Application Server Domain to Enterprise Manager

To Add an Application Server Domain to Enterprise Manager

Adding an Application Server Instance to Enterprise Manager

To Perform Prerequisite Steps on the Application Server

To Add an Application Server Instance to Enterprise Manager

Using the Connectivity Map Controls

To Adjust the Position of the Connectivity Map

To Zoom In on the Connectivity Map

To Zoom Out from the Connectivity Map

To Specify an Exact Zoom Percentage

Stopping the Enterprise Manager Server

To Stop the Enterprise Manager Server

Monitoring Application Servers

Viewing Basic Information About an Application Server

To View Basic Information About an Application Server

Viewing Summary Information For an Application Server

To View Summary Information for an Application Server

Stopping Application Server Domains

To Stop an Application Server Domain

Hiding, Showing, and Removing Application Servers

To Hide an Application Server

To Make All of the Hidden Application Servers Reappear

To Maintain the Current Configuration of Hidden and Displayed Application Servers Between Enterprise Manager Sessions

To Remove an Application Server

Monitoring Collaborations

Viewing Basic Information About a Collaboration

To View Basic Information About a Collaboration

Viewing Consumption Information For a Collaboration

To View Consumption Information For a Collaboration

Viewing Summary Information For a Collaboration

To View Summary Information For a Collaboration

Stopping and Restarting Collaborations

To Stop a Collaboration

To Restart a Collaboration

Monitoring Adapters

Displaying Information About an Adapter

To Display Information About an Adapter

Stopping and Starting Inbound Adapters

To Stop an Inbound Adapter

To Start an Inbound Adapter

Monitoring Logs

Viewing the Application Server Log File

To View the Application Server Log File

Viewing the Message Server Log File

To View the Message Server Log File

Monitoring Alerts

Alerts Overview

Viewing Alerts

To View Alerts

To View Alert Details

To Change the Status of an Alert

Filtering Alerts

To Filter Alerts

To Remove the Filter

Deleting Alerts

To Delete an Alert

To Delete More Than One Alert at a Time

To Delete All Alerts For the Selected Component

Configuring Alert Persistence

To Configure the Alert Table Name (Databases Other Than Derby)

To Set Up Database Access (Databases Other Than Derby)

To Run the Database Scripts (Databases Other Than Derby)

To Log In to the Configuration Agent

To Modify the Alert Notification Fields

Archiving Alerts

Reducing Duplicate Alerts

To Reduce Duplicate Alerts

About Enterprise Manager Topic and Queue Management

Monitoring JMS IQ Manager

Monitoring Topics and Queues for JMS IQ Manager

To Monitor Topics and Queues

Sending and Publishing Messages for JMS IQ Manager

To Send and Publish Messages

Viewing Message Properties for JMS IQ Manager

To View Message Properties

Viewing and Editing Message Payload for JMS IQ Manager

Working with Text Messages

Working with Byte Messages

Monitoring Java System Message Queue

Monitoring Topics and Queues for Java System Message Queue

To Monitor Topics and Queues

Sending and Publishing Messages for Java System Message Queue

To Send and Publish Messages

Viewing Message Properties for Java System Message Queue

To View Message Properties

Viewing and Editing Message Payload for Java System Message Queue

Working with Text Messages

Working with Byte Messages

Monitoring Oracle Advanced Queueing

Monitoring Topics and Queues for Oracle Advanced Queueing

To Monitor Topics and Queues

Sending and Publishing Messages for Advanced Queueing

To Send and Publish Messages

Viewing Message Properties

To View Message Properties

Viewing Message Payload for Advanced Queueing

To View the Payload of Text and Byte Messages

Monitoring WebLogic Server JMS

Monitoring Topics and Queues for WebLogic Server JMS

To Monitor Topics and Queues

Sending and Publishing Messages for WebLogic Server JMS

To Send and Publish Messages

Viewing Message Properties for WebLogic Server JMS

To View Message Properties

Viewing Message Payload for WebLogic Server

To View the Payload of Text and Byte Messages

Monitoring Java Message Service Grid

Monitoring Queues

Monitoring Topics

Monitoring Application Servers, Collaborations, and Alerts (Command Line)

Enterprise Manager Command-Line Client Syntax

Monitoring Application Servers and Collaborations (Command Line)

Listing the Available Methods For the Runtime Service

Displaying the List of Components

Displaying the Current State

Viewing Basic Information

Starting and Stopping Collaborations

Monitoring Alerts (Command Line)

Listing the Available Methods For the Alert Service

Listing the Query Fields

Viewing Alerts

Changing the Status of Alerts

Deleting Alerts

Index

Monitoring Alerts

Enterprise Manager enables you to monitor alerts at runtime. You can perform the following tasks:

Java CAPS provides an Alert Management API. For detailed information about the Alert Management API, see Oracle Java CAPS Management and Monitoring APIs.

Alerts Overview

An alert is triggered when a specified condition occurs in a Project component. The condition might represent a problem that must be corrected, or the condition might be informational.

The following table lists the predefined alerts for Java CAPS Enterprise Service Bus. Each predefined alert is identified by a code, such as COL-00001. The alert also includes a description, such as Collaboration running.

Table 1 Predefined Alerts for Java CAPS Enterprise Service Bus

Code
Description
Recommended Action
COL-00001
The Collaboration is running.
This alert does not indicate any malfunction. No user actions are necessary.
COL-00002
The Collaboration stopped.
No recommended action.
COL-00003
Collaboration user-defined alert
The recommended action depends on the purpose of the user-defined alert.
MS-00009
The Message Server has reached the throttling threshold of total number of messages.
For topics, you must wait for the subscribers to consume more messages. In the meantime, stop attempting to deliver messages to the JMS IQ Manager.

For queues, you must wait for the receivers to consume more messages. In addition, you can try adding receivers to improve the throughput.

If you can stop the runtime application and restart the application server, then increase the server throttling threshold.

MS-00010
The Message Server has moved below the throttling threshold of total number of messages.
No recommended action.
MS-00011
The Message Server has reached the throttling threshold for message destinations.
No recommended action.
MS-00012
The Message Server has moved below the throttling threshold for message destinations.
No recommended action.

To view information about the predefined alerts for Adapters, see Alert Codes for Oracle Java CAPS Adapters. Project developers can add custom alerts.

The initial status of an alert is Unobserved. You can change the status to Observed or Resolved. Observed indicates that you looked at and acknowledged the alert. Resolved indicates that you fixed the problem that caused the alert.

By default, alerts are not persisted to an external database. For information about configuring persistence, see Configuring Alert Persistence.

Viewing Alerts

You can view alerts at runtime. In addition, you can change the status of an alert.

image:Screen capture of the Alerts tab in Enterprise Manager. Various alerts are shown.

To View Alerts

  1. In the Explorer panel of Enterprise Manager, select an application server, project component, or message server.
  2. Click the Alerts tab or node.

    The alerts for the selected component appear. The summary row below the tabs displays the total number of alerts for each alert type (Fatal, Critical, Major, Minor, Warning, and Info). The toolbar appears below the summary row.

  3. By default, the alerts are sorted by date/time in reverse chronological order. To sort the alerts by different criteria, click the up/down arrows in the desired column.
  4. To select all of the alerts, click the Select All icon.
  5. To deselect the currently selected alerts, click the Select None icon.

To View Alert Details

  1. Either double-click the alert, or select the alert and click the View Details icon.

    The Alert Details dialog box appears.

  2. When you are done, click Close.

To Change the Status of an Alert

  1. Select the alert.
  2. Click the Set Observed icon or Set Resolved icon.

    You can also reset the status to Unobserved by clicking the Reset icon.

Filtering Alerts

You can control which alerts appear in Enterprise Manager.

To Filter Alerts

  1. In the Explorer panel of Enterprise Manager, select an application server, project component, or message server.
  2. Click the Alerts tab or node.

    The alerts for the selected component appear.

  3. Click the Filter icon.

    The Alerts Filter dialog box appears. The fields that appear in the dialog box depend on the type of component that you selected in the Explorer panel.

  4. Specify one or more fields.
  5. Click Submit.

To Remove the Filter

Deleting Alerts

You can delete a single alert, or multiple alerts at a time.

To Delete an Alert

  1. In the Explorer panel of Enterprise Manager, select an application server, project component, or message server.
  2. Click the Alerts tab or node.

    The alerts for the selected component appear.

  3. Select the alert.
  4. Click the Delete icon or press the Delete key.

    A confirmation dialog box appears.

  5. Click OK.

To Delete More Than One Alert at a Time

  1. Select the alerts that you want to delete.
    • To select all of the alerts, click the Select All icon.

    • To select alerts that may or may not be contiguous, use the CTRL key.

    • To select a contiguous range of alerts, click an alert at one end of the range, press the SHIFT key, and click the alert at the other end of the range.

  2. Click the Delete icon or press the Delete key.

    A confirmation dialog box appears.

  3. Click OK.

To Delete All Alerts For the Selected Component

  1. Click the Delete All icon.

    A confirmation dialog box appears.

  2. Click OK.

    Note - If an alert does not currently appear because of a filter, then the alert is not deleted. See Filtering Alerts.


Configuring Alert Persistence

The alert persistence architecture includes the following databases.

image:Diagram of the embedded database and an external database.

By default, alerts are not persisted to the external database. This topic describes how to enable persistence. Be sure to understand the behavior of the various persistence configurations.

You can use any of the following database types for the external database. The Derby database is included with GlassFish Application Server. The other database types are not included.

If you want to use a database type other Derby, then you must perform additional configuration tasks. For example, you must use Java Database Connectivity (JDBC) software and the Java Naming and Directory Interface (JNDI) API to set up access to the database.

For all database types, you must log in to the Configuration Agent and modify the alert notification fields.

Perform the following tasks to configure alert persistence:

To Configure the Alert Table Name (Databases Other Than Derby)

  1. Open the eventmanagement.properties file in the JavaCAPS-install-dir/appserver/domains/domain-name/jbi/config directory.
  2. If necessary, change the default value of the AlertTableName property and save the file.

    You might need to change the default value to match your organization's naming conventions, or to comply with the database server's character limit for table names.

To Set Up Database Access (Databases Other Than Derby)

  1. Log in to the GlassFish Application Server Admin Console.
  2. Integrate the JDBC driver.

    You can make the driver accessible to the common class loader or the system class loader.

    For detailed information about how to integrate a JDBC driver, click Help in the Admin Console.

  3. In the left pane, expand the Resources node and the JDBC node, and select the Connection Pools node.
  4. Click New.
  5. Create the JDBC connection pool.

    For detailed information about how to create a JDBC connection pool, click Help in the Admin Console.

  6. In the left pane, select the JDBC Resources node.
  7. Click New.
  8. Create the JDBC resource.

    You will enter the JNDI name of the JDBC resource in a later procedure. Set the pool name to the JDBC connection pool that you just created.

    For detailed information about how to create a JDBC resource, click Help in the Admin Console.

To Run the Database Scripts (Databases Other Than Derby)

  1. Open the jbi_rt.jar file in the JavaCAPS-install-dir/appserver/jbi/lib directory.
  2. Extract the SQL scripts for your database type.
  3. If you are using Oracle, then create the tablespace and user that will be used to persist alerts.
    1. Open the create_event_store_user.sql script and make any changes needed to match your database configuration.
    2. Run the create_event_store_user.sql script.
  4. Create the table that will be used to persist alerts.
    1. Open the create_event_store_schema.sql script and make any changes needed to match your database configuration.

      Ensure that the table name matches the value in the eventmanagement.properties file.

    2. Run the create_event_store_schema.sql script.

To Log In to the Configuration Agent

  1. If the application server is not running, then start the application server.
  2. In a browser, enter the following URL:

    http://hostname:portnumber/configagent

    Set the hostname to the TCP/IP host name of the computer where the application server is installed. Set the port number to the administration port number of the application server. For example:

    http://myserver.company.com:4848/configagent

    The Configuration Agent Security Gateway appears.

  3. In the User ID field, enter an application server user name.
  4. In the Password field, enter the corresponding password.
  5. Click Login.

    The Configuration Agent appears.

To Modify the Alert Notification Fields

  1. Ensure that the database is running.
  2. In the Configuration Agent, click the Alert Management Configuration tab.
    image:Screen capture of the Alert Management Configuration tab
  3. Select the Enabled check box to the right of the Alert Notification Persistence label.
  4. If you want to enable journaling, then select the Enabled check box to the right of the Alert Notification Journal label.
  5. Select the database type from the Alert Notification Database Type drop-down list.
  6. If you are using a database other than Derby, then set the JNDI name to the JNDI name of the JDBC resource that you created.
  7. Click Save.
  8. Restart the application server domain.

Archiving Alerts

You can archive the alerts in Enterprise Manager's embedded database. The archive process writes the alerts to .csv files in the JavaCAPS-install-dir/emanager/EventRepositoryDb directory.

The eventdb_archive.properties file in the JavaCAPS-install-dir/emanager/server/shared/classes directory enables you to configure the archive process. The following table describes the properties.

Table 2 Alert Archive Properties

Property
Description
GROUP_MAX_COUNT
A group is a set of alerts that have the same values for the following fields: Environment, Physical Host, Logical Host, Server, Deployment, Component, and Message Code. This property specifies the maximum number of alerts that can be in a group. When the number is exceeded, the oldest rows exceeding this number are archived.

If the value is 0, then the archive process ignores this property.


Note - This property is used in conjunction with the MAX_AGE_OF_EVENTS property (see below).


MAX_TIME_DELTA_FOR_ARCHIVE
The maximum amount of time (in milliseconds) that can elapse between archive operations.

If the value is 0, then the archive process ignores this property.

MAX_EVENT_COUNT_FOR_ARCHIVE
The archive process is run when this number of alerts is reached.

If the value is 0, then the archive process ignores this property.

MAX_AGE_OF_EVENTS
When the archive process is run, alerts that exceed this age limit (in milliseconds) are archived, leaving the number of most recent alerts specified by the GROUP_MAX_COUNT property.

If the value is 0, then the archive process ignores this property.

MAX_ROWCOUNTLIMIT_IN_ARCHIVE_FILE
The maximum number of records that can be stored in a .csv file. When this number is reached, the archive process creates a new .csv file.

If you change the value of one or more properties, then you must restart the Enterprise Manager server in order for the changes to take effect. See Enterprise Manager Basics.

Reducing Duplicate Alerts

In certain situations, a large number of alerts can be generated in a short period of time. For example, a system goes down and messages are repeatedly attempted to be processed. You can use a property to reduce the number of alerts that appear. The property value is expressed in milliseconds. The default value is 5000, which equals 5 seconds. If multiple instances of an alert arrive during this period of time, then only one instance of the alert will appear.

A string is added to the beginning of the alert details field. The string indicates the number of duplicate alerts that were processed. For example:

[3x] Collaboration CMap1_jcdFileToJMS1 is RUNNING

To Reduce Duplicate Alerts

  1. Open the monitor.properties file in the JavaCAPS-install-dir/emanager/server/conf directory.
  2. Change the value of the timeInCache property to the desired number of milliseconds.
  3. Save the monitor.properties file.
  4. Restart the Enterprise Manager server.