A ruleset is a collection of rules and is the smallest executable unit in IBM ODM. Before it runs, a ruleset is parsed to convert rules into a format that can be executed in memory. The time it takes a ruleset to run the first time it is invoked is the sum of ruleset parsing time and actual ruleset execution time.

Ruleset Execution time = Ruleset Parsing time + Actual Ruleset Execution time

When the ruleset takes a long time to run, consider reducing both the parsing time and the actual execution time. A good indication that you should focus on reducing ruleset parsing time is if you notice a long response time to the first ruleset request, or if the rules execution slows down intermittently, or if the server takes a long time to start. If you see time-out error messages while running rules, try to reduce both the ruleset parsing and actual execution time.

If your rules are taking a long time to execute, you should first rule out any other factors that might affect performance, such as database look-ups, and network latency. You can use the _**Ruleset Statistics **_to view the statistics of the ruleset of a rule app in the Rule Execution server/Decision server.

Steps to open Ruleset Statistics

  1. In Rule Execution Server, click the Explorer tab.
  2. Under Navigator, expand RuleApps and select the ruleset /yourruleapp/1.0/yourruleproject/1.0.
  3. Click View Statistics in the Ruleset View toolbar to see ruleset execution statistics such as how many times the ruleset has been executed, and runtime statistics such as Average Time and Maximum Time.

Ruleset Statistics

Ruleset Statistics

Ruleset execution statistics are provided for each execution unit (XU) across the entire cluster. The Ruleset Statistics View displays a table of information about the execution of rulesets, both for each execution unit (XU) in the configuration and for the entire cluster.

The ruleset statistics table contains the following columns: Metric and Ruleset Execution. The statistics table rows provide the following information. Durations are expressed in milliseconds.

    <th  style="width:300px;text-align:left" >
      Description
    </th>
  </tr>
  
  <tr>
    <td  style="text-align:left" >
      Count
    </td>
    
    <td  style="text-align:left" >
      The number of times the ruleset has been executed during this session.
    </td>
  </tr>
  
  <tr>
    <td  style="text-align:left" >
      Total time (ms)
    </td>
    
    <td  style="text-align:left" >
      The total time to execute the ruleset.
    </td>
  </tr>
  
  <tr>
    <td  style="text-align:left" >
      Average time (ms)
    </td>
    
    <td  style="text-align:left" >
      The average time to execute the ruleset. This figure is derived from the total execution time (Total time (ms)) and the number of executions (Count).
    </td>
  </tr>
  
  <tr>
    <td  style="text-align:left" >
      Max / Min time (ms)
    </td>
    
    <td  style="text-align:left" >
      The longest and shortest ruleset execution times
    </td>
  </tr>
  
  <tr>
    <td  style="text-align:left" >
      First / Last Execution Date
    </td>
    
    <td  style="text-align:left" >
      The dates and times of the first and last ruleset executions.
    </td>
  </tr>
  
  <tr>
    <td  style="text-align:left" >
      Last Execution Time (ms)
    </td>
    
    <td  style="text-align:left" >
      The time of the last ruleset execution.
    </td>
  </tr>
</table>

Happy Exploring! Happy Learning!!

 

Sources:

  • https://www.ibm.com/support/knowledgecenter/SSQP76_8.6.0/com.ibm.odm.dserver.rules.tutorials/tut_gs_topics/tut_dserver_gs_monitor_lsn.html
  • http://www.ibm.com/support/knowledgecenter/SSQP76_8.7.0/com.ibm.odm.dserver.rules.res.console/topics/tpc_rescons_rulst_exec_statviews.html
  • http://www.ibm.com/developerworks


  • Ruleset Statistic Metrics
    Metric