官术网_书友最值得收藏!

Viewing metrics and statistics

Logging and tracing are the tools for identifying what is going on in the system and with particular business processes. Another important aspect of keeping a system in good condition is gathering the information via metrics and statistics. This way, we can identify the troubles a system might have on an operational level. We are also able to explore a system's overall health condition.

Getting ready

To show you how gathering information works, we will use the BPEL process we prepared for the Creating a custom logger in a BPEL process recipe.

How to do it…

The following steps in this recipe will describe how to efficiently review the previously collected metrics and statistics:

  1. Start the recipe by logging in to the Oracle Enterprise Manager Console with the admin user.
  2. From the left tree, select the SOA server, right-click on it, and select Monitoring | Performance Summary as shown in the following screenshot:
  3. We get a window with some basic metric definitions. Click on the Show Metric Palette button in the palette search for our BPEL process (it should be under the Members | default | Members section).
  4. From the SOA Composite – Rate Metrics section, we select the following two metrics:
    • Synchronous messages throughput in the last 5 minutes
    • Total synchronous messages average time
  5. The Performance Summary chart now looks as shown in the following screenshot:
  6. Click on the Table View link below the charts to see the tabular presentation of the data as shown in the following screenshot:

How it works…

Oracle SOA Suite comes with a predefined set of metrics out of the box. The metrics provide valuable feedback from the system. The metrics are divided into two major groups: the first group contains generic metrics and the second one contains process-oriented metrics. We can also set a different time range for data collection, from a few minutes to weeks or months.

There is one additional concept worth mentioning. When you log in to the Oracle Enterprise Manager Console, you'll see the dashboard. The dashboard will show you the health of the system from a single point of view. It is divided into the following sections:

Recent Composite Instances: In this section, you will see the latest business process instances that were started

Deployed Composites: In this section, you will see all the deployments and their corresponding status

Recent Faults and Rejected Messages: This section will show you whether some extraordinary event is requesting immediate attention

Service Engines: This section will show you the number of deployments and the of the number of faults on the deployed modules

Composite Instances: This section will show you the faults in graphical presentation number of instances created since server startup as well as the number of faults originated from the instance run

There's more…

Since SOA (and BPEL as a part of it) acts as an orchestrating technology, we would also like to know in what condition the system is in at the time of processing requests from outer systems. For that purpose, we can utilize the request processing statistics:

  1. Start the recipe by logging in to the Oracle Enterprise Manager Console with the admin user.
  2. From the left tree, select the SOA server, right-click on it, and select Monitoring | Request Processing.
  3. You'll get a window that contains the following predefined set of statistics:
    • Average sync and async request processing times on each of the servers
    • Average sync and async request processing times at the level of service infrastructure
    • Average processing times for binding components (web services and Java EE Connector Architecture).
  4. In the Oracle SOA Suite Mangement Console, you'll get the following window containing information about statistics:
主站蜘蛛池模板: 贵溪市| 万载县| 鄂托克旗| 东乌珠穆沁旗| 通化市| 那曲县| 微博| 保靖县| 泸水县| 灌云县| 象州县| 天全县| 临武县| 奎屯市| 兖州市| 衡阳县| 禹州市| 玉环县| 如东县| 河北区| 松桃| 分宜县| 思茅市| 陆丰市| 偃师市| 偏关县| 曲水县| 南漳县| 定襄县| 永德县| 诏安县| 舒兰市| 屯昌县| 辽中县| 渝北区| 泉州市| 信丰县| 阿拉善盟| 廉江市| 湟源县| 同江市|